Skip to content

Commit cf1bd71

Browse files
committed
Autobuild assets after npm ci
DEFRA/water-abstraction-team#64 To help simplify things in our new Docker based build environment and to take advantage of something we learned on [water-abstraction-system](https://github.com/DEFRA/water-abstraction-system) this change adds a post install step. If we're running `npm ci` you can be sure we also want to build our assets (we certainly should be!) So, with this change that will happen automatically. We've left the old script command there for now whilst we update our various environments. But once that's done we'll drop `"install-assets": "gulp build",` from `package.json`.
1 parent d236581 commit cf1bd71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"lint:fix": "standard --fix",
2626
"sass": "gulp sass",
2727
"sass:watch": "gulp sass:watch",
28-
"version": "npx --yes auto-changelog -p --commit-limit false && git add CHANGELOG.md"
28+
"version": "npx --yes auto-changelog -p --commit-limit false && git add CHANGELOG.md",
29+
"postinstall": "gulp build"
2930
},
3031
"dependencies": {
3132
"@envage/hapi-pg-rest-api": "^7.0.0",

0 commit comments

Comments
 (0)