Skip to content

Commit

Permalink
Merge 347c174 into e8d76b1
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Ruhs committed Mar 26, 2022
2 parents e8d76b1 + 347c174 commit 1f21d61
Show file tree
Hide file tree
Showing 46 changed files with 1,032 additions and 710 deletions.
14 changes: 5 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"env":
{
"browser": true,
"es6": true,
"mocha": true,
"node": true
},
"extends":
[
"eslint-config-redaxmedia"
],
"parserOptions":
{
"ecmaVersion": 2018
"project":
[
"./tsconfig.lint.json"
]
}
}
}
12 changes: 6 additions & 6 deletions .github/terminal-session.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,22 @@ jobs:
node-version: 14
- run: npm install
- run: npm run lint
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node 14
uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
- run: npm run build
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 ]
node-version: [ 14, 15, 16, 17 ]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -39,8 +50,7 @@ jobs:
with:
node-version: 14
- run: npm install
- run: npm install nyc
- run: node_modules/.bin/nyc --reporter=lcov node_modules/.bin/mocha
- run: npx c8 --reporter=lcov mocha
- name: Report to Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
build
node_modules
11 changes: 9 additions & 2 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{
"extension":
[
"js"
"ts"
],
"spec": "tests/*Test.js"
"node-option":
[
"experimental-specifier-resolution=node",
"loader=ts-node/esm"
],
"require": "tests/setup.mjs",
"spec": "tests/**/*.spec.ts",
"timeout": 5000
}
4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Create a `.handpick` file to override configuration:

```json
{
"config": ".handpick",
"manager": "npm",
"managerObject":
{
Expand Down Expand Up @@ -70,6 +71,20 @@ Create a `.handpick` file to override configuration:
"devDependencies"
],
"filterArray": [],
"spinnerTime": 40,
"spinnerArray":
[
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"path": ".",
"packageFile": "package.json",
"packageDirectory": "node_modules"
Expand Down
44 changes: 0 additions & 44 deletions bin/handpick

This file was deleted.

5 changes: 0 additions & 5 deletions index.js

This file was deleted.

33 changes: 21 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "handpick",
"description": "Handpick conditional dependencies like a boss",
"version": "3.2.1",
"version": "4.0.0-beta.1",
"license": "MIT",
"type": "module",
"keywords":
[
"package",
Expand All @@ -25,26 +26,34 @@
},
"dependencies":
{
"commander": "6.2.1",
"ora": "5.1.0",
"commander": "9.1.0",
"semver": "7.3.5",
"utility-redaxmedia": "1.2.0"
"typescript": "4.5.5"
},
"devDependencies":
{
"chai": "4.3.4",
"eslint": "6.8.0",
"eslint-config-redaxmedia": "3.2.0",
"mocha": "7.2.0"
"@types/chai": "4.3.0",
"@types/mocha": "9.1.0",
"@types/node": "17.0.22",
"@types/semver": "7.3.9",
"chai": "4.3.6",
"del-cli": "4.0.1",
"eslint": "8.11.0",
"eslint-config-redaxmedia": "4.2.3",
"mocha": "9.2.2",
"ts-node": "10.7.0"
},
"scripts":
{
"lint": "eslint bin/handpick src tests",
"fix": "eslint bin/handpick src tests --fix",
"test": "mocha"
"prebuild": "del ./build",
"build": "tsc",
"lint": "eslint ./{src,tests}/**/*.ts",
"fix": "eslint ./{src,tests}/**/*.ts --fix",
"test": "mocha",
"prepublishOnly": "exit 1"
},
"bin":
{
"handpick": "bin/handpick"
"handpick": "./src/cli.js"
}
}
14 changes: 14 additions & 0 deletions option.json → src/assets/option.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@
"devDependencies"
],
"filterArray": [],
"spinnerTime": 40,
"spinnerArray":
[
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"path": ".",
"packageFile": "package.json",
"packageDirectory": "node_modules"
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env node

import { CoreClass, HelperClass, OptionClass, PackagerClass, SpinnerClass, StatisticClass } from './index.js';

const helper : HelperClass = new HelperClass();
const option : OptionClass = new OptionClass(helper);
const packager : PackagerClass = new PackagerClass(option);
const spinner : SpinnerClass = new SpinnerClass(option);
const statistic : StatisticClass = new StatisticClass(helper, option);
const core : CoreClass = new CoreClass(helper, option, packager, spinner, statistic);

core.cli(process);

0 comments on commit 1f21d61

Please sign in to comment.