Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-scripts-2.0.0 #84

Merged
merged 42 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
1dbcbe7
feat: first commit
maoxiaoke Jan 25, 2022
0b32e8e
reslover
maoxiaoke Jan 25, 2022
1548beb
reslve update
maoxiaoke Jan 25, 2022
515dd64
fix: 🐛 fix lint
maoxiaoke Jan 26, 2022
8f5cb1b
fix: 🐛 runGetConfigFn
maoxiaoke Jan 26, 2022
74abdb2
fix: 🐛 remove useless code
maoxiaoke Jan 26, 2022
856f84e
fix: 🐛 to fix some lint
maoxiaoke Feb 8, 2022
65d9d73
refactor: 💡 move to pnpm
maoxiaoke Feb 8, 2022
d6e4980
refactor: 💡 refact
maoxiaoke Feb 10, 2022
7de9040
chore: 🤖 pnpm ci
maoxiaoke Feb 14, 2022
bfd1080
test: 💍 pass tests
maoxiaoke Feb 14, 2022
773b16f
chore: 🤖 lints
maoxiaoke Feb 14, 2022
3b5b300
test: 💍 tests
maoxiaoke Feb 14, 2022
6300719
chore: 🤖 refact code
maoxiaoke Feb 17, 2022
487cb06
chore: 🤖 refact logger
maoxiaoke Feb 17, 2022
de53a33
feat: 🎸 supported types & extendsPluginAPI
maoxiaoke Feb 22, 2022
d9f94f5
fix: 🐛 refact code
maoxiaoke Feb 22, 2022
d13c681
feat: 🎸 export public api
maoxiaoke Feb 22, 2022
aa3e9a2
fix: 🐛 refact type
maoxiaoke Feb 22, 2022
8c17d02
fix: 🐛 deepmerge default
maoxiaoke Feb 22, 2022
48a8594
fix: 🐛 undesirable type of usrconfig cause error
maoxiaoke Feb 24, 2022
86d2fcb
chore: 🤖 pass ci
maoxiaoke Feb 24, 2022
318d7d7
fix: 🐛 undefined extendsPluginApi
maoxiaoke Feb 24, 2022
52f71f3
feat: 🎸 add userConfig types & onGetConfig returns
maoxiaoke Feb 25, 2022
868d986
Merge pull request #90 from ice-lab/fix/userConfigTypes
maoxiaoke Feb 25, 2022
039dba1
Turns to Pure ESM Package (#92)
maoxiaoke Mar 25, 2022
0eab9d7
fix: 🐛 js suffix
maoxiaoke Mar 25, 2022
75fb87a
feat: support validation of function (#94)
ClarkXia Mar 29, 2022
a5aba97
fix: type error (#95)
ClarkXia Mar 31, 2022
851045c
fix: 🐛 generic for service (#97)
maoxiaoke Apr 14, 2022
68ca5f7
chore: 🤖 task type (#99)
maoxiaoke Apr 25, 2022
39ac232
Feat/load config (#102)
maoxiaoke Apr 28, 2022
ca93202
feat: refactor types and api (#101)
ClarkXia Jul 11, 2022
cae4c53
fix: lose object property after deepmerge (#106)
luhc228 Jul 11, 2022
1bc33cb
fix: compatible with win32 when import file (#107)
ClarkXia Sep 16, 2022
597bbf5
Merge branch 'master' into version2.0.0
ClarkXia Sep 21, 2022
b49a1cc
fix: check bulit-in plugins (#110)
ClarkXia Sep 21, 2022
4bc1d18
fix: export types (#111)
ClarkXia Nov 22, 2022
b6041d1
docs: update 2.x readme (#105)
ClarkXia Nov 22, 2022
8be320c
Merge branch 'master' into version2.0.0
ClarkXia Nov 22, 2022
77245bc
chore: remove useless folder
ClarkXia Nov 22, 2022
87cd419
Merge branch 'version2.0.0' of github.com:ice-lab/build-scripts into …
ClarkXia Nov 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@ expected
website
gh-pages
vendors
packages/build-scripts/test
packages/template-plugin/tests
packages/build-scripts/bin
packages/build-scripts/lib
packages/build-plugin-store/lib
packages/build-plugin-ice-router/lib
packages/build-plugin-ice-stark-child/lib
packages/build-plugin-env-config/lib
packages/build-plugin-webpack5/lib
packages/build-plugin-rml/lib
packages/build-plugin-stark-module/lib
packages/build-plugin-stark-module/test
packages/template-component-demo/lib
packages/template-component-demo/es
examples
__tests__/fixtures
lib
39 changes: 5 additions & 34 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,9 @@
const { eslint, tslint, deepmerge } = require('@ice/spec');
const { getESLintConfig } = require('@iceworks/spec');

const commonRules = {
'global-require': 0,
'import/no-dynamic-require': 0,
'no-restricted-syntax': ['error', "BinaryExpression[operator='of']"],
'import/order': 0,
};

const jsRules = deepmerge(eslint, {
module.exports = getESLintConfig('react-ts', {
rules: {
...commonRules,
'no-async-promise-executor': 'off',
'@iceworks/best-practices/recommend-polyfill': 'off',
'@typescript-eslint/no-invalid-void-type': 'off',
},
});

const tsRules = deepmerge(tslint, {
rules: {
...commonRules,
'@typescript-eslint/explicit-function-return-type': [
'warn',
{
allowTypedFunctionExpressions: true,
},
],
},
});

delete tsRules.root;

module.exports = {
...jsRules,
overrides: [
{
...tsRules,
files: ['**/*.ts', '**/*.tsx'],
},
],
};
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,26 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Set branch name
run: echo >>$GITHUB_ENV BRANCH_NAME=${GITHUB_REF#refs/heads/}

- name: Echo branch name
run: echo ${BRANCH_NAME}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- run: npm run setup
- run: npm run test

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6

- run: pnpm run setup
- run: pnpm run test
- run: pnpm run coverage
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ examples/react-component/es
packages/template-component-demo/lib
packages/template-component-demo/es

.pnpm-debug.log
Loading