Skip to content

Commit

Permalink
refactor: πŸ’‘ move component-next repo to pkg-cli (ice-lab#291)
Browse files Browse the repository at this point in the history
* refactor: πŸ’‘ move component-next repo to pkg-cli

ci: 🎑 pass ci

fix: πŸ› test ci

test: πŸ’ ci test

test: πŸ’ pass ci

fix: πŸ› test ci

feat: 🎸 testi ci

test: πŸ’ ci test

test ci

update

temp remove link

test ci

upte

ui

test: πŸ’ test

* feat: 🎸 plugin-docusarus should run in the end

* docs: ✏️ update readme
  • Loading branch information
maoxiaoke authored Mar 22, 2022
1 parent b00e344 commit 2fa4bec
Show file tree
Hide file tree
Showing 90 changed files with 15,916 additions and 163 deletions.
17 changes: 14 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ coverage/
node_modules
extensions/*/out
.vscode-test
packages/*/lib/
packages/*/es/
packages/*/build/
packages/**/lib/
packages/**/es/
packages/**/esnext/
packages/**/build/
packages/build-plugin-component/*/template
app/main_dist/
app/build/
Expand All @@ -23,3 +24,13 @@ __tests__
# εΏ½η•₯ζ–‡δ»Ά
**/*-min.js
**/*.min.js

lib
node_modules
__tests__
examples/**/esm
examples/**/es
examples/**/esnext
examples/**/lib
examples/**/dist
examples/**/build
47 changes: 4 additions & 43 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,9 @@
const { getESLintConfig } = require('@iceworks/spec');

const commonRules = {
'react/jsx-filename-extension': [1, { 'extensions': ['.js', '.jsx', '.tsx'] }],
'react/jsx-no-target-blank': [0],
'prefer-object-spread': 0,
'@typescript-eslint/array-type': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'max-classes-per-file': 0,
'class-methods-use-this': 0
};

const jsRules = getESLintConfig('react', {
env: {
jest: true
},
rules: {
...commonRules,
},
});


const tsRules = getESLintConfig('react-ts', {
env: {
jest: true
},
module.exports = getESLintConfig('common-ts', {
rules: {
...commonRules,
'@typescript-eslint/ban-ts-ignore': 0,
'@typescript-eslint/array-type': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/no-parameter-properties': 0
'no-nested-ternary': 'off',
'no-await-in-loop': 'off',
'no-multi-assign': 'off',
},
});

delete tsRules.root;

module.exports = {
...jsRules,
overrides: [
{
...tsRules,
files: ['**/*.ts', '**/*.tsx'],
},
],
};
31 changes: 22 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,37 @@ jobs:

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 install:deps
- run: npm run ci
- run: npm run publish:packages
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
DING_WEBHOOK: ${{secrets.DING_WEBHOOK}}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

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

- run: pnpm run setup
- run: pnpm run lint
- run: pnpm run test
- run: pnpm run coverage

# ζš‚ζ—ΆδΈε‘εΈƒ package
# - run: npm run publish:packages
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# DING_WEBHOOK: ${{secrets.DING_WEBHOOK}}

# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,21 @@ packages/*/es/
**/package-lock.json
**/build
.history
/.cache
/node_modules
/lib
/packages/**/lib
/packages/**/es
/packages/**/esnext
**/node_modules
/.pnpm-debug.log
**/pnpm-global
examples/**/esm
examples/**/es
examples/**/esnext
examples/**/lib
examples/**/dist
examples/**/.vscode
examples/**/.DS_Store
examples/**/.docusaurus
examples/**/build
Loading

0 comments on commit 2fa4bec

Please sign in to comment.