8000 Change NPM dev script to build to dist/index.js. Remove the dev:dist … · uuuuuext/nativescript-vue@9686b0f · GitHub
[go: up one dir, main page]

Skip to content

Commit 9686b0f

Browse files
committed
Change NPM dev script to build to dist/index.js. Remove the dev:dist script as it is not useful now. Document new features
1 parent 2387968 commit 9686b0f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ After cloning the repo, run:
2929
# Commonly used NPM scripts
3030

3131
```bash
32-
$ # watch and auto re-build samples/app/nativescript-vue.js
32+
$ # watch and auto re-build dist/index.js
3333
$ npm run dev
3434
```
3535

@@ -39,6 +39,8 @@ To test the sample applications provided in the repository, you need to `npm run
3939

4040
Next, open up a new terminal window and run `npm run samples`. This will bring up a list of all the available sample applications which you can choose from with your arrow keys. Pressing enter/return will select that sample, and prompt you to choose the platform you'd like to run the sample on. After selecting the platform the application should start on your emulator, and the output will be in your terminal.
4141

42+
If you want to test the sample apps with HMR activated, please run `npm run samples -- --hmr` instead. Actually, we can pass any arguments to the `tns debug platform` command placing them after the `--` separator.
43+
4244
# Project Structure
4345

4446
- `build`: Directory for the custom tooling for managing and building the project
@@ -57,7 +59,7 @@ Next, open up a new terminal window and run `npm run samples`. This will bring u
5759

5860
There is [currently] a bug in devDependencies husky 0.15 beta that aborts `npm install` if `.git/hooks` is missing.
5961

60-
https://github.com/typicode/husky/issues/195
62+
https://github.com/typicode/husky/issues/195
6163

6264
```
6365
> husky@0.15.0-rc.3 postinstall /.../nativescript-vue/node_modules/husky

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"test": "jest",
1616
"tdd": "jest --watch",
1717
"samples": "node build/sample-runner.js",
18-
"dev": "rollup -c build/config.js -w --o samples/app/nativescript-vue.js --environment TARGET:nativescript-vue",
19-
"dev:dist": "rollup -c build/config.js -w --o dist/index.js --environment TARGET:nativescript-vue",
18+
"dev": "rollup -c build/config.js -w --o dist/index.js --environment TARGET:nativescript-vue",
2019
"build": "node build/build.js",
2120
"build:docs": "cd docs && npm run build",
2221
"prettier": "prettier --no-semi --single-quote --write \"{{platform,__test__}/**/*.js,samples/app/*.js}\"",

0 commit comments

Comments
 (0)
0