Skip to content

Commit 8bd7946

Browse files
authored
Merge pull request #64 from ngs/develop
v0.6.0
2 parents 53b91a0 + 384de22 commit 8bd7946

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1770
-8757
lines changed

.babelrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"presets": ["react", "es2015", "stage-0"],
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": ["@babel/plugin-proposal-class-properties"],
34
"env": {
45
"development": {
5-
"presets": ["react-hmre"]
6+
"presets": []
67
},
78
"test": {
89
"plugins": ["rewire"]

.browserslistrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
> 1%

.circleci/build-demo.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

.circleci/check-tag.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 0 additions & 118 deletions
This file was deleted.

.circleci/deploy-demo.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

.circleci/export-api-key.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

.circleci/setup-git-user.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
lib/**
33
scripts/**
44
coverage/**
5+
postcss.config.js
6+
public

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"mocha": true,
77
"node": true
88
},
9-
"extends": "airbnb",
9+
"extends": ["airbnb", "prettier"],
1010
"rules": {
11-
"arrow-parens": ["error", "always"],
11+
"arrow-parens": ["error", "as-needed"],
1212
"max-len": 0,
1313
"comma-dangle": 0,
1414
"new-cap": 0,

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
github: ngs
2+
issuehunt: ngs/ci2go
3+
custom: https://www.paypal.me/atsnngs

.github/workflows/demo.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish demo
2+
on:
3+
push:
4+
branches: [master]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2-beta
11+
with:
12+
node-version: 12
13+
- run: npm install
14+
- run: npm run build:demo
15+
- name: Deploy
16+
uses: peaceiris/actions-gh-pages@v3
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
publish_dir: ./demo/public
20+
publish_branch: gh-pages
21+

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish to npm
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2-beta
11+
with:
12+
node-version: 12
13+
- name: Check tag version
14+
run: |
15+
TAG_NAME=${{ github.event.release.tag_name }}
16+
VERSION=$(node -e 'console.info(require("./package.json").version)')
17+
if [ "v${VERSION}" != $TAG_NAME ]; then
18+
echo "Ref ${TAG_NAME} not match with v${VERSION}"
19+
exit 1
20+
fi
21+
- run: npm install
22+
- name: publish
23+
run: |
24+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
25+
npm publish

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run tests
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
pull_request:
7+
branches:
8+
- '*'
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2-beta
15+
with:
16+
node-version: 12
17+
- run: npm install
18+
- uses: a-b-r-o-w-n/eslint-action@v1
19+
with:
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}
21+
- run: npm test
22+
- uses: coverallsapp/github-action@master
23+
with:
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
- uses: actions/upload-artifact@v2
26+
with:
27+
path: lib
28+
- uses: actions/upload-artifact@v2
29+
with:
30+
path: coverage

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ lib
4040
demo/public
4141
.deploy
4242
test-results.xml
43+
.node-version
44+
yarn.lock
45+
package-lock.json

.mocha.opts

Lines changed: 0 additions & 5 deletions
This file was deleted.

.mocharc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
reporter: mocha-multi-reporters
2+
reporter-option:
3+
- 'configFile=.mocha-multi-reporters.json'
4+
recursive: true
5+
spec: 'src/**/*-test.js'
6+

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 120,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"arrowParens": "avoid"
6+
}

0 commit comments

Comments
 (0)