1 | node_modules/@financial-times/n-gage/index.mk:
|
2 | npm install --no-save --no-package-lock @financial-times/n-gage
|
3 | touch $@
|
4 |
|
5 | -include node_modules/@financial-times/n-gage/index.mk
|
6 |
|
7 | run:
|
8 | @echo Protip: This uses the hot reloading feature with Webpack and React
|
9 | @echo Edit the JS or CSS file and you should see the change applied in the browser without any reload
|
10 | @webpack-dev-server --hot --content-base demos --port 5050 --host local.ft.com
|
11 |
|
12 | test: verify unit-test
|
13 | @$(DONE)
|
14 |
|
15 | unit-test:
|
16 | @mocha --require test/setup 'test/**/*.spec.js'
|
17 | @$(DONE)
|
18 |
|
19 | a11y:
|
20 |
|
21 | demo: run
|
22 |
|
23 | gh-pages:
|
24 | @sh ./gh-pages.sh
|
25 | @$(DONE)
|