Skip to content

Commit c48ff3e

Browse files
committed
maint(Build): Add a watch Makefile target and package.json script.
1 parent 093d369 commit c48ff3e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ stamp-yarn install:
3737
touch stamp-yarn
3838

3939

40+
.PHONY: watch
41+
watch: stamp-yarn
42+
$(YARN) watch
43+
44+
4045
.PHONY: build
4146
build: bundle css
4247

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
"build:dev": "BUILD_ENV=patternslib NODE_ENV=development webpack --config webpack/webpack.config.js",
5656
"build:stats": "BUILD_ENV=patternslib NODE_ENV=production webpack --config webpack/webpack.config.js --json > stats.json",
5757
"test": "jest",
58-
"testwatch": "jest --watch"
58+
"testwatch": "jest --watch",
59+
"watch": "BUILD_ENV=patternslib NODE_ENV=development webpack --config webpack/webpack.config.js --watch"
5960
},
6061
"engines": {
6162
"node": ">=12.20.0"

0 commit comments

Comments
 (0)