From 9c834ebdb1d75d58473b1b2fff8c3ba6a856b24e Mon Sep 17 00:00:00 2001 From: Charlike Mike Reagent Date: Thu, 1 Nov 2018 14:59:27 +0200 Subject: [PATCH] feat: fix missing cli bin + tweaks Signed-off-by: Charlike Mike Reagent --- .flowconfig | 2 + .prettierignore | 93 -------------------------------------------- src/cli.js => cli.js | 2 +- package.json | 14 +++---- yarn.lock | 8 ++-- 5 files changed, 13 insertions(+), 106 deletions(-) delete mode 100644 .prettierignore rename src/cli.js => cli.js (97%) diff --git a/.flowconfig b/.flowconfig index 1fed445..25c2b70 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,4 +1,6 @@ [ignore] +*./node_modules +*./dist [include] diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 387b58c..0000000 --- a/.prettierignore +++ /dev/null @@ -1,93 +0,0 @@ -*snapshots* -dist -docks - -# Lockfiles. We use Yarn (https://yarnpkg.com/) -package-lock.json -npm-shrinkwrap.json -shrinkwrap.yaml - -# Archives and packages # -# ########## -*.7z -*.dmg -*.iso -*.jar -*.rar -*.tar -*.zip - -# node-waf configuration -.lock-wscript - -# OS, Logs and databases # -# ######################### -logs -*.log -*.log* -*.dat -*.sql -*.sqlite -*~ -~* -.DS_Store* - -# dotenv environment variables file -.env -.pem -*.pem - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -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 - -# next.js build output -.next \ No newline at end of file diff --git a/src/cli.js b/cli.js similarity index 97% rename from src/cli.js rename to cli.js index c5a476b..db8cab1 100644 --- a/src/cli.js +++ b/cli.js @@ -9,7 +9,7 @@ const proc = require('process'); const mri = require('mri'); const mkdirp = require('mkdirp'); const fastGlob = require('fast-glob'); -const docks = require('../index').default; +const docks = require('./index').default; const argv = mri(proc.argv.slice(2)); const app = docks(); diff --git a/package.json b/package.json index 227214e..befe279 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "all-contributors-cli": "^5.4.0", "asia": "^0.19.7", "eslint": "^5.8.0", - "eslint-config-esmc": "^1.0.11", + "eslint-config-esmc": "^1.0.12", "gitcommit": "^1.0.9", "husky": "^1.1.2", "lint-staged": "^8.0.4", @@ -36,11 +36,13 @@ }, "files": [ "src", - "index.js" + "index.js", + "cli.js" ], + "bin": "cli.js", "main": "index.js", "module": "src/index.js", - "typings": "index.d.ts", + "typings": "src/index.d.ts", "version": "0.0.0-semantically-released", "repository": "tunnckoCore/docks", "homepage": "https://github.com/tunnckoCore/docks", @@ -50,11 +52,7 @@ "tag": "latest" }, "eslintConfig": { - "extends": "esmc", - "rules": { - "no-param-reassign": "off", - "promise/prefer-await-to-then": "off" - } + "extends": "esmc" }, "renovate": { "extends": "tunnckocore" diff --git a/yarn.lock b/yarn.lock index ed3f260..38506e3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1001,10 +1001,10 @@ eslint-config-airbnb@^17.0.0: object.assign "^4.1.0" object.entries "^1.0.4" -eslint-config-esmc@^1.0.11: - version "1.0.11" - resolved "https://registry.yarnpkg.com/eslint-config-esmc/-/eslint-config-esmc-1.0.11.tgz#03229cafa03a222c9e0dd8facd8eeae6346f2455" - integrity sha512-9NdMtTOOhftG8RDNXDeihLHjUO9LEm+kOE4rl1lDUSPdsJ4vsgQYasyTs4apW2+5+6/cDZsJ2DCEWDZLwcuP/g== +eslint-config-esmc@^1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/eslint-config-esmc/-/eslint-config-esmc-1.0.12.tgz#2c84a1416c6a5058f2bfc7028b0d98cbc0d3ebc3" + integrity sha512-uOr8XMqhxcvMOgm/Nau9TNBaJo2dRaUHG2FACBgPew2+9EqsYi28BYiSYDIoyRuaD4bEIPyOyBfa8cFxnH4sJQ== dependencies: babel-eslint "^10.0.0" eslint-config-airbnb "^17.0.0"