-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update module-tools and build config (#114)
* chore: update build tools and config * chore: update common/config 1. change target: es5 -> es2015 2. add config type definitions
- Loading branch information
Showing
64 changed files
with
8,667 additions
and
6,846 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
'@modern-js-reduck/plugin-auto-actions': patch | ||
'@modern-js-reduck/plugin-devtools': patch | ||
'@modern-js-reduck/plugin-effects': patch | ||
'@modern-js-reduck/plugin-immutable': patch | ||
'@modern-js-reduck/react': patch | ||
'@modern-js-reduck/store': patch | ||
--- | ||
|
||
chore: update build tools and build config, reduck product size. | ||
chore: 更新构建工具和配置,减少产物体积 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "common", | ||
"private": true, | ||
"devDependencies": { | ||
"@modern-js/module-tools": "2.21.1" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const monorepoTools = require('@modern-js/monorepo-tools').default; | ||
|
||
module.exports = { | ||
plugins: [monorepoTools()], | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
const { | ||
default: moduleTools, | ||
defineConfig, | ||
} = require('@modern-js/module-tools'); | ||
const test = require('@modern-js/plugin-testing').default; | ||
const config = require('../../../common/config'); | ||
|
||
module.exports = config; | ||
module.exports = defineConfig({ | ||
plugins: [moduleTools(), test()], | ||
...config, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
extends: '@modern-js', | ||
parserOptions: { | ||
project: require.resolve('./tsconfig.json'), | ||
}, | ||
}; |
2 changes: 1 addition & 1 deletion
2
...s/auto-actions/src/__test__/array.test.ts → .../plugins/auto-actions/tests/array.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// <reference types="@modern-js/module-tools/types" /> | ||
/// <reference types="@modern-js/plugin-testing/type" /> |
2 changes: 1 addition & 1 deletion
2
.../auto-actions/src/__test__/object.test.ts → ...plugins/auto-actions/tests/object.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
2 changes: 1 addition & 1 deletion
2
...to-actions/src/__test__/primitive.test.ts → ...gins/auto-actions/tests/primitive.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"baseUrl": "../" | ||
}, | ||
"include": ["**/*"] | ||
} |
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,3 +1,11 @@ | ||
const { | ||
default: moduleTools, | ||
defineConfig, | ||
} = require('@modern-js/module-tools'); | ||
const test = require('@modern-js/plugin-testing').default; | ||
const config = require('../../../common/config'); | ||
|
||
module.exports = config; | ||
module.exports = defineConfig({ | ||
plugins: [moduleTools(), test()], | ||
...config, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
const { | ||
default: moduleTools, | ||
defineConfig, | ||
} = require('@modern-js/module-tools'); | ||
const test = require('@modern-js/plugin-testing').default; | ||
const config = require('../../../common/config'); | ||
|
||
module.exports = config; | ||
module.exports = defineConfig({ | ||
plugins: [moduleTools(), test()], | ||
...config, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
extends: '@modern-js', | ||
parserOptions: { | ||
project: require.resolve('./tsconfig.json'), | ||
}, | ||
}; |
2 changes: 1 addition & 1 deletion
2
...effects/src/__test__/handleEffect.test.ts → ...lugins/effects/tests/handleEffect.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
2 changes: 1 addition & 1 deletion
2
...lugins/effects/src/__test__/index.test.ts → packages/plugins/effects/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// <reference types="@modern-js/module-tools/types" /> | ||
/// <reference types="@modern-js/plugin-testing/type" /> |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"baseUrl": "../" | ||
}, | ||
"include": ["**/*"] | ||
} |
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,3 +1,11 @@ | ||
const { | ||
default: moduleTools, | ||
defineConfig, | ||
} = require('@modern-js/module-tools'); | ||
const test = require('@modern-js/plugin-testing').default; | ||
const config = require('../../../common/config'); | ||
|
||
module.exports = config; | ||
module.exports = defineConfig({ | ||
plugins: [moduleTools(), test()], | ||
...config, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
extends: '@modern-js', | ||
parserOptions: { | ||
project: require.resolve('./tsconfig.json'), | ||
}, | ||
}; |
2 changes: 1 addition & 1 deletion
2
.../plugins/immer/src/__test__/index.test.ts → packages/plugins/immer/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// <reference types="@modern-js/module-tools/types" /> | ||
/// <reference types="@modern-js/plugin-testing/type" /> |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"baseUrl": "../" | ||
}, | ||
"include": ["**/*"] | ||
} |
Oops, something went wrong.