Skip to content

Commit

Permalink
dist: Reduce lodash dependencies footprint
Browse files Browse the repository at this point in the history
  • Loading branch information
q2s2t committed Feb 15, 2020
1 parent 0d04ec2 commit b727dc6
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 14 deletions.
4 changes: 2 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Maintenance:
✔ Upgrade codebase to ES6 @done(18-09-11 22:58)
✔ Spaces in achive name, file name or in switches @done(18-08-23 12:36)
✘ Keep a Promise and callback style interface on top (do not recommand using it) @cancelled(18-12-03 22:23)
Check all issues from GitHub and test them
Check all issues from GitHub and test them @done(20-02-15 13:30)
✔ fix: dual instance (see test-debug) @done(18-11-13 20:05)
✔ Refactor in dependecy injection style @started(18-11-13 20:05) @done(18-12-02 21:37) @lasted(2w5d1h32m17s)
Features:
Expand Down Expand Up @@ -59,6 +59,6 @@ Documentation:
✔ use `$cherryPick` as name for clarity @done(18-12-04 22:51)
✔ list and rename doesn't output progress percentage (upstream behaviour) @done(18-12-04 22:51)
✔ Only support recent versions of 7z @done(18-12-04 22:51)
$legacy support
$legacy support @cancelled(20-02-15 13:30)
✘ `--` switch when file name starts with `-` @cancelled(18-12-04 22:51)
✘ `-an` (Disable parsing of archive_name) switch @cancelled(18-12-04 22:51)
28 changes: 24 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
"dependencies": {
"cross-spawn": "^7.0.1",
"debug": "^4.1.1",
"lodash": "^4.17.15",
"lodash.defaultsdeep": "^4.6.1",
"lodash.defaultto": "^4.14.0",
"lodash.flattendeep": "^4.4.0",
"lodash.isempty": "^4.4.0",
"lodash.negate": "^3.0.2",
"normalize-path": "^3.0.0"
},
"optionalDependencies": {},
Expand Down
6 changes: 3 additions & 3 deletions src/args.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

const flattenDeep = require('lodash/flattenDeep')
const negate = require('lodash/negate')
const isEmpty = require('lodash/isEmpty')
const flattenDeep = require('lodash.flattenDeep')
const negate = require('lodash.negate')
const isEmpty = require('lodash.isempty')
const { COMMAND_LETTERS } = require('./references')

// Transform user input into a args for child procress spawn
Expand Down
2 changes: 1 addition & 1 deletion src/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

const defaultTo = require('lodash/defaultTo')
const defaultTo = require('lodash.defaultto')
const { BIN_DEFAULT } = require('./references')

// Transform user input into a args for child procress spawn
Expand Down
6 changes: 3 additions & 3 deletions src/flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

const negate = require('lodash/negate')
const isEmpty = require('lodash/isEmpty')
const defaultsDeep = require('lodash/defaultsDeep')
const negate = require('lodash.negate')
const isEmpty = require('lodash.isEmpty')
const defaultsDeep = require('lodash.defaultsdeep')
const { FLAGS, OPTIONS_DEFAULT } = require('./references')

// Build arguments ready to be passed to `childProcess.spawn()` from the
Expand Down

0 comments on commit b727dc6

Please sign in to comment.