Skip to content

Commit 58286e6

Browse files
authored
feat: add 'dev' npm scripts for developpement usage
1 parent 4feac9d commit 58286e6

File tree

8 files changed

+28
-14
lines changed

8 files changed

+28
-14
lines changed

admin/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"lint:translations": "eslint --ext .json --format node_modules/eslint-plugin-i18n-json/formatter.js translations",
3535
"lint:translations:fix": "npm run lint:translations -- --fix",
3636
"preinstall": "npx check-engine",
37-
"start": "ember serve --proxy http://localhost:3000",
37+
"dev": "ember serve --proxy http://localhost:3000",
38+
"start": "npm run dev",
3839
"test": "ember test",
3940
"test:ci": "npx ember exam --split=$CIRCLE_NODE_TOTAL --partition=$((1 + CIRCLE_NODE_INDEX))",
4041
"test:lint": "npm test && npm run lint",

api/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@
153153
"postdeploy": "DEBUG=knex:* npm run db:migrate",
154154
"preinstall": "npx check-engine",
155155
"scalingo-postbuild": "node scripts/generate-cron > cron.json",
156+
"dev": "nodemon index.js",
156157
"start": "node index.js",
157-
"start:watch": "nodemon index.js",
158+
"start:watch": "npm run dev",
158159
"start:job": "node worker.js",
159160
"start:job:watch": "nodemon worker.js",
160161
"test": "NODE_ENV=test npm run db:prepare && npm run test:api",

audit-logger/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
"test:ci": "NODE_ENV=test npm run db:prepare && vitest",
2222
"test:coverage": "NODE_ENV=test vitest --coverage.enabled",
2323
"test:watch": "NODE_ENV=test npm run db:prepare && vitest --watch",
24+
"dev": "nodemon src/lib/index.ts",
2425
"start": "node dist/lib/index.js",
25-
"start:watch": "nodemon src/lib/index.ts"
26+
"start:watch": "npm run dev"
2627
},
2728
"repository": {
2829
"type": "git",

certif/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"lint:translations": "eslint --ext .json --format node_modules/eslint-plugin-i18n-json/formatter.js translations",
3535
"lint:translations:fix": "npm run lint:translations -- --fix",
3636
"preinstall": "npx check-engine",
37-
"start": "ember serve --proxy http://localhost:3000",
37+
"dev": "ember serve --proxy http://localhost:3000",
38+
"start": "npm run dev",
3839
"test": "ember test",
3940
"test:ci": "npx ember exam --split=$CIRCLE_NODE_TOTAL --partition=$((1 + CIRCLE_NODE_INDEX))",
4041
"test:lint": "npm test && npm run lint",

junior/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"lint:scss": "stylelint app/styles/*.scss 'app/styles/**/*.scss' 'app/**/*.scss'",
2929
"lint:scss:fix": "npm run lint:scss -- --fix",
3030
"preinstall": "npx check-engine",
31-
"start": "ember serve --proxy http://localhost:3000",
31+
"dev": "ember serve --proxy http://localhost:3000",
32+
"start": "npm run dev",
3233
"test": "ember test",
3334
"test:ci": "npx ember exam --split=$CIRCLE_NODE_TOTAL --partition=$((1 + CIRCLE_NODE_INDEX))",
3435
"test:lint": "run-p --continue-on-error test lint"

mon-pix/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"lint:translations:fix": "npm run lint:translations -- --fix",
3636
"build": "ember build --environment $BUILD_ENVIRONMENT",
3737
"preinstall": "npx check-engine",
38-
"start": "ember serve --proxy http://localhost:3000",
38+
"dev": "ember serve --proxy http://localhost:3000",
39+
"start": "ember serve --proxy http://localhost:3000 --live-reload false",
3940
"test": "ember test",
4041
"test:ci": "npx ember exam --split=$CIRCLE_NODE_TOTAL --partition=$((1 + CIRCLE_NODE_INDEX))",
4142
"test:lint": "npm test && npm run lint",

orga/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"lint:translations": "eslint --ext .json --format node_modules/eslint-plugin-i18n-json/formatter.js translations",
3636
"lint:translations:fix": "npm run lint:translations -- --fix",
3737
"preinstall": "npx check-engine",
38-
"start": "NODE_ENV=development ember serve --proxy http://localhost:3000",
38+
"dev": "ember serve --proxy http://localhost:3000",
39+
"start": "npm run dev",
3940
"test": "ember test",
4041
"test:ci": "npx ember exam --split=$CIRCLE_NODE_TOTAL --partition=$((1 + CIRCLE_NODE_INDEX))",
4142
"test:lint": "npm test && npm run lint",

package.json

+14-7
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,20 @@
6565
"local:add-optional-checks": "husky",
6666
"local:remove-optional-checks": "git config --unset core.hooksPath",
6767
"preinstall": "npx check-engine",
68-
"start": "run-p --print-label start:api start:mon-pix start:orga start:junior start:certif start:admin",
69-
"start:admin": "cd admin && npm start",
70-
"start:api": "cd api && npm run start:watch",
71-
"start:certif": "cd certif && npm start",
72-
"start:mon-pix": "cd mon-pix && npm start",
73-
"start:orga": "cd orga && npm start",
74-
"start:junior": "cd junior && npm start",
68+
"dev": "run-p --print-label dev:api dev:mon-pix dev:orga dev:junior dev:certif dev:admin",
69+
"dev:admin": "cd admin && npm run dev",
70+
"dev:api": "cd api && npm run dev",
71+
"dev:certif": "cd certif && npm run dev",
72+
"dev:mon-pix": "cd mon-pix && npm run dev",
73+
"dev:orga": "cd orga && npm run dev",
74+
"dev:junior": "cd junior && npm run dev",
75+
"start": "npm run dev",
76+
"start:admin": "npm run dev:admin",
77+
"start:api": "npm run dev:api",
78+
"start:certif": "npm run dev:certif",
79+
"start:mon-pix": "npm run dev:mon-pix",
80+
"start:orga": "npm run dev:orga",
81+
"start:junior": "npm run dev:junior",
7582
"test": "run-p --print-label test:*",
7683
"test:admin": "cd admin && npm test",
7784
"test:api": "cd api && npm run lint && npm test",

0 commit comments

Comments
 (0)