chore(scripts): rename npm run dev to npm start (#16416)

This commit is contained in:
Adam Bradley
2018-11-21 10:05:25 -06:00
committed by GitHub
parent 1a7ec5c8be
commit d336054328
3 changed files with 7 additions and 7 deletions

View File

@ -34,7 +34,7 @@ cd ionic/core
npm install npm install
# Run Ionic dev server # Run Ionic dev server
npm run dev npm start
``` ```
### Development Workflow ### Development Workflow
@ -46,7 +46,7 @@ npm run dev
cd core cd core
# Run dev server # Run dev server
npm run dev npm start
``` ```
You should be able to navigate to `http://localhost:3333` which will look like a file browser. You should be able to navigate to `http://localhost:3333` which will look like a file browser.
@ -113,7 +113,7 @@ cd ionic/core
npm i npm i
# Run dev server # Run dev server
npm run dev npm start
# Run test suite # Run test suite
npm run validate npm run validate

View File

@ -67,7 +67,6 @@
"clean": "node scripts/clean.js", "clean": "node scripts/clean.js",
"css.minify": "cleancss -O2 -o ./css/ionic.bundle.css ./css/ionic.bundle.css", "css.minify": "cleancss -O2 -o ./css/ionic.bundle.css ./css/ionic.bundle.css",
"css.sass": "node-sass --output ./css src/css --output-style compressed", "css.sass": "node-sass --output ./css src/css --output-style compressed",
"dev": "npm run build.css && stencil build --dev --watch --serve",
"lint": "npm run lint.ts && npm run lint.sass", "lint": "npm run lint.ts && npm run lint.sass",
"lint.fix": "npm run lint.ts.fix && npm run lint.sass.fix", "lint.fix": "npm run lint.ts.fix && npm run lint.sass.fix",
"lint.sass": "stylelint 'src/**/*.scss'", "lint.sass": "stylelint 'src/**/*.scss'",
@ -75,6 +74,7 @@
"lint.ts": "tslint --project .", "lint.ts": "tslint --project .",
"lint.ts.fix": "tslint --project . --fix", "lint.ts.fix": "tslint --project . --fix",
"prerelease": "npm run validate && np prerelease --yolo --any-branch --tag next", "prerelease": "npm run validate && np prerelease --yolo --any-branch --tag next",
"start": "npm run build.css && stencil build --dev --watch --serve",
"test": "stencil test --spec --e2e", "test": "stencil test --spec --e2e",
"test.spec": "stencil test --spec", "test.spec": "stencil test --spec",
"test.e2e": "stencil test --e2e", "test.e2e": "stencil test --e2e",

View File

@ -14,11 +14,11 @@
Notice that `@ionic/core` lives in `core`. Notice that `@ionic/core` lives in `core`.
### 3. Run `npm run dev` ### 3. Run `npm start`
Make sure you are inside the `core` directory. Make sure you are inside the `core` directory.
npm run dev npm start
With the `dev` command, Ionic components will be built with [Stencil](https://stenciljs.com/), changes to source files are watched, a local http server will startup, and http://localhost:3333/ will open in a browser. With the `dev` command, Ionic components will be built with [Stencil](https://stenciljs.com/), changes to source files are watched, a local http server will startup, and http://localhost:3333/ will open in a browser.
@ -30,7 +30,7 @@ As changes are made in an editor to source files, the e2e app will live-reload.
## How to contribute ## How to contribute
1. `npm run dev` allows you to modify the components and have live reloading, just like another ionic app. 1. `npm start` allows you to modify the components and have live reloading, just like another ionic app.
2. When everything looks good, run `npm run validate` to verify the tests linter and production build passes. 2. When everything looks good, run `npm run validate` to verify the tests linter and production build passes.