484 Commits

Author SHA1 Message Date
Leah
22ec94a4c9 0.12.0-next.0 0.12.0-next.0 2019-05-29 00:46:58 +02:00
Ward Peeters
800be4c1d6 fix: allow disabling minification from cli (#395) 2019-05-29 00:46:58 +02:00
Leah
abdd87e804 fix: breaking updates 2019-05-29 00:46:57 +02:00
Jason Miller
f6dc730d6f
Merge pull request #399 from bautrukevich/patch-1
Fix README.md
2019-05-28 09:07:43 -04:00
Jason Miller
6786596d76 remove unused rollup-plugin-flow dependency (#379) 2019-05-28 08:24:10 -04:00
Siarhei Bautrukevich
093366cc3f
Fix README.md
Fix examples description
2019-05-28 08:29:41 +08:00
bors[bot]
ca64d122f3 Merge #362
362: chore: convert bublé to babel for es2015 compilation r=ForsakenHarmony a=wardpeet

Remove bublé and use babel instead. This gives us the opportunity to easily move to modern builds. The file sizes are all kept almost the same. The sizes are raw bytes which means gzip and brotli isn't used so the diff is going to be minimal.

I also added 2 scripts so we can generate these tables easier

Latest size report from travis:
https://travis-ci.org/developit/microbundle/builds/537119810#L330-L380

<details>
<summary>File sizes</summary>

| file                                           | bublé   | babel    |
|------------------------------------------------|---------|----------|
| alias/alias-mapping.js                         | 42      | 42       |
| alias/alias-mapping.mjs                        | 42      | 42       |
| alias/alias-mapping.umd.js                     | 121     | 121      |
| async-iife-ts/async-iife-ts.js                 | 116     | 116      |
| async-iife-ts/async-iife-ts.mjs                | 117     | 117      |
| async-iife-ts/async-iife-ts.umd.js             | 199     | 199      |
| async-iife-ts/index.d.ts                       | 0       | 0        |
| async-ts/async-ts.js                           | **104** | 120      |
| async-ts/async-ts.mjs                          | **108** | 132      |
| async-ts/async-ts.umd.js                       | **287** | 303      |
| async-ts/index.d.ts                            | 62      | 62       |
| basic/basic-lib.js                             | **468** | 502      |
| basic/basic-lib.mjs                            | **468** | 502      |
| basic/basic-lib.umd.js                         | **643** | 677      |
| basic-css/basic-css.css                        | 48      | 48       |
| basic-css/basic-css.js                         | 133     | 133      |
| basic-css/basic-css.mjs                        | 133     | 133      |
| basic-css/basic-css.umd.js                     | 308     | 308      |
| basic-json/basic-json.js                       | 168     | **113**  |
| basic-json/basic-json.mjs                      | 168     | **113**  |
| basic-json/basic-json.umd.js                   | 344     | **289**  |
| basic-multi-source/a.js                        | 53      | 53       |
| basic-multi-source/a.mjs                       | 54      | 54       |
| basic-multi-source/a.umd.js                    | 136     | 136      |
| basic-multi-source/b.js                        | 53      | 53       |
| basic-multi-source/b.mjs                       | 54      | 54       |
| basic-multi-source/b.umd.js                    | 136     | 136      |
| basic-ts/basic-lib-ts.js                       | **130** | 147      |
| basic-ts/basic-lib-ts.mjs                      | **123** | 140      |
| basic-ts/basic-lib-ts.umd.js                   | **299** | 316      |
| basic-ts/car.d.ts                              | 163     | 163      |
| basic-ts/index.d.ts                            | 78      | 78       |
| basic-tsx/basic-lib-tsx.js                     | **304** | 344      |
| basic-tsx/basic-lib-tsx.mjs                    | **305** | 346      |
| basic-tsx/basic-lib-tsx.umd.js                 | **482** | 522      |
| basic-tsx/index.d.ts                           | 51      | 51       |
| basic-with-cwd/basic.js                        | **464** | 498      |
| basic-with-cwd/basic.mjs                       | **464** | 498      |
| basic-with-cwd/basic.umd.js                    | **636** | 670      |
| class-decorators-ts/class-decorators-ts.js     | 591     | 591      |
| class-decorators-ts/class-decorators-ts.mjs    | 588     | 588      |
| class-decorators-ts/class-decorators-ts.umd.js | 771     | 771      |
| class-decorators-ts/index.d.ts                 | 168     | 168      |
| class-properties/class-properties.js           | 127     | 127      |
| class-properties/class-properties.mjs          | 122     | 122      |
| class-properties/class-properties.umd.js       | 312     | 312      |
| custom-source/custom-source.js                 | **472** | 506      |
| custom-source/custom-source.mjs                | **472** | 506      |
| custom-source/custom-source.umd.js             | **651** | 685      |
| custom-source-with-cwd/custom-src.js           | **469** | 503      |
| custom-source-with-cwd/custom-src.mjs          | **469** | 503      |
| custom-source-with-cwd/custom-src.umd.js       | **645** | 679      |
| default-named/default-named.js                 | 87      | 87       |
| default-named/default-named.mjs                | 97      | 97       |
| default-named/default-named.umd.js             | 269     | 269      |
| define/define.js                               | 35      | 35       |
| define/define.mjs                              | 35      | 35       |
| define/define.umd.js                           | 114     | 114      |
| esnext-ts/esnext-ts.js                         | 2095    | **1997** |
| esnext-ts/esnext-ts.mjs                        | 2096    | **1998** |
| esnext-ts/esnext-ts.umd.js                     | 2270    | **2172** |
| esnext-ts/index.d.ts                           | 48      | 48       |
| jsx/jsx.js                                     | **365** | 405      |
| jsx/jsx.mjs                                    | **366** | 407      |
| jsx/jsx.umd.js                                 | **535** | 575      |
| name-custom-amd/name-custom-amd.js             | **474** | 508      |
| name-custom-amd/name-custom-amd.mjs            | **474** | 508      |
| name-custom-amd/name-custom-amd.umd.js         | **654** | 688      |
| name-custom-cli/name-custom.js                 | **470** | 504      |
| name-custom-cli/name-custom.mjs                | **470** | 504      |
| name-custom-cli/name-custom.umd.js             | **650** | 684      |
| no-pkg/no-pkg.js                               | **465** | 499      |
| no-pkg/no-pkg.mjs                              | **465** | 499      |
| no-pkg/no-pkg.umd.js                           | **637** | 671      |
| no-pkg-name/no-pkg-name.js                     | **470** | 504      |
| no-pkg-name/no-pkg-name.mjs                    | **470** | 504      |
| no-pkg-name/no-pkg-name.umd.js                 | **646** | 680      |
| pretty/pretty.js                               | 12522   | 12522    |
| pretty/pretty.mjs                              | 12534   | 12534    |
| pretty/pretty.umd.js                           | 12704   | 12704    |
| raw/raw.js                                     | 2960    | 2960     |
| raw/raw.mjs                                    | 2972    | 2972     |
| raw/raw.umd.js                                 | 3139    | 3139     |
| shebang/shebang.js                             | 101     | 101      |
| shebang/shebang.mjs                            | 108     | 108      |
| shebang/shebang.umd.js                         | 284     | 284      |
| ts-mixed-exports/car.d.ts                      | 163     | 163      |
| ts-mixed-exports/index.d.ts                    | 95      | 95       |
| ts-mixed-exports/ts-mixed-exports.js           | **149** | 169      |
| ts-mixed-exports/ts-mixed-exports.mjs          | **144** | 168      |
| ts-mixed-exports/ts-mixed-exports.umd.js       | **333** | 353      |
</details>

Co-authored-by: Ward Peeters <ward@coding-tech.com>
2019-05-25 16:47:06 +00:00
Ward Peeters
3483790b01 add unit test for babelrc 2019-05-25 12:09:55 +02:00
Ward Peeters
34717de4d7 fix jsx pragmaFrag 2019-05-25 10:55:06 +02:00
Ward Peeters
25e5be728c cleanup comments 2019-05-25 10:55:05 +02:00
Ward Peeters
21a6c51a08 add esm to package;json 2019-05-25 10:55:03 +02:00
Ward Peeters
8f72b14fb0 fix snapshots 2019-05-25 10:55:02 +02:00
Ward Peeters
0633b7f6e8 default jsx to h 2019-05-25 10:55:01 +02:00
Ward Peeters
ad59f1a895 add script to generate csv output 2019-05-25 10:55:00 +02:00
Ward Peeters
27d1a8a689 update plugins with babel 2019-05-25 10:53:45 +02:00
Ward Peeters
a77ca66c1c remove debug 2019-05-25 10:53:43 +02:00
Ward Peeters
1cf6864116 remove bublé and run transpilation on babel 2019-05-25 10:53:42 +02:00
Jason Miller
f8e8cc8e67
Merge pull request #339 from jviide/config-file-off
Set the Babel plugin option "configFile" to false
2019-05-23 21:59:19 -04:00
Jason Miller
40bd4f1de6
Merge branch 'master' into config-file-off 2019-05-23 21:59:09 -04:00
Marvin Hagemeister
64086d1ef5
chore: add travis-size-report (#392)
chore: add travis-size-report
2019-05-17 15:41:18 +02:00
Ward Peeters
7882e48faf upgrade glob pattern 2019-05-16 13:10:13 +02:00
Ward Peeters
6995092144 copy correct command XD 2019-05-15 18:44:29 +02:00
Ward Peeters
a346c403c0 chore: add travis-size-report 2019-05-15 18:33:21 +02:00
Leah
d0e66da957
Rollup 1.0 + other updates (#361)
* Rollup fixes + other updates

* Move typescript cache to `node_modules/.cache`
2019-05-07 19:27:50 +02:00
Ward Peeters
8c4f5c2f85 refactor(jest): use it.each & remove sourcemaps from snapshots (#386) 2019-05-05 13:20:00 +02:00
Marvin Hagemeister
3f1d6b5b70
Merge pull request #377 from transitive-bullshit/master
Fix node-resolve warnings
2019-04-17 07:32:42 +02:00
Travis Fischer
061b972d3d fix node-resolve warnings 2019-04-17 00:52:36 -04:00
bors[bot]
16fcf6817c Merge #372
372: Support package.json source array r=ForsakenHarmony a=maraisr

With this PR, I am to solve issue #364, however I believe this shouldn't also need to support `source` that could be either a directory, or a file, or a glob. To keep things simple.

fixes #364

Co-authored-by: Marais Rossouw <me@maraisr.com>
2019-04-04 12:45:57 +00:00
Joachim Viide
c0a08b11c2
Merge branch 'master' into config-file-off 2019-04-03 20:02:15 +03:00
Marais Rossouw
5d8bee9ed0
chore: Iterate the array result, not the single 2019-04-03 08:02:11 +10:00
Marais Rossouw
076ce041c4
feat: Support source array 2019-04-03 07:59:21 +10:00
bors[bot]
71407a932e Merge #371
371: Snapshots need updating due to new build dependants r=ForsakenHarmony a=maraisr

With this PR I aim to fix issues that are caused by potentially merging #368 and #369.

Looks like with TypeScript 3.4, the output it produces is a little smarter in the way it's doing things. 

fixes #369, #369

Co-authored-by: Marais Rossouw <me@maraisr.com>
2019-04-02 13:37:16 +00:00
Marais Rossouw
de43d5bda9
fix: Snapshots need updating due to new build dependants 2019-04-02 09:43:59 +10:00
Edouard
41607cf0ac Readme/newcomer infos (#354)
* Added informations about typescript usage

I admit there's not much there, but as a newcomer I spent some time looking around for it. 
Turns out it's so simple it works by default :D But you have to know it.

* Surfacing the input/output file default config

As a newcomer, I missed this information as it was a bit buried in a big paragraph. I think this might make it stand out a bit more.

* Infos about default input/output

I think it has Its place in the installation phase as it's required for everything to work and has to be set up anyway.

* Cli options at the end of usage chapter

It seems more natural to me to end this way, but really that's subjective.

* Tidy up

* Added typescript to features

It's a very nice feature, it deserves Its place there (I think)

* Added "types" to specifying builds chapter

* Apply suggestions from code review

Co-Authored-By: isthatcentered <e.peninb@gmail.com>

* Apply suggestions from code review

Co-Authored-By: isthatcentered <e.peninb@gmail.com>

* Added latest full cli --help output
2019-03-23 00:01:43 +01:00
Jason Miller
a6d055251e rename define test fixture 2019-03-21 15:04:17 -04:00
Jason Miller
9151ee93d8
Merge pull request #348 from jviide/replace-expressions-plugin
Implement --define with babel-plugin-transform-replace-expressions
2019-03-21 09:19:42 -04:00
Joachim Viide
d526b0f201
Merge branch 'master' into replace-expressions-plugin 2019-03-21 09:30:51 +02:00
Jason Miller
66cce0753f
Merge pull request #358 from jviide/up-to-eleven
Fix failing tests by setting fixture test timeout to 11000ms
2019-03-20 20:30:58 -04:00
Joachim Viide
35efae8f08 Set fixture test timeout to 11000ms 2019-03-21 01:37:26 +02:00
Joachim Viide
bf31c0e147 Update define test fixtures 2019-03-19 16:47:06 +02:00
Jason Miller
787abdfcb5
Merge branch 'master' into replace-expressions-plugin 2019-03-19 10:21:06 -04:00
Jason Miller
02efb6d6d8 Update Jest to fix CI failures 2019-03-19 10:20:23 -04:00
Joachim Viide
f3db566ef7 Set configFile: false for the Babel plugin handling node_modules 2019-03-19 16:15:20 +02:00
Jason Miller
e7d31ac9a3
Merge branch 'master' into replace-expressions-plugin 2019-03-19 10:07:59 -04:00
Jason Miller
898d6793e2
Merge branch 'master' into config-file-off 2019-03-19 10:00:16 -04:00
Joachim Viide
84276fbf71 Implement --define with babel-plugin-transform-replace-expressions 2019-03-12 01:31:36 +02:00
Jason Miller
cc88ddf817
Merge pull request #338 from asmockler/patch-1
Correct default --target option
2019-03-08 22:29:14 -05:00
Jason Miller
ee9213ff17
Merge branch 'master' into patch-1 2019-03-08 22:29:07 -05:00
Joachim Viide
1e4e09b6a8 Set the Babel plugin option "configFile" to false 2019-03-05 01:37:24 +02:00
Jason Miller
2c32109528 0.11.0 0.11.0 2019-03-04 18:31:58 -05:00