From f873a9759b500d5782d1d831cb72c0403c59438d Mon Sep 17 00:00:00 2001 From: Sheng Chen Date: Mon, 30 Dec 2019 15:54:30 +0800 Subject: [PATCH 1/2] Remove windows from CI --- .npmignore | 4 +++- .travis.yml | 1 - package.json | 7 +++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.npmignore b/.npmignore index 775e9f7e..2e173e8e 100644 --- a/.npmignore +++ b/.npmignore @@ -4,4 +4,6 @@ test/ .eslintrc.js .travis.yml Dockerfile -.dockerignore \ No newline at end of file +.dockerignore +.nyc_output/ +coverage/ \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 247f9281..5331588d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,6 @@ node_js: os: - linux - osx - - windows install: - npm install diff --git a/package.json b/package.json index deaa576e..25b2e68a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "name": "vsc-leetcode-cli", "version": "2.6.20", "description": "A cli tool to enjoy leetcode!", - "preferGlobal": "true", "engines": { "node": ">=4" }, @@ -11,7 +10,7 @@ }, "scripts": { "lint": "eslint lib/ test/", - "test": "npm run lint && nyc mocha test test/plugins && nyc report --reporter=lcov", + "test": "npm run lint && npx nyc mocha test test/plugins && nyc report --reporter=lcov", "travis": "node bin/pkg", "pkg": "pkg . --out-path=dist/ --targets" }, @@ -46,9 +45,9 @@ }, "license": "MIT", "bugs": { - "url": "https://github.com/jdneo/leetcode-cli/issues" + "url": "https://github.com/leetcode-tools/leetcode-cli/issues" }, - "homepage": "https://github.com/jdneo/leetcode-cli#readme", + "homepage": "https://github.com/leetcode-tools/leetcode-cli#readme", "dependencies": { "ansi-styles": "3.2.1", "cheerio": "0.20.0", From 21bd18f39ec94b0bf782cdef9f2b5465cd762579 Mon Sep 17 00:00:00 2001 From: Sheng Chen Date: Mon, 30 Dec 2019 16:21:28 +0800 Subject: [PATCH 2/2] Remove npx --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 25b2e68a..3d8286e5 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "scripts": { "lint": "eslint lib/ test/", - "test": "npm run lint && npx nyc mocha test test/plugins && nyc report --reporter=lcov", + "test": "npm run lint && nyc mocha test test/plugins && nyc report --reporter=lcov", "travis": "node bin/pkg", "pkg": "pkg . --out-path=dist/ --targets" },