-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
当前完成了最认本部分逻辑的ESM化,剩余的包主要为: - 各类插件包,这需要先支持`reskript.config.{mjs|ts}`的ESM化 - 几个webpack loader,要等待webpack支持 - eslint插件无法ESM化 - jest配置无法ESM化 - 受前几项影响,`core`和`settings`暂未ESM化 BREAKING CHANGE: 发布的包为纯ESM格式,无法通过CommonJS的`require`引入。参考[sinderesorhus的建议](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c)
- Loading branch information
Showing
231 changed files
with
4,582 additions
and
4,347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Node.js CI | ||
name: NodeJS CI | ||
|
||
on: | ||
push: | ||
|
@@ -11,22 +11,26 @@ jobs: | |
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6.0.2 | ||
version: 6.x | ||
- uses: actions/checkout@v2 | ||
- name: CI | ||
- name: Setup Node 16 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: 16.x | ||
- run: pnpm install | ||
- run: pnpm run build | ||
- run: pnpm run lint | ||
- run: pnpm run test | ||
env: | ||
CI: true | ||
- name: Setup NodeJS 14 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
- name: Unit Test NodeJS 14 | ||
run: pnpm run test | ||
env: | ||
CI: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,21 @@ | |
"version": "0.0.1", | ||
"repository": "https://github.com/ecomfe/reskript", | ||
"author": "otakustay <[email protected]>", | ||
"engines": { | ||
"node": ">=14.18.0" | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"lint": "lerna run --parallel lint", | ||
"test": "lerna run --concurrency=1 test", | ||
"build": "lerna run build", | ||
"build-clean": "lerna run --parallel clean && npm run build", | ||
"build-showcase": "cd showcase/todo && npm run build", | ||
"release": "lerna version --conventional-commits --no-push --force-publish", | ||
"release-beta": "npm run release -- --conventional-prerelease --preid=beta", | ||
"ci": "pnpm install && npm run build-clean && npm run lint && npm run test && npm run build-showcase", | ||
"ci": "pnpm install --frozen-lockfile && npm run build-clean && npm run lint && npm run test", | ||
"preversion": "npm run ci", | ||
"prepack": "pnpm install && npm run build-clean && sh scripts/build-check.sh", | ||
"version": "pnpm install && git add pnpm-lock.yaml", | ||
"prepack": "pnpm install --frozen-lockfile && npm run build-clean && sh scripts/build-check.sh", | ||
"version": "pnpm install --frozen-lockfile && git add pnpm-lock.yaml", | ||
"deploy": "lerna publish from-package", | ||
"deploy-next": "npm run deploy -- --dist-tag=next --pre-dist-tag=next", | ||
"prepare": "husky install" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/babel-plugin-add-react-display-name/src/__tests__/__snapshots__/index.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
packages/babel-plugin-add-react-display-name/src/__tests__/index.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/babel-plugin-debug-react-component-file-name/.eslintrc.cjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
packages/babel-plugin-debug-react-component-file-name/jest.config.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/babel-utils/src/__tests__/__snapshots__/importReact.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.