Permalink
May 10, 2021 10:07
Newer
100644
48 lines (41 sloc)
1.99 KB
Ignoring revisions in .git-blame-ignore-revs.
1
npm run build
2
npm run doc
3
npm i
4
git clone --depth=10 --branch=master git@github.com:lodash-archive/lodash-cli.git ./node_modules/lodash-cli
5
mkdir -p ./node_modules/lodash-cli/node_modules/lodash; cd $_; cp ../../../../lodash.js ./lodash.js; cp ../../../../package.json ./package.json
6
cd ../../; npm i --production; cd ../../
7
node ./node_modules/lodash-cli/bin/lodash core exports=node -o ./npm-package/core.js
8
node ./node_modules/lodash-cli/bin/lodash modularize exports=node -o ./npm-package
9
cp lodash.js npm-package/lodash.js
10
cp dist/lodash.min.js npm-package/lodash.min.js
11
cp LICENSE npm-package/LICENSE
12
13
1. Clone two repos
14
Bump lodash version in package.json, readme, package=locak, lodash.js
15
npm run build
16
npm run doc
17
18
2. update mappings in ldoash-cli
19
3. copy ldoash into lodash-cli node modules and package json.
20
21
node ./node_modules/lodash-cli/bin/lodash core exports=node -o ./npm-package/core.js
22
node ./node_modules/lodash-cli/bin/lodash modularize exports=node -o ./npm-package
23
24
25
26
1. Clone the two repositories:
27
```sh
28
$ git clone https://github.com/lodash/lodash.git
29
$ git clone https://github.com/bnjmnt4n/lodash-cli.git
30
```
31
2. Update lodash-cli to accomdate changes in lodash source. This can typically involve adding new function dependency mappings in lib/mappings.js. Sometimes, additional changes might be needed for more involved functions.
32
3. In the lodash repository, update references to the lodash version in README.md, lodash.js, package.jsona nd package-lock.json
33
4. Run:
34
```sh
35
npm run build
36
npm run doc
37
node ../lodash-cli/bin/lodash core -o ./dist/lodash.core.js
38
```
39
5. Add a commit and tag the release
40
mkdir ../lodash-temp
41
cp lodash.js dist/lodash.min.js dist/lodash.core.js dist/lodash.core.min.js ../lodash-temp/
42
node ../lodash-cli/bin/lodash modularize exports=node -o .
43
cp ../lodash-temp/lodash.core.js core.js
44
cp ../lodash-temp/lodash.core.min.js core.min.js
45
cp ../lodash-temp/lodash.js lodash.js
46
cp ../lodash-temp/lodash.min.js lodash.min.js
47
48
❯ node ../lodash-cli/bin/lodash modularize exports=es -o .