Ajout de TravisCLI

This commit is contained in:
Anthony Dumas 2019-05-02 13:16:52 +00:00
parent b11b25e924
commit 879b913575
3 changed files with 25 additions and 3 deletions

8
.travis.yml Normal file
View File

@ -0,0 +1,8 @@
sudo: false
language: node_js
node_js:
- stable
script:
- npm test
after_success:
- npm run report-coverage

0
codecov.yml Normal file
View File

View File

@ -22,7 +22,13 @@
"bulma": "^0.7.2",
"node-sass": "^4.11.0",
"npm-run-all": "^4.1.5",
"postcss-cli": "^6.1.1"
"postcss-cli": "^6.1.1",
"ava": "^0.16.0",
"co-exec": "^1.0",
"codecov": "^1.0.1",
"ghooks": "^1.2.4",
"nyc": "^10.0.0",
"standard": "^8.4.0"
},
"scripts": {
"css-deploy": "npm run css-build && npm run css-postcss",
@ -33,12 +39,20 @@
"js-build": "babel _javascript --out-dir lib",
"js-watch": "npm run js-build -- --watch",
"auto-loading": "npx browser-sync start --server --files '*.html' --files 'css/*.css'",
"start": "npm-run-all --parallel css-watch js-watch auto-loading"
"start": "npm-run-all --parallel css-watch js-watch auto-loading",
"report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"standard": "standard index.js",
"test": "nyc ./node_modules/.bin/ava -v"
},
"dependencies": {
"browser-sync": "^2.26.3",
"global": "^4.3.2",
"jquery": "^3.3.1",
"npx": "^10.2.0"
},
"config": {
"ghooks": {
"pre-commit": "npm run standard"
}
}
}
}