Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

17 changes: 0 additions & 17 deletions .eslintrc.js

This file was deleted.

15 changes: 9 additions & 6 deletions .github/workflows/auto-publisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
with:
node-version: 10
node-version: 20
cache: 'pnpm'
registry-url: https://registry.npmjs.org/
- run: |
npm i
npm run setup
npm run publish
pnpm i
pnpm run build
pnpm release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
REGISTRY: https://registry.npmjs.org
34 changes: 34 additions & 0 deletions .github/workflows/beta-publisher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Beta Publisher

on:
workflow_dispatch:
inputs:
tag:
type: choice
description: 'Tag'
required: true
options:
- rc
- beta
- alpha

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
registry-url: https://registry.npmjs.org/
- name: Build and Run
run: |
pnpm i
pnpm run build
pnpm publish --tag ${{inputs.tag}} -r --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
REGISTRY: https://registry.npmjs.org
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install pnpm
uses: pnpm/action-setup@v2
- uses: actions/setup-node@v1
with:
node-version: 10
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm run ci

- run: pnpm i
- run: pnpm build
- run: pnpm run lint
- run: pnpm run test
23 changes: 23 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pull Request Check

on:
pull_request:

jobs:
publish-pkg:
if: false # Temp disable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Setup
run: |
pnpm i
pnpm run build
- name: pkg.new
run: pnpx pkg-pr-new publish './packages/*'
13 changes: 7 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ es/
lib/
dist/
build/
esm/
es2017/
coverage/
node_modules/
examples/test
.idea/
.history/
packages/**/lib/
packages/**/dist/
packages/**/build/
packages/**/coverage/
packages/**/node_modules/
packages/*/lib/
packages/*/dist/
packages/*/build/
packages/*/coverage/

package-lock.json
yarn.lock
yarn.lock
3 changes: 1 addition & 2 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
#npx --no-install commitlint --edit "$1"
4 changes: 1 addition & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint && npm run test
lint-staged
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org/
4 changes: 2 additions & 2 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getPrettierConfig } = require('./packages/spec/src/');
import { config } from '@ice/spec/prettier';

module.exports = getPrettierConfig('react');
export default config;
25 changes: 25 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Development

## Run Test

```
npm run test
```

run test for specific component

```
npm run test -- packages/spec
```

## Run Prettier

```
npm run prettier
```

## Run Lint

```
npm run lint
```
Loading
Loading