Skip to content

Commit 5eff22a

Browse files
committed
feat: initial commit
0 parents  commit 5eff22a

File tree

741 files changed

+25029
-0
lines changed

Some content is hidden

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

741 files changed

+25029
-0
lines changed

.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+
end_of_line = lf
5+
insert_final_newline = true
6+
7+
[*.{js,json,.yml}]
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 2

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
3+
/lib/*

.eslintrc.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
plugins: [
5+
'@typescript-eslint',
6+
],
7+
extends: [
8+
'eslint:recommended',
9+
'plugin:@typescript-eslint/recommended',
10+
],
11+
env: {
12+
node: true,
13+
es6: true,
14+
},
15+
parserOptions: {
16+
sourceType: 'module',
17+
},
18+
rules: {
19+
'@typescript-eslint/indent': ['error', 2, {SwitchCase: 1}],
20+
'comma-dangle': ['error', 'always-multiline'],
21+
'max-len': ['error', {ignoreStrings: true, ignoreUrls: true}],
22+
'no-trailing-spaces': 2,
23+
'object-shorthand': 2,
24+
'prefer-template': 2,
25+
quotes: ['error', 'single'],
26+
'quote-props': ['error', 'as-needed'],
27+
},
28+
};

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.yarn/** linguist-vendored

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Please see the documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "npm"
7+
directory: "/" # Location of package manifests
8+
schedule:
9+
interval: "daily"
10+
- package-ecosystem: "npm"
11+
directory: "/test"
12+
schedule:
13+
interval: "daily"

.github/workflows/ci.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
if: |
13+
!contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
14+
!contains(toJSON(github.event.commits.*.message), '[ci skip]')
15+
strategy:
16+
matrix:
17+
node: [10, 12, 14]
18+
eslint: [6, 7]
19+
fail-fast: false
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: Use Node.js ${{ matrix.node }}
25+
uses: actions/setup-node@v1
26+
with:
27+
node-version: ${{ matrix.node }}
28+
29+
- name: Install dependencies
30+
run: yarn --immutable
31+
32+
- name: Lint code
33+
run: yarn test:lint
34+
35+
- name: Build plugin
36+
run: yarn build
37+
38+
- name: Run tests
39+
run: |
40+
cd test
41+
YARN_CHECKSUM_BEHAVIOR=update yarn
42+
yarn add -D eslint@${{ matrix.eslint }}
43+
yarn test
44+
45+
release:
46+
runs-on: ubuntu-latest
47+
if: github.event_name == 'push'
48+
needs: test
49+
50+
steps:
51+
- uses: actions/checkout@v2
52+
53+
- name: Use Node.js 12
54+
uses: actions/setup-node@v1
55+
with:
56+
node-version: 12
57+
58+
- name: Install dependencies
59+
run: yarn --immutable
60+
61+
- name: Build plugin
62+
run: yarn build
63+
64+
- name: Run semantic release
65+
run: yarn semantic-release
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
node_modules
2+
*.log
3+
*.bak
4+
5+
/.yarn/*
6+
!/.yarn/releases
7+
!/.yarn/plugins
8+
!/.yarn/sdks
9+
10+
# Swap the comments on the following lines if you don't wish to use zero-installs
11+
# Documentation here: https://yarnpkg.com/features/zero-installs
12+
!/.yarn/cache
13+
#/.pnp.*
14+
15+
# ignore large caches
16+
/.yarn/cache/typescript-*.zip
17+
/.yarn/cache/npm-npm-*.zip
18+
19+
/lib/*
20+
/test/.eslintrc.js
21+
22+
package.tgz

0 commit comments

Comments
 (0)