|
8 | 8 | "lint": "npm-run-all --parallel lint:eslint",
|
9 | 9 | "lint:eslint": "eslint . .storybook",
|
10 | 10 | "audit": "npm audit --json | audit-filter --nsp-config=.nsprc --audit=-",
|
11 |
| - "start": "tsc --build ../fxa-react && npm run build-css && pm2 start pm2.config.js && ../../_scripts/check-url.sh localhost:3031/__lbheartbeat__", |
| 11 | + "start": "tsc --build ../fxa-react && npm run build-css && grunt merge-ftl && pm2 start pm2.config.js && ../../_scripts/check-url.sh localhost:3031/__lbheartbeat__", |
12 | 12 | "stop": "pm2 stop pm2.config.js",
|
13 | 13 | "restart": "tsc --build ../fxa-react && npm run build-css && pm2 restart pm2.config.js",
|
14 | 14 | "delete": "pm2 delete pm2.config.js",
|
15 | 15 | "build": "tsc --build ../fxa-react && NODE_ENV=production npm run build-css && SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=/ INLINE_RUNTIME_CHUNK=false CI=false rescripts build",
|
16 | 16 | "eject": "react-scripts eject",
|
17 | 17 | "test": "npm-run-all test:frontend test:server",
|
18 |
| - "test:frontend": "SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=/ INLINE_RUNTIME_CHUNK=false rescripts test --watchAll=false", |
| 18 | + "test:frontend": "yarn merge-ftl:test && SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=/ INLINE_RUNTIME_CHUNK=false rescripts test --watchAll=false", |
19 | 19 | "test:frontend:watch": "SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=/ INLINE_RUNTIME_CHUNK=false rescripts test",
|
20 | 20 | "test:server": "jest --runInBand --coverage --verbose --config server/jest.config.js --forceExit",
|
21 | 21 | "format": "prettier --write --config ../../_dev/.prettierrc '**'",
|
22 | 22 | "storybook": "start-storybook -p 6006",
|
23 |
| - "build-storybook": "NODE_ENV=production npm run build-css && build-storybook && cp -r public/locales public/images storybook-static/" |
| 23 | + "build-storybook": "NODE_ENV=production npm run build-css && build-storybook && cp -r public/images storybook-static/", |
| 24 | + "merge-ftl": "grunt merge-ftl", |
| 25 | + "merge-ftl:test": "grunt merge-ftl:test", |
| 26 | + "watch-ftl": "grunt watch-ftl" |
24 | 27 | },
|
25 | 28 | "eslintConfig": {
|
26 | 29 | "extends": [
|
|
87 | 90 | "eslint-plugin-jest": "^27.1.3",
|
88 | 91 | "eslint-plugin-react": "^7.31.10",
|
89 | 92 | "express-http-proxy": "^1.6.3",
|
| 93 | + "grunt": "^1.5.3", |
| 94 | + "grunt-cli": "^1.4.3", |
| 95 | + "grunt-contrib-concat": "^2.1.0", |
| 96 | + "grunt-contrib-watch": "^1.1.0", |
90 | 97 | "handlebars": "^4.7.7",
|
91 | 98 | "intl": "1.2.5",
|
92 | 99 | "jest": "27.5.1",
|
|
0 commit comments