diff --git a/.gitignore b/.gitignore index c08d1d39..027fffe5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,11 +2,18 @@ logs *.log npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime data pids *.pid *.seed +*.pid.lock # Directory for instrumented libs generated by jscoverage/JSCover lib-cov @@ -17,26 +24,67 @@ coverage # nyc test coverage .nyc_output -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) .grunt +# Bower dependency directory (https://bower.io/) +bower_components + # node-waf configuration .lock-wscript -# Compiled binary addons (http://nodejs.org/api/addons.html) +# Compiled binary addons (https://nodejs.org/api/addons.html) build/Release # Dependency directories -node_modules -jspm_packages +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ # Optional npm cache directory .npm +# Optional eslint cache +.eslintcache + # Optional REPL history .node_repl_history +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + + dist/ tmp/ *.swp -.DS_Store +.DS_Store \ No newline at end of file diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 775e9f7e..00000000 --- a/.npmignore +++ /dev/null @@ -1,7 +0,0 @@ -.github/ -docs/ -test/ -.eslintrc.js -.travis.yml -Dockerfile -.dockerignore \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 247f9281..43a64d0f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ language: node_js node_js: + - 8 - 10 + - stable os: - linux diff --git a/package.json b/package.json index 8ae7477b..0708500b 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,19 @@ "name": "vsc-leetcode-cli", "version": "2.6.4", "description": "A cli tool to enjoy leetcode!", - "preferGlobal": "true", "engines": { "node": ">=4" }, "bin": { "leetcode": "./bin/leetcode" }, + "files": [ + "bin", + "colors", + "icons", + "lib", + "templates" + ], "scripts": { "lint": "eslint lib/ test/", "test": "npm run lint && nyc mocha test test/plugins && nyc report --reporter=lcov",