diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..9d631a0 --- /dev/null +++ b/.npmignore @@ -0,0 +1,6 @@ +.DS_Store +node_modules/ +tmp/ +*.log +.travis.yml +.snyk diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..36309ff --- /dev/null +++ b/.travis.yml @@ -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 \ No newline at end of file