Commit 89566568 authored by Leonard Marschke's avatar Leonard Marschke
Browse files

yarn -> npm due to installation difficulties under Windows

parent aa0f5fc6
Pipeline #7228 passed with stages
in 8 minutes and 20 seconds
......@@ -62,9 +62,7 @@ This should make the coding easier for you. If you have any questions you can't
To get started with the Vue framework we recommend the Vue [documentation](https://vuejs.org/v2/guide/) and this [short (5 minutes long) video](https://player.vimeo.com/video/247494684).
### Development setup
To use the Vue framework you need to have [node installed](https://nodejs.org/en/download/). We recommend the LTS version.
As our package manager we are using [yarn](https://yarnpkg.com/). This software you can [install here](https://yarnpkg.com/lang/en/docs/install/).
To use the Vue framework you need to have [node installed](https://nodejs.org/en/download/). We recommend the LTS version. Please choose to install `npm` with it.
After installing all these packages, you can `cd` into the root directory of the Vue app ([vue](vue)). Then execute
......@@ -75,7 +73,7 @@ yarn install
This should run for a while (approximately a minute). Afterwards you can start the development server by executing
```bash
yarn run dev
npm run dev
```
The first compilation will take a little bit longer.
......
......@@ -6,25 +6,25 @@
``` bash
# install dependencies
yarn install
npm install
# serve with hot reload at localhost:8080
yarn run dev
npm run dev
# build for production with minification
yarn run build
npm run build
# build for production and view the bundle analyzer report
yarn run build --report
npm run build --report
# run unit tests -- we do not have unit tests in this project
yarn run unit
npm run unit
# run e2e tests -- we do not have end to end tests in this project
yarn run e2e
npm run e2e
# run all tests -- we do not have tests at all :(
yarn test
npm test
```
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
......@@ -6,10 +6,10 @@
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "yarn run dev",
"start": "npm run dev",
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
"e2e": "node test/e2e/runner.js",
"test": "yarn run unit && yarn run e2e",
"test": "npm run unit && npm run e2e",
"lint": "eslint --ext .js,.vue src test/unit test/e2e/specs",
"build": "node build/build.js"
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment