0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

refactor: better script order, update references

This commit is contained in:
Juan Picado @jotadeveloper 2017-07-22 18:21:49 +02:00
parent a7926a72b5
commit 7cbe4279dd
No known key found for this signature in database
GPG key ID: 18AC54485952D158
3 changed files with 16 additions and 16 deletions

View file

@ -21,11 +21,11 @@ dependencies:
- yarn install --no-progress
test:
override:
- npm run pretest:ci
- yarn run pre:ci
- nvm alias default 6
- yarn run test-travis
- yarn run test:ci
- nvm alias default 4
- yarn run test-travis
- yarn run test:ci
- nvm alias default 8
- yarn run test-travis
- yarn run coverage:codecov
- yarn run test:ci
- yarn run coverage:publish

View file

@ -116,21 +116,21 @@
"server"
],
"scripts": {
"pretest:ci": "npm run lint && npm run build:webui",
"prepublish": "in-publish && npm run build:webui || not-in-publish",
"test": "mocha ./test/functional ./test/unit --reporter=spec --full-trace",
"pre:ci": "npm run build:webui",
"test:ci": "npm run test:coverage",
"test:only": "mocha ./test/functional ./test/unit",
"test:coverage": "nyc npm t",
"coverage:html": "nyc report --reporter=html",
"coverage:codecov": "nyc report --reporter=lcov | codecov",
"test-travis": "npm run test:coverage",
"test-only": "mocha ./test/functional ./test/unit",
"coverage:publish": "nyc report --reporter=lcov | codecov",
"lint": "eslint .",
"lint:css": "stylelint 'src/**/*.scss' --syntax scss",
"pre:webpack": "npm run lint",
"build:webui": "npm run pre:webpack && rimraf static/* && webpack --config tools/webpack.prod.config.babel.js --debug",
"pre:webpack": "npm run lint && rimraf static/*",
"dev:webui": "babel-node tools/dev.server.js",
"prepublish": "in-publish && npm run build:webui || not-in-publish",
"build-docker": "docker build -t verdaccio . --no-cache",
"build-docker:rpi": "docker build -f Dockerfile.rpi -t verdaccio:rpi ."
"build:webui": "npm run pre:webpack && webpack --config tools/webpack.prod.config.babel.js",
"build:docker": "docker build -t verdaccio . --no-cache",
"build:docker:rpi": "docker build -f Dockerfile.rpi -t verdaccio:rpi ."
},
"jest": {
"snapshotSerializers": [

View file

@ -108,7 +108,7 @@ docker build -t verdaccio .
There is also an npm script for building the docker image, so you can also do:
```bash
npm run build-docker
npm run build:docker
```
Note: The first build takes some minutes to build because it needs to run `npm install`,
@ -118,7 +118,7 @@ If you want to use the docker image on a rpi or a compatible device there is als
To build the docker image for raspberry pi execute:
```bash
npm run build-docker:rpi
npm run build:docker:rpi
```
Please note that for any of the above docker commands you need to have docker installed on your machine and the docker executable should be available on your `$PATH`.