Skip to content

Commit

Permalink
Merge branch 'master' into chore/dep-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Oct 26, 2018
2 parents 0e41d34 + f794eda commit 29f08a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -16,7 +16,7 @@
- Produces tiny, optimized code for all inputs
- Supports multiple entry modules _(`cli.js` + `index.js`, etc)_
- Creates multiple output formats for each entry _(<abbr title="CommonJS (node)">CJS</abbr>, <abbr title="Universal Module Definition">UMD</abbr> & <abbr title="ECMAScript Modules">ESM</abbr>)_
- Built-in Uglify compression & gzipped bundle size tracking
- Built-in Terser compression & gzipped bundle size tracking

## 🔧 Installation

Expand Down Expand Up @@ -69,7 +69,7 @@ Just like `microbundle build`, but watches your source files and rebuilds on any
--target Specify your target environment (default node)
--external Specify external dependencies, or 'none'
--globals Specify globals dependencies, or 'none'
--compress Compress output using UglifyJS (default true)
--compress Compress output using Terser (default true)
--strict Enforce undefined global context and add "use strict"
--name Specify name exposed in UMD builds
--cwd Use an alternative working directory (default .)
Expand Down Expand Up @@ -102,6 +102,7 @@ Here's what's coming up for Microbundle:
- [Stockroom](https://github.com/developit/stockroom) Offload your store management to a worker easily.
- [Microenvi](https://github.com/fwilkerson/microenvi) Bundle, serve, and hot reload with one command.
- [react-recomponent](https://github.com/philipp-spiess/react-recomponent) Reason-style reducer components for React using ES6 classes.
- [brazilian-utils](https://github.com/brazilian-utils/brazilian-utils) Utils library for specific Brazilian businesses.

## 🥂 License

Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -7,8 +7,9 @@
"bin": "dist/cli.js",
"scripts": {
"build": "npm run -s build:babel && npm run -s build:self",
"build:babel": "babel-node src/cli.js --format cjs src/{cli,index}.js --presets env",
"build:self": "node dist/cli.js --format cjs src/{cli,index}.js",
"build:babel": "babel-node src/cli.js --no-compress --format cjs src/{cli,index}.js --presets env",
"build:self": "node dist/cli.js --no-compress --format cjs src/{cli,index}.js",
"precommit": "lint-staged",
"prepare": "npm run -s build",
"prepare:babel": "babel --presets env src/*.js -d dist && npm t",
"lint": "eslint src",
Expand Down
2 changes: 1 addition & 1 deletion src/prog.js
Expand Up @@ -22,7 +22,7 @@ export default handler => {
.option('--external', `Specify external dependencies, or 'none'`)
.option('--globals', `Specify globals dependencies, or 'none'`)
.example('microbundle --globals react=React,jquery=$')
.option('--compress', 'Compress output using UglifyJS', true)
.option('--compress', 'Compress output using Terser', true)
.option('--strict', 'Enforce undefined global context and add "use strict"')
.option('--name', 'Specify name exposed in UMD builds')
.option('--cwd', 'Use an alternative working directory', '.')
Expand Down

0 comments on commit 29f08a9

Please sign in to comment.