Skip to content

Commit

Permalink
package.json: enable hot reloading with npm run watch
Browse files Browse the repository at this point in the history
  • Loading branch information
jkozol committed Oct 11, 2022
1 parent cd713ba commit 94e6f10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ VM_IMAGE=$(CURDIR)/test/images/$(TEST_OS)

build:
npm ci
npm run build
npm run build:prod

spec:
sed -e 's|@VERSION@|$(VERSION)|' \
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@
"prettier": "prettier components core pages main.js --check",
"prettier:fix": "npm run prettier -- --write",
"format": "npm run prettier:fix && npm run lint:fix",
"build": "npm run translations && webpack",
"translations:compile": "formatjs compile-folder translations translations/compiled --ast --format simple",
"translations:extract": "formatjs extract 'components/**/*.js' 'pages/**/*.js' --out-file translations/en.json --id-interpolation-pattern '[sha512:contenthash:base64:6]' --format simple",
"translations": "npm run translations:extract && npm run translations:compile"
"build:dev": "webpack --config webpack.config.js",
"build:prod": "npm run translations:extract && npm run translations:compile && npm run build:dev",
"watch": "npm run build:dev -- --watch"
}
}

0 comments on commit 94e6f10

Please sign in to comment.