mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-02 18:57:02 +08:00
chore(scripts): rename npm run dev to npm start (#16416)
This commit is contained in:
@ -34,7 +34,7 @@ cd ionic/core
|
||||
npm install
|
||||
|
||||
# Run Ionic dev server
|
||||
npm run dev
|
||||
npm start
|
||||
```
|
||||
|
||||
### Development Workflow
|
||||
@ -46,7 +46,7 @@ npm run dev
|
||||
cd core
|
||||
|
||||
# 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.
|
||||
@ -113,7 +113,7 @@ cd ionic/core
|
||||
npm i
|
||||
|
||||
# Run dev server
|
||||
npm run dev
|
||||
npm start
|
||||
|
||||
# Run test suite
|
||||
npm run validate
|
||||
|
||||
@ -67,7 +67,6 @@
|
||||
"clean": "node scripts/clean.js",
|
||||
"css.minify": "cleancss -O2 -o ./css/ionic.bundle.css ./css/ionic.bundle.css",
|
||||
"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.fix": "npm run lint.ts.fix && npm run lint.sass.fix",
|
||||
"lint.sass": "stylelint 'src/**/*.scss'",
|
||||
@ -75,6 +74,7 @@
|
||||
"lint.ts": "tslint --project .",
|
||||
"lint.ts.fix": "tslint --project . --fix",
|
||||
"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.spec": "stencil test --spec",
|
||||
"test.e2e": "stencil test --e2e",
|
||||
|
||||
@ -14,11 +14,11 @@
|
||||
|
||||
Notice that `@ionic/core` lives in `core`.
|
||||
|
||||
### 3. Run `npm run dev`
|
||||
### 3. Run `npm start`
|
||||
|
||||
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.
|
||||
|
||||
@ -30,7 +30,7 @@ As changes are made in an editor to source files, the e2e app will live-reload.
|
||||
|
||||
## 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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user