diff --git a/core/CONTRIBUTING.md b/core/CONTRIBUTING.md index e27af03bc8..3c3decc5cf 100644 --- a/core/CONTRIBUTING.md +++ b/core/CONTRIBUTING.md @@ -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 diff --git a/core/package.json b/core/package.json index dc939584ec..f91fa11333 100644 --- a/core/package.json +++ b/core/package.json @@ -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", diff --git a/core/scripts/readme.md b/core/scripts/readme.md index 323dcc3bab..1611f4bccd 100644 --- a/core/scripts/readme.md +++ b/core/scripts/readme.md @@ -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.