Skip to content

Commit 4ac0dc4

Browse files
committed
feat: refactor to typescript based codes, more output formats
1 parent 1db5a37 commit 4ac0dc4

31 files changed

+12690
-2521
lines changed

.babelrc

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

.eslintignore

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

.eslintrc

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

.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const { overrides } = require('@1stg/eslint-config/overrides')
2+
3+
module.exports = {
4+
extends: '@1stg',
5+
overrides,
6+
}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
*.log
2+
*.tsbuildinfo
3+
.cache
4+
.parcel-cache
15
dist
6+
lib
27
node_modules

.huskyrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@1stg/husky-config')

.lintstagedrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@1stg/lint-staged')

.postcssrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const config = {
2+
plugins: {
3+
autoprefixer: {},
4+
},
5+
}
6+
7+
if (process.env.NODE_ENV === 'production') {
8+
config.plugins.cssnano = {}
9+
}
10+
11+
module.exports = config

.remarkrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"plugins": [
3+
"preset-lint-consistent",
4+
"preset-lint-recommended",
5+
"preset-lint-markdown-style-guide",
6+
"preset-prettier"
7+
]
8+
}

.travis.yml

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,40 @@
11
language: node_js
22

3-
node_js: stable
3+
node_js: --lts
44

5-
cache: node_modules
5+
cache: yarn
66

7-
before_install: yarn global add greenkeeper-lockfile
7+
before_install:
8+
- curl -o- -L https://yarnpkg.com/install.sh | bash
9+
- export PATH="$HOME/.yarn/bin:$PATH"
10+
- git config --global user.name 'JounQin'
11+
- git config --global user.email 'admin@1stg.me'
812

9-
before_script: greenkeeper-lockfile-update
13+
install: yarn --frozen-lockfile
1014

1115
script:
1216
- yarn lint
13-
- yarn dist
17+
- yarn build
1418

15-
after_script:
16-
- greenkeeper-lockfile-upload
17-
- yarn codecov
19+
before_deploy:
20+
- npm set //registry.npmjs.org/:_authToken $NPM_TOKEN
21+
- git remote set-url origin https://user:$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git
22+
- git fetch origin $TRAVIS_BRANCH:$TRAVIS_BRANCH
23+
- git checkout $TRAVIS_BRANCH
24+
- yarn lerna-changelog
1825

1926
deploy:
20-
provider: npm
21-
email: admin@1stg.me
22-
skip_cleanup: true
23-
api_key:
24-
secure: zkdG+n97baa29WGbX2QaHWYa/0ilj1DPNZpEuXPq6vqNvuAl6lgcT7SsMVKdcqXO4degDPppE3DnjBQMoY5XDEnSefOLhHaTROz0btdlXqj8yDzeURHn0sZpljftNL3wjcNJzci2VR62lSO0mDVO84KFRzbA+XOxbjsGC2GBcUxqQJhzbnDfrvjjUyMaUvILt9kEVu+98G3AUCbkemLviq9g/k8BndxyimRzqusqDk65SLWWPKSnlkEYOeTbN8pHUhXWnrPabIjznete+ccBoYQfcTio3LCLXPCsUkFatGhsIqqdNhmA4vVS+DyKfqvK8juhJwo1MTyO20uGVRWNrvCTXn+m8SxxCxnnRWOmoJBRCGJLmQ3t3pSX5pyTq3DcUEmWFpCdqjW3xkAgGF3qYMJ2at00ylXzz9ZayRHg+Bmfrl3pBguJzqxaOwTzxJZGe9b6ptd5UgNtcnRxXCieG7nqbkNux+u/QQuZOfiHQbNJmsUAqIVvN+bVZi5O7DaqGeb26TdMcl0vhSBM2Li99D660NInVysTbVD4yGCB1DMLBmTSP7U1VE/91nV6OV8FQ5e4MabnJrcDIB3AjgS325jZ99aiBsaGdQFMrhP5Ym4ZiDI21dlgeXJVvTKFq3fq08t0uTydqtsCuYNKeJ6Bi/TeUr0ESDN5JoK0pliI4Rk=
25-
on:
26-
tags: true
27+
- provider: script
28+
skip_cleanup: true
29+
script: yarn lerna publish --create-release github --yes
30+
on:
31+
branch: master
32+
- provider: script
33+
skip_cleanup: true
34+
script: yarn lerna publish --canary --conventional-prerelease --force-publish --preid beta --pre-dist-tag beta --yes
35+
on:
36+
branch: develop
37+
38+
after_script:
39+
- yarn add -D @codechecks/client @codechecks/build-size-watcher @codechecks/type-coverage-watcher -W
40+
- yarn codechecks

0 commit comments

Comments
 (0)