Skip to content

Commit 28229bf

Browse files
JounQinteoxoy
andauthored
Chore/merge (#27)
Chore/merge Co-authored-by: Teodor Tanasoaia <28601907+Teoxoy@users.noreply.github.com>
2 parents 0cbd385 + 970b2ef commit 28229bf

Some content is hidden

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

47 files changed

+7628
-1722
lines changed

.commitlintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@1stg"
4+
]
5+
}

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
tab_width = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib
2+
CHANGELOG.md

.eslintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const { js } = require('@1stg/eslint-config/overrides')
2+
3+
module.exports = {
4+
extends: ['@1stg', 'plugin:import/typescript', 'plugin:mdx/recommended'],
5+
overrides: [js],
6+
rules: {
7+
'node/no-unsupported-features/es-syntax': 0,
8+
},
9+
}

.github/workflows/nodejs.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Node CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
matrix:
9+
node: [8.x, 10.x, 12.x]
10+
os: [macOS-latest, ubuntu-latest]
11+
runs-on: ${{ matrix.os }}
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Use Node.js ${{ matrix.node }}
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: ${{ matrix.node }}
18+
- name: setup yarn
19+
run: |
20+
curl -o- -L https://yarnpkg.com/install.sh | bash
21+
export PATH="$HOME/.yarn/bin:$PATH"
22+
- name: build, lint, test
23+
run: |
24+
yarn --frozen-lockfile
25+
yarn build
26+
yarn lint
27+
yarn eslint -f friendly tests/**/*.{ts,tsx}
28+
env:
29+
CI: true
30+
EFF_NO_LINK_RULES: true
31+
32+
# codecov:
33+
# runs-on: macOS-latest
34+
# needs: build
35+
# steps:
36+
# - name: Report Test Code Coverage
37+
# if: matrix.node == '12.x'
38+
# run: |
39+
# yarn global add codecov codacy-coverage
40+
# codecov
41+
# cat ./coverage/lcov.info | codacy-coverage
42+
# env:
43+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
44+
45+
deploy:
46+
runs-on: macOS-latest
47+
needs: build
48+
steps:
49+
- name: Publish Release and npm Package
50+
if: github.event_name == 'push' && github.ref == 'master' && matrix.node == '12.x'
51+
run: bash deploy.sh
52+
env:
53+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
GH_BRANCH: ${{ github.ref }}
56+
GH_REPO: ${{ github.repository }}
57+
58+
codecheck:
59+
runs-on: macOS-latest
60+
needs: [build, deploy]
61+
steps:
62+
- name: Code Check
63+
if: matrix.node == '12.x'
64+
run: |
65+
yarn add -D @codechecks/client @codechecks/build-size-watcher
66+
yarn codechecks
67+
env:
68+
CC_SECRET: ${{ secrets.CC_SECRET }}

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1+
.type-coverage
2+
lib
13
node_modules
2-
yarn-error.log
3-
yarn.lock
4-
.idea
5-
.vscode
4+
*.log

.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')

.npmignore

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

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"@1stg/prettier-config"

0 commit comments

Comments
 (0)