source: trip-planner-front/node_modules/lodash/release.md@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.0 KB
Line 
1npm run build
2npm run doc
3npm i
4git clone --depth=10 --branch=master git@github.com:lodash-archive/lodash-cli.git ./node_modules/lodash-cli
5mkdir -p ./node_modules/lodash-cli/node_modules/lodash; cd $_; cp ../../../../lodash.js ./lodash.js; cp ../../../../package.json ./package.json
6cd ../../; npm i --production; cd ../../
7node ./node_modules/lodash-cli/bin/lodash core exports=node -o ./npm-package/core.js
8node ./node_modules/lodash-cli/bin/lodash modularize exports=node -o ./npm-package
9cp lodash.js npm-package/lodash.js
10cp dist/lodash.min.js npm-package/lodash.min.js
11cp LICENSE npm-package/LICENSE
12
131. Clone two repos
14Bump lodash version in package.json, readme, package=locak, lodash.js
15npm run build
16npm run doc
17
182. update mappings in ldoash-cli
193. copy ldoash into lodash-cli node modules and package json.
20
21node ./node_modules/lodash-cli/bin/lodash core exports=node -o ./npm-package/core.js
22node ./node_modules/lodash-cli/bin/lodash modularize exports=node -o ./npm-package
23
24
25
261. 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```
312. 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.
323. In the lodash repository, update references to the lodash version in README.md, lodash.js, package.jsona nd package-lock.json
334. Run:
34```sh
35npm run build
36npm run doc
37node ../lodash-cli/bin/lodash core -o ./dist/lodash.core.js
38```
395. Add a commit and tag the release
40mkdir ../lodash-temp
41cp lodash.js dist/lodash.min.js dist/lodash.core.js dist/lodash.core.min.js ../lodash-temp/
42node ../lodash-cli/bin/lodash modularize exports=node -o .
43cp ../lodash-temp/lodash.core.js core.js
44cp ../lodash-temp/lodash.core.min.js core.min.js
45cp ../lodash-temp/lodash.js lodash.js
46cp ../lodash-temp/lodash.min.js lodash.min.js
47
48❯ node ../lodash-cli/bin/lodash modularize exports=es -o .
Note: See TracBrowser for help on using the repository browser.