-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Y2024
Showing
106 changed files
with
1,298 additions
and
1,711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/bin/bash | ||
|
||
# Function to check the last command for errors | ||
check_last_command() { | ||
if [ $? -ne 0 ]; then | ||
echo "An error occurred. Exiting." | ||
exit 1 | ||
fi | ||
} | ||
|
||
# Step 1: Add all changes and commit | ||
echo "Adding all changes..." | ||
git add . | ||
check_last_command | ||
|
||
echo "Committing changes with message 'Y2024'..." | ||
git commit -am "Y2024" | ||
check_last_command | ||
|
||
# Step 2: Push changes to the master branch | ||
echo "Pushing changes to the master branch..." | ||
git push origin master | ||
check_last_command | ||
|
||
# Step 3: Navigate to the package directory | ||
echo "Navigating to package directory 'packages/create-mernjs-app'..." | ||
cd packages/create-mernjs-app | ||
check_last_command | ||
|
||
# Step 4: Bump the version (patch, minor, or major) | ||
# Update the version here as per your need | ||
echo "Updating the package version..." | ||
npm version patch # Use npm version minor or npm version major as needed | ||
check_last_command | ||
|
||
# Step 5: Ensure you are logged into npm | ||
echo "Checking npm login status..." | ||
npm whoami &> /dev/null | ||
if [ $? -ne 0 ]; then | ||
echo "You are not logged in to npm. Please login:" | ||
npm login | ||
check_last_command | ||
fi | ||
|
||
# Step 6: Publish the package | ||
echo "Publishing the package to npm..." | ||
npm publish --access public | ||
check_last_command | ||
|
||
echo "Package published successfully!" | ||
|
||
# Step 7: Push the version bump commit and tag to the remote repository | ||
echo "Pushing version bump commit and tag to the remote repository..." | ||
git push origin master --follow-tags | ||
check_last_command | ||
|
||
echo "All done!" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
APP_NAME=MernJs | ||
APP_ENV=development | ||
APP_PORT=8080 | ||
APP_PORT=8081 | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
APP_NAME=MernJs | ||
APP_ENV=development | ||
APP_PORT=8080 | ||
APP_PORT=8083 | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
yarn run v1.22.22 | ||
$ concurrently "cross-env BROWSER=none npm run web" "wait-on http://localhost:8080 && nodemon --exec electron ." | ||
[0] | ||
[0] > [email protected] web | ||
[0] > PORT=8080 react-scripts start | ||
[0] | ||
[0] (node:15865) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option. | ||
[0] (Use `node --trace-deprecation ...` to show where the warning was created) | ||
[0] (node:15865) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option. | ||
[0] Starting the development server... | ||
[0] | ||
[0] [0;33mOne of your dependencies, babel-preset-react-app, is importing the | ||
[0] "@babel/plugin-proposal-private-property-in-object" package without | ||
[0] declaring it in its dependencies. This is currently working because | ||
[0] "@babel/plugin-proposal-private-property-in-object" is already in your | ||
[0] node_modules folder for unrelated reasons, but it [1mmay break at any time[0;33m. | ||
[0] | ||
[0] babel-preset-react-app is part of the create-react-app project, [1mwhich | ||
[0] is not maintianed anymore[0;33m. It is thus unlikely that this bug will | ||
[0] ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to | ||
[0] your devDependencies to work around this error. This will make this message | ||
[0] go away.[0m | ||
[0] | ||
[0] Compiled successfully! | ||
[0] | ||
[0] You can now view project_name in the browser. | ||
[0] | ||
[0] Local: http://localhost:8080 | ||
[0] On Your Network: http://192.168.16.100:8080 | ||
[0] | ||
[0] Note that the development build is not optimized. | ||
[0] To create a production build, use yarn build. | ||
[0] | ||
[0] webpack compiled successfully | ||
[1] [33m[nodemon] 3.1.4[39m | ||
[1] [33m[nodemon] to restart at any time, enter `rs`[39m | ||
[1] [33m[nodemon] watching path(s): *.*[39m | ||
[1] [33m[nodemon] watching extensions: js,mjs,cjs,json[39m | ||
[1] [32m[nodemon] starting `electron .`[39m | ||
[1] [16044:0622/024151.995878:ERROR:CONSOLE(1)] "Request Autofill.enable failed. {"code":-32601,"message":"'Autofill.enable' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1) | ||
[1] [16044:0622/024151.996505:ERROR:CONSOLE(1)] "Request Autofill.setAddresses failed. {"code":-32601,"message":"'Autofill.setAddresses' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1) | ||
[1] [16044:0622/025028.532996:ERROR:CONSOLE(1)] "Uncaught (in promise) TypeError: Failed to fetch", source: devtools://devtools/bundled/panels/elements/elements.js (1) | ||
[0] cross-env BROWSER=none npm run web exited with code 1 | ||
[1] /Users/vijaypratapsingh/Desktop/create-mern-app/templates/app/electronjs-boilerplate/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGTERM | ||
[1] wait-on http://localhost:8080 && nodemon --exec electron . exited with code SIGTERM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
yarn run v1.22.22 | ||
$ expo start --web | ||
Starting project at /Users/vijaypratapsingh/Desktop/create-mern-app/templates/app/expo-boilerplate | ||
› Port 8081 is running project_name in another window | ||
/Users/vijaypratapsingh/Desktop/create-mern-app/templates/app/react-native-boilerplate (pid 13006) | ||
Input is required, but 'npx expo' is in non-interactive mode. | ||
Required input: | ||
> Use port 8082 instead? | ||
› Skipping dev server | ||
Done in 3.17s. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
yarn run v1.22.22 | ||
$ nodemon server.js | ||
[33m[nodemon] 3.1.4[39m | ||
[33m[nodemon] to restart at any time, enter `rs`[39m | ||
[33m[nodemon] watching path(s): *.*[39m | ||
[33m[nodemon] watching extensions: js,mjs,cjs,json[39m | ||
[32m[nodemon] starting `node server.js`[39m | ||
(node:15839) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version | ||
(Use `node --trace-warnings ...` to show where the warning was created) | ||
(node:15839) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version | ||
(node:15839) [FSTDEP011] DeprecationWarning: Variadic listen method is deprecated. Please use ".listen(optionsObject)" instead. The variadic signature will be removed in `fastify@5`. | ||
{"level":30,"time":1719004217206,"pid":15839,"hostname":"Vijays-MacBook-Air.local","msg":"Server listening at http://[::1]:8081"} | ||
{"level":30,"time":1719004217209,"pid":15839,"hostname":"Vijays-MacBook-Air.local","msg":"Server listening at http://127.0.0.1:8081"} | ||
********** Server is running on http://localhost:http://[::1]:8081 ********** | ||
|
||
********** [31mMissing DB Connection[0m *********** | ||
|
||
{"level":30,"time":1719004352425,"pid":15839,"hostname":"Vijays-MacBook-Air.local","reqId":"req-1","req":{"method":"GET","url":"/","hostname":"localhost:8081","remoteAddress":"::1","remotePort":53703},"msg":"incoming request"} | ||
{"level":30,"time":1719004352572,"pid":15839,"hostname":"Vijays-MacBook-Air.local","reqId":"req-1","res":{"statusCode":200},"responseTime":145.83916999958456,"msg":"request completed"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
yarn run v1.22.22 | ||
$ nodemon server.js | ||
[33m[nodemon] 3.1.4[39m | ||
[33m[nodemon] to restart at any time, enter `rs`[39m | ||
[33m[nodemon] watching path(s): *.*[39m | ||
[33m[nodemon] watching extensions: js,mjs,cjs,json[39m | ||
[32m[nodemon] starting `node server.js`[39m | ||
(node:15844) [FSTDEP011] DeprecationWarning: Variadic listen method is deprecated. Please use ".listen(optionsObject)" instead. The variadic signature will be removed in `fastify@5`. | ||
(Use `node --trace-deprecation ...` to show where the warning was created) | ||
********** [31mPort Error: listen EADDRINUSE: address already in use ::1:8083 is already in use[0m ********** | ||
ConnectionRefusedError [SequelizeConnectionRefusedError] | ||
at ConnectionManager.connect (/Users/vijaypratapsingh/Desktop/create-mern-app/templates/app/fastifyjs-mysql-boilerplate/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:92:17) | ||
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) | ||
at async ConnectionManager._connect (/Users/vijaypratapsingh/Desktop/create-mern-app/templates/app/fastifyjs-mysql-boilerplate/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:222:24) | ||
at async /Users/vijaypratapsingh/Desktop/create-mern-app/templates/app/fastifyjs-mysql-boilerplate/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:174:32 | ||
at async ConnectionManager.getConnection (/Users/vijaypratapsingh/Desktop/create-mern-app/templates/app/fastifyjs-mysql-boilerplate/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:197:7) | ||
at async /Users/vijaypratapsingh/Desktop/create-mern-app/templates/app/fastifyjs-mysql-boilerplate/node_modules/sequelize/lib/sequelize.js:305:26 | ||
at async Sequelize.authenticate (/Users/vijaypratapsingh/Desktop/create-mern-app/templates/app/fastifyjs-mysql-boilerplate/node_modules/sequelize/lib/sequelize.js:457:5) { | ||
parent: AggregateError [ECONNREFUSED]: | ||
at internalConnectMultiple (node:net:1117:18) | ||
at afterConnectMultiple (node:net:1684:7) { | ||
code: 'ECONNREFUSED', | ||
fatal: true, | ||
[errors]: [ [Error], [Error] ] | ||
}, | ||
original: AggregateError [ECONNREFUSED]: | ||
at internalConnectMultiple (node:net:1117:18) | ||
at afterConnectMultiple (node:net:1684:7) { | ||
code: 'ECONNREFUSED', | ||
fatal: true, | ||
[errors]: [ [Error], [Error] ] | ||
} | ||
} | ||
********** [31mMissing DB Connection[0m *********** | ||
|
||
[32m[nodemon] clean exit - waiting for changes before restart[39m |
Oops, something went wrong.