Initial commit
This commit is contained in:
14
node_modules/@11ty/lodash-custom/README.md
generated
vendored
Normal file
14
node_modules/@11ty/lodash-custom/README.md
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# @11ty/lodash-custom
|
||||
|
||||
Eleventy uses 3 small `lodash` functions:
|
||||
|
||||
* [`get`](https://lodash.com/docs/4#get)
|
||||
* [`set`](https://lodash.com/docs/4#set)
|
||||
* [`chunk`](https://lodash.com/docs/4#chunk)
|
||||
|
||||
## Why?
|
||||
|
||||
1. The top level `lodash` package includes all of `lodash` and is a hefty 5 MB.
|
||||
1. Using the individual, modularized `lodash.get`, `lodash.set`, `lodash.chunk` packages are a much smaller 106 KB but do contain duplicated code. More problematically, these are not being maintained/updated with the newest versions of `lodash`.
|
||||
|
||||
This package creates one focused custom dependency using the tools that `lodash` provides to do custom builds ([`lodash-cli`](https://lodash.com/custom-builds)) for these three `lodash` functions with updated versions of `lodash`.
|
1704
node_modules/@11ty/lodash-custom/lodash.custom.js
generated
vendored
Normal file
1704
node_modules/@11ty/lodash-custom/lodash.custom.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
38
node_modules/@11ty/lodash-custom/package.json
generated
vendored
Normal file
38
node_modules/@11ty/lodash-custom/package.json
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "@11ty/lodash-custom",
|
||||
"version": "4.17.21",
|
||||
"description": "A custom, focused build of lodash exclusively for use internally in Eleventy.",
|
||||
"main": "lodash.custom.js",
|
||||
"scripts": {
|
||||
"build": "npx lodash exports=node include=get,set,chunk && rm lodash.custom.min.js"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/11ty"
|
||||
},
|
||||
"author": {
|
||||
"name": "Zach Leatherman",
|
||||
"email": "zachleatherman@gmail.com",
|
||||
"url": "https://zachleat.com/"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/11ty/lodash-custom.git"
|
||||
},
|
||||
"bugs": "https://github.com/11ty/lodash-custom/issues",
|
||||
"homepage": "https://github.com/11ty/lodash-custom/",
|
||||
"devDependencies": {
|
||||
"ava": "^5.2.0",
|
||||
"lodash-cli": "^4.17.5"
|
||||
},
|
||||
"overrides": {
|
||||
"lodash": "4.17.21"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user