Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Script keys aren’t defined for running in “watch” mode #124

Open
briandk opened this issue May 21, 2018 · 0 comments
Open

Script keys aren’t defined for running in “watch” mode #124

briandk opened this issue May 21, 2018 · 0 comments

Comments

@briandk
Copy link

briandk commented May 21, 2018

Hi,

First, thank you for this. It’s so wonderful.

Second, how can I run my app in “watch” mode (where presumably the tool watches my files for changes and recompiles on the fly)?

The documentation says:

# in terminal 1:
npm run watch:compile

# in terminal 2:
npm run watch:tests

But those script keys aren’t defined in your example package.json:

"scripts": {
"build-storybook": "build-storybook",
"clean": "rm -rf .fusebox out dist coverage",
"compile": "NODE_ENV=production ts-node fuse",
"coverage:upload": "cat ./coverage/lcov.info | coveralls",
"coverage": "yarn test --coverage --no-cache",
"dist": "electron-builder --mac --win --linux --ia32 --x64",
"draft": "electron-builder -p always --draft --mac --win --linux --ia32 --x64",
"format": "prettier --write **/*.ts && tslint -p . --fix",
"lint": "tslint --project .",
"pack": "electron-builder --dir",
"postinstall": "electron-builder install-app-deps",
"precommit": "lint-staged",
"prepush": "npm-run-all typecheck lint",
"sanity": "npm-run-all clean typecheck lint test clean compile clean",
"start": "ts-node fuse",
"storybook": "start-storybook -p 6006",
"test": "jest",
"typecheck": "tsc -p . --noEmit --pretty"
},

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant