Commit Graph
209 Commits
Author SHA1 Message Date
Sosuke Suzuki 6b254d57ec Add build script requirements (#11905) 2021-12-02 20:59:38 +09:00
fisker Cheung 62ede8b710 Build: Remove unnecessary aliases (#11868) 2021-11-29 12:52:43 +08:00
dependabot[bot]andfisker Cheung 2c9adaed39 Build(deps): Bump lines-and-columns from 1.1.6 to 2.0.3 (#11861)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-11-29 10:06:40 +08:00
fisker Cheung 569111e708 Update build script (#11858) 2021-11-27 18:47:02 +08:00
fisker Cheung 4d5f865373 Improve parser-postcss.js minify config (backport #11674) (#11677)
* Improve `parser-postcss.js` minify config (backport #11674)

* Add `string-replace-loader`

* Linting
2021-10-15 14:35:09 +09:00
fisker Cheung e96dc509ec Update eslint config (#11595) 2021-09-28 11:16:39 +08:00
dependabot[bot]andfisker Cheung 737d436a95 Build(deps-dev): Bump @rollup/plugin-commonjs from 18.1.0 to 20.0.0 (#11288)
* Build(deps-dev): Bump @rollup/plugin-commonjs from 18.1.0 to 20.0.0

Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs) from 18.1.0 to 20.0.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v20.0.0/packages/commonjs)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Hack

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-09-24 06:22:57 +09:00
fisker Cheung 5ce28ddd7f Refactor website build script (#11488) 2021-09-11 09:55:46 +08:00
fisker Cheung 8a01dee53e Refactor build script (#11475) 2021-09-10 10:20:43 +08:00
Sosuke Suzukiandfisker Cheung 2664fcb2ba Enable import/no-anonymous-default-export (#11478)
* Enable import/no-anonymous-default-export

* Add names to default exported

* More

* Ignore shims

* Update scripts/build/config.mjs

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* lint  for shims

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-09-10 11:17:09 +09:00
fisker Cheung 62a2629743 Build: Support build single file (#11469) 2021-09-09 12:23:53 +08:00
fisker Cheung 051e20591a Lint dist files with eslint-plugin-compat (#11245) 2021-08-16 15:08:19 +08:00
fisker Cheung 4f1e554566 Fix a rollup warning (#11270) 2021-07-26 15:04:38 +08:00
fisker Cheung c9e6ada108 Build: Fix unexpected require()s in parser-typescript.js (#11130) 2021-07-26 09:17:34 +08:00
fisker Cheung 894f841fbd Style: Enforce extensions (#11227) 2021-07-21 09:10:34 +08:00
fisker Cheung 14a952aafb Move js parsers to a separate directory (#11195) 2021-07-15 09:53:34 +08:00
fisker Cheung e1afe1adc2 Remove parser getters from universal bundles (#11137) 2021-07-13 15:16:31 +08:00
fisker Cheung ff1870ab77 Remove useless package info from standalone build (#11138) 2021-07-12 14:33:52 +08:00
Sosuke Suzuki 392c72b3cd Fix replace-module plugin name (#11192) 2021-07-12 07:45:33 +08:00
fisker Cheung d3b777dd7d Update build script (#10946) 2021-05-27 08:54:42 +08:00
fisker Cheung c286d847d9 Remove more Array#reduce() (#10907) 2021-05-24 01:26:00 +03:00
fisker Cheung f4a6232848 Switch some scripts to ESM (#10867) 2021-05-15 20:09:52 +08:00
fisker Cheung 2eb2df6ed2 Update babel config (#10855) 2021-05-12 08:11:43 +08:00
fisker Cheung 98abb990cc Use Object.fromEntries(), Array#flat() and Array#flatMap() (#10853) 2021-05-12 01:05:29 +08:00
fisker Cheung b7983971ce Drop Node.js 10 support for development "build" (#10842) 2021-05-11 08:52:38 +08:00
fisker Cheung 94775e88ef Build: Fix rollup warning (#10487) 2021-03-08 17:08:47 +02:00
fisker Cheung 64a3906571 Enable unicorn/prefer-optional-catch-binding (#9464) 2021-02-25 18:28:55 +08:00
fisker Cheung a1ba8fb812 Build: Add rollup-plugin-polyfill-node (#10249) 2021-02-08 09:50:43 +08:00
fisker Cheung ce26805e84 Enable unicorn/prefer-spread (#10129) 2021-01-26 09:46:14 +08:00
Sosuke Suzuki fbb3c421e5 Remove workaround for rollup/plugin-node-resolve 11 (#10075) 2021-01-18 16:51:00 +09:00
Sosuke Suzuki 671fa5ddaf Move checkCache to Cache class (#10029)
* Move checkCache to Cache class

* Address reviews
2021-01-11 13:25:34 +09:00
Sosuke Suzukiandfisker Cheung e70ad5b7fb Check cache only when purge-cache is off (#10031)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-01-11 10:24:24 +08:00
Sosuke Suzuki e2c84527e7 Use fs.promises in build script (#10025) 2021-01-09 02:09:40 +09:00
Sosuke Suzuki de882505f0 Fix params mistaking at #9900 (#9912) 2020-12-16 18:46:56 +09:00
Sosuke Suzuki cb6a977733 Prints bundle sizes in build script log (#9900)
* Prints bundle size with flags

* Add "gzipped" to cspell.json

* Print esm bundle size

* Remove gzipped size from log
2020-12-16 08:45:29 +09:00
dependabot[bot]andfisker bce3500b5e Build(deps-dev): Bump @rollup/plugin-node-resolve from 10.0.0 to 11.0.0 (#9804)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-12-02 16:57:15 +08:00
Sosuke Suzuki 083b501663 Refactor: Make Cache modern in build scripts (#9809)
* Make cache class

* equal -> strictEqual

* Use strict mode assert module
2020-12-02 15:03:32 +09:00
fisker Cheung 11ac80f64e Build: Fix rollup warning (#9808) 2020-12-02 11:10:53 +08:00
Sosuke Suzukiandfisker Cheung 4cc149248a Support TypeScript 4.1 via typescript-estree (#9636)
* Update typescript and typescript-estree

* Add AST transformation for TSTemplateLiteralType

* Update tests for template-literal-types

* Fix transformChainExpression

* Update tests for key-remapping-in-mapped-types

* Implement recoverInvalidDecorators

* Update changelog

* Avoid typecheck error

* Add os.platform() shim

* Update config.js

* Update config.js

* Shim os.cpus

* Update `process.versions.node`

* Attempt to fix build

* Update ts parserOptions

* Fix code style

* Remove `errorOnUnknownASTType`, fix code style

* Use `[] ||` instead of `[] //`

* Fix hack

* Add invalid tests

* checkMissingDecorators

* Update tests

* Fix tests

* Add comment

* Revert "Implement recoverInvalidDecorators"

This reverts commit 27e7b46ed41df36fb585791117c85e1b2dab932c.

* Add ref pr link

* Simplify logic

* Don't transform `TSTemplateLiteralType`

* Add `TSTemplateLiteralType` as simple type

* Fix tests

* Update comments

* Add comment

* Fix logic

* Minor tweak

* use multiple parsers

* Update @typescript-eslint/typescript-estree to v4.8.0

* Switch to `parseWithNodeMaps`

* Rename `esNode` -> `esTreeNode`

* Update @typescript-eslint/typescript-estree to 4.8.1-alpha.1

* Use @typescript-eslint/typescript-estree 4.8.1

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2020-11-18 10:59:58 +09:00
fisker Cheung 3d7016e2dc Add meriyah parser (#9514) 2020-11-05 14:08:37 +08:00
Sosuke Suzukiandfisker f7554c62a2 Revert breaking changes related to adding pure css parser for minor releasing (#9500)
* revert without tests

* Downgrade postcss-scss and postcss-less

* Fix tests

* Revert "Make `isSCSS*` function stricter (#9093)"

This reverts commit 01f986bea9.

* Revert "Remove `css` parser from `isLessParser` check (#9092)"

This reverts commit c0bca1805d.

* Revert "Add pure css parser (#7933)"

This reverts commit 589ebf670b.

* Disable `parser-postcss.js` minify

* Try to fix build script

* Update fs.mjs

* Update fs.mjs

* Style

Co-authored-by: fisker <lionkay@gmail.com>
2020-10-31 22:22:35 +09:00
fisker Cheung fb07399ac5 Playground: only build needed files (#9480) 2020-10-26 09:44:09 +08:00
fisker Cheung e32cd5d284 Fix missing esm files in dist/package.json (#9491) 2020-10-26 09:07:44 +08:00
dependabot[bot]andfisker 7f9444eb21 Build(deps): Bump postcss from 8.1.1 to 8.1.2 (#9443)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-10-23 20:44:04 +08:00
dependabot[bot]andfisker 5af5fa7a66 Build(deps-dev): Bump webpack from 4.44.2 to 5.1.0 (#9373)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-10-22 13:32:50 +08:00
fisker CheungandChris Brody 73e3976c34 Add espree parser (#9000)
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>
2020-10-13 09:14:02 +08:00
dependabot[bot]andfisker 0f595eae07 Build(deps): Bump @glimmer/syntax from 0.61.2 to 0.62.0 (#9240)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-09-27 08:52:51 +08:00
dependabot[bot]andfisker b084a84df0 Build(deps-dev): Bump @rollup/plugin-commonjs from 14.0.0 to 15.1.0 (#9253)
* Build(deps-dev): Bump @rollup/plugin-commonjs from 14.0.0 to 15.1.0

Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 14.0.0 to 15.1.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v14.0.0...commonjs-v15.1.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Try `requireReturnsDefault: "preferred"`

* Size check `.mjs`

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-09-22 13:05:31 +03:00
Yuku Kotaniandfisker 549090a5ba Add ESM distributions for browser (#8983)
Co-authored-by: fisker <lionkay@gmail.com>
2020-09-17 00:08:44 +08:00
fisker Cheung e8b299d164 Rename native shims to .mjs (#9079) 2020-08-28 10:03:36 +08:00