Add travis and npmignore

This commit is contained in:
weyusi 2018-09-27 16:16:45 +09:30
parent 2c9fc74660
commit a8744a8eb5
2 changed files with 23 additions and 0 deletions

6
.npmignore Normal file
View File

@ -0,0 +1,6 @@
.DS_Store
node_modules/
tmp/
*.log
.travis.yml
.snyk

17
.travis.yml Normal file
View File

@ -0,0 +1,17 @@
language: node_js
node_js:
- "node" # latest stable Node.js release
cache:
directories:
- "node_modules" # cache the modules for faster build
script:
- npm install -g snyk hexo-cli
- npm install # install node modules
- snyk auth $SNYK_TOKEN
- snyk test # Check node modules for vulnerability
branches:
only:
- master # this job will affect only the 'master' branch