Skip to content

Commit e610821

Browse files
committed
fix(preset-optimise): update deps & switch to mpl-2.0
Signed-off-by: Charlike Mike Reagent <[email protected]>
1 parent 3840a62 commit e610821

File tree

4 files changed

+235
-52
lines changed

4 files changed

+235
-52
lines changed

@packages/babel-preset-optimise/README.md

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
13
# babel-preset-optimise [![npm version][npmv-img]][npmv-url] [![License][license-img]][license-url] [![Libera Manifesto][libera-manifesto-img]][libera-manifesto-url]
24

35
> Babel preset with optimizations in mind, modern output
@@ -62,21 +64,21 @@ from [GitHub Actions](https://github.com/features/actions) with
6264
- [Usage](#usage)
6365
- [What it includes?](#what-it-includes)
6466
- [API](#api)
65-
- [babelPresetOptimize](#babelpresetoptimize)
66-
- [Signature](#signature)
67-
- [Params](#params)
67+
* [babelPresetOptimize](#babelpresetoptimize)
68+
+ [Signature](#signature)
69+
+ [Params](#params)
6870
- [Contributing](#contributing)
69-
- [Guides and Community](#guides-and-community)
70-
- [Support the project](#support-the-project)
71+
* [Guides and Community](#guides-and-community)
72+
* [Support the project](#support-the-project)
7173
- [Contributors](#contributors)
7274
- [License](#license)
7375

74-
_(TOC generated by [verb](https://github.com/verbose/verb) using
75-
[markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
76+
_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
7677

7778
## Install
7879

79-
This project requires [**Node.js**](https://nodejs.org) **>=10.13** _(see
80+
This project requires [**Node.js**](https://nodejs.org) **>=10.13**
81+
_(see
8082
[Support & Release Policy](https://github.com/tunnckoCoreLabs/support-release-policy))_.
8183
Install it using [**yarn**](https://yarnpkg.com) or
8284
[**npm**](https://npmjs.com).<br> _We highly recommend to use Yarn when you
@@ -118,10 +120,10 @@ _Generated using [jest-runner-docs](https://ghub.now.sh/jest-runner-docs)._
118120
Be aware that when you use `minifyBuiltins: true` you _MAY_ get a bigger output,
119121
but that's not always guaranteed, just try for your case.
120122

121-
If you want to use JSX (React) pass `options.jsx: true`. If you want to use JSX
122-
(React) + TypeScript pass both `{ jsx: true, typescript: true }`. If you wan to
123-
use Preact + TypeScript, `{ jsx: { pragma: 'h' }, typescript: true }`, if
124-
`options.jsx` is an object, it is directly passed to `preset-react`.
123+
If you want to use JSX (React) pass `options.jsx: true`.
124+
If you want to use JSX (React) + TypeScript pass both `{ jsx: true, typescript: true }`.
125+
If you wan to use Preact + TypeScript, `{ jsx: { pragma: 'h' }, typescript: true }`,
126+
if `options.jsx` is an object, it is directly passed to `preset-react`.
125127

126128
<span id="babelpresetoptimize-signature"></span>
127129

@@ -136,17 +138,11 @@ function(api, options)
136138
#### Params
137139

138140
- `options` **{object}** - optionally control what can be included
139-
- `options.jsx` **{boolean}** - default `false`, pass `true` if you want
140-
`react`; pass an object for more customization (passed to react preset)
141-
- `options.commonjs` **{boolean}** - default `false`, pass non-falsey value to
142-
transform ESModules to CommonJS
143-
- `options.typescript` **{boolean}** - default `false`, includes the TypeScript
144-
preset
145-
- `options.development` **{boolean}** - default `false`, disables few plugins;
146-
when it is `true` and `options.jsx` is enabled (true or object) we add
147-
`options.jsx.development: true` too
148-
- `options.minifyBuiltins` **{boolean}** - default `false`, includes
149-
[babel-plugin-minify-builtins][]
141+
- `options.jsx` **{boolean}** - default `false`, pass `true` if you want `react`; pass an object for more customization (passed to react preset)
142+
- `options.commonjs` **{boolean}** - default `false`, pass non-falsey value to transform ESModules to CommonJS
143+
- `options.typescript` **{boolean}** - default `false`, includes the TypeScript preset
144+
- `options.development` **{boolean}** - default `false`, disables few plugins; when it is `true` and `options.jsx` is enabled (true or object) we add `options.jsx.development: true` too
145+
- `options.minifyBuiltins` **{boolean}** - default `false`, includes [babel-plugin-minify-builtins][]
150146

151147
<!-- docks-end -->
152148

@@ -173,8 +169,7 @@ we proceed. In short, we support latest two even-numbered Node.js release lines.
173169
[Become a Partner or Sponsor?][kofi-url] :dollar: Check the **OpenSource**
174170
Commision (tier). :tada: You can get your company logo, link & name on this
175171
file. It's also rendered on package's page in [npmjs.com][npmv-url] and
176-
[yarnpkg.com](https://yarnpkg.com/en/package/babel-preset-optimise) sites too!
177-
:rocket:
172+
[yarnpkg.com](https://yarnpkg.com/en/package/babel-preset-optimise) sites too! :rocket:
178173

179174
Not financial support? Okey!
180175
[Pull requests](https://github.com/tunnckoCoreLabs/contributing#opening-a-pull-request),
@@ -210,10 +205,10 @@ your [support](#support-the-project) to them:
210205

211206
## License
212207

213-
Copyright (c) 2020-present, [Charlike Mike Reagent](https://tunnckocore.com)
214-
`<[email protected]>` & [contributors](#wonderful-contributors).<br>
215-
Released under the [(Parity-7.0.0 AND Prosperity-3.0.0) OR Patron-1.0.0
216-
License][license-url].
208+
Copyright (c) 2020-present,
209+
[Charlike Mike Reagent](https://tunnckocore.com) `<[email protected]>`
210+
& [contributors](#wonderful-contributors).<br> Released under the
211+
[MPL-2.0 License][license-url].
217212

218213
<!-- badges -->
219214

@@ -304,4 +299,4 @@ License][license-url].
304299

305300
<!-- prettier-ignore-end -->
306301

307-
[babel-plugin-minify-builtins]: https://github.com/babel/minify
302+
[babel-plugin-minify-builtins]: https://github.com/babel/minify
Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
2+
13
_Generated using [jest-runner-docs](https://ghub.now.sh/jest-runner-docs)._
24

35
### [babelPresetOptimize](./src/index.js#L22)
46

57
Be aware that when you use `minifyBuiltins: true` you _MAY_ get a bigger output,
68
but that's not always guaranteed, just try for your case.
79

8-
If you want to use JSX (React) pass `options.jsx: true`. If you want to use JSX
9-
(React) + TypeScript pass both `{ jsx: true, typescript: true }`. If you wan to
10-
use Preact + TypeScript, `{ jsx: { pragma: 'h' }, typescript: true }`, if
11-
`options.jsx` is an object, it is directly passed to `preset-react`.
10+
If you want to use JSX (React) pass `options.jsx: true`.
11+
If you want to use JSX (React) + TypeScript pass both `{ jsx: true, typescript: true }`.
12+
If you wan to use Preact + TypeScript, `{ jsx: { pragma: 'h' }, typescript: true }`,
13+
if `options.jsx` is an object, it is directly passed to `preset-react`.
1214

1315
<span id="babelpresetoptimize-signature"></span>
1416

@@ -23,14 +25,9 @@ function(api, options)
2325
#### Params
2426

2527
- `options` **{object}** - optionally control what can be included
26-
- `options.jsx` **{boolean}** - default `false`, pass `true` if you want
27-
`react`; pass an object for more customization (passed to react preset)
28-
- `options.commonjs` **{boolean}** - default `false`, pass non-falsey value to
29-
transform ESModules to CommonJS
30-
- `options.typescript` **{boolean}** - default `false`, includes the TypeScript
31-
preset
32-
- `options.development` **{boolean}** - default `false`, disables few plugins;
33-
when it is `true` and `options.jsx` is enabled (true or object) we add
34-
`options.jsx.development: true` too
35-
- `options.minifyBuiltins` **{boolean}** - default `false`, includes
36-
[babel-plugin-minify-builtins][]
28+
- `options.jsx` **{boolean}** - default `false`, pass `true` if you want `react`; pass an object for more customization (passed to react preset)
29+
- `options.commonjs` **{boolean}** - default `false`, pass non-falsey value to transform ESModules to CommonJS
30+
- `options.typescript` **{boolean}** - default `false`, includes the TypeScript preset
31+
- `options.development` **{boolean}** - default `false`, disables few plugins; when it is `true` and `options.jsx` is enabled (true or object) we add `options.jsx.development: true` too
32+
- `options.minifyBuiltins` **{boolean}** - default `false`, includes [babel-plugin-minify-builtins][]
33+

@packages/babel-preset-optimise/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "babel-preset-optimise",
33
"version": "0.2.5",
44
"licenseStart": 2020,
5-
"license": "(Parity-7.0.0 AND Prosperity-3.0.0) OR Patron-1.0.0",
5+
"license": "MPL-2.0",
66
"description": "Babel preset with optimizations in mind, modern output",
77
"author": "Charlike Mike Reagent <[email protected]> (https://tunnckocore.com)",
88
"homepage": "https://tunnckocore.com/opensource",
@@ -24,10 +24,10 @@
2424
},
2525
"scripts": {},
2626
"dependencies": {
27-
"@babel/plugin-transform-modules-commonjs": "^7.8.3",
28-
"@babel/preset-modules": "^0.1.2",
29-
"@babel/preset-react": "^7.8.3",
30-
"@babel/preset-typescript": "^7.8.3",
27+
"@babel/plugin-transform-modules-commonjs": "^7.9.0",
28+
"@babel/preset-modules": "^0.1.3",
29+
"@babel/preset-react": "^7.9.4",
30+
"@babel/preset-typescript": "^7.9.0",
3131
"babel-plugin-annotate-pure-calls": "^0.4.0",
3232
"babel-plugin-dev-expression": "^0.2.2",
3333
"babel-plugin-minify-builtins": "^0.5.0",
@@ -44,7 +44,7 @@
4444
"babel-plugin-unassert": "^3.0.1"
4545
},
4646
"devDependencies": {
47-
"@babel/core": "^7.8.4"
47+
"@babel/core": "^7.9.0"
4848
},
4949
"jest": {
5050
"coverageThreshold": {

0 commit comments

Comments
 (0)