Skip to content

Commit

Permalink
build: improving build time by using npm-run-all package
Browse files Browse the repository at this point in the history
  • Loading branch information
willmendesneto committed Oct 29, 2021
1 parent d6723d8 commit 31fb214
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased][]

### Updated

- Improving build time by using `npm-run-all` package

### Added

- Adding `ES2020` bundle to be published

### Fixed

- Fixed link on `README.md` docs
Expand Down
97 changes: 97 additions & 0 deletions package-lock.json

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

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@
"sideEffects": false,
"browser": "dist/umd/react-sweet-wizard.js",
"jsnext:main": "dist/esm/index.js",
"es2015": "dist/cjs/index.js",
"es2015": "dist/es2015/index.js",
"es2020": "dist/es2020/index.js",
"cjs": "dist/cjs/index.js",
"scripts": {
"build": "npm run build:clean && npm run build:es2015 && npm run build:cjs && npm run build:esm && npm run build:umd",
"build": "npm run build:clean && npm-run-all --parallel build:es2015 build:es2020 build:cjs build:esm && npm run build:umd",
"build:umd": "rollup --config && npm run build:umd:min",
"build:umd:min": "uglifyjs --compress --mangle --comments -o dist/umd/react-sweet-wizard.min.js -- dist/umd/react-sweet-wizard.js && gzip dist/umd/react-sweet-wizard.min.js -c > dist/umd/react-sweet-wizard.min.js.gz",
"build:es2015": "tsc --project ./tsconfig.build.json --module es2015 --target es2015 --outDir dist/es2015",
"build:es2020": "tsc --module esnext --target es2020 --outDir dist/es2020",
"build:esm": "tsc --project ./tsconfig.build.json --module esnext --target es5 --outDir dist/esm",
"build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --target es5 --outDir dist/cjs",
"build:clean": "rm -rf ./dist ./.jest ./coverage",
Expand Down Expand Up @@ -95,6 +97,7 @@
"eslint-plugin-sonarjs": "^0.10.0",
"eslint-plugin-testing-library": "^5.0.0",
"jest": "^27.3.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.4.1",
"react": "^16.10.2",
"react-dom": "^17.0.2",
Expand Down

0 comments on commit 31fb214

Please sign in to comment.