Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ylemkimon committed Aug 20, 2020
0 parents commit 5eff22a
Show file tree
Hide file tree
Showing 741 changed files with 25,029 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,.yml}]
charset = utf-8
indent_style = space
indent_size = 2
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules

/lib/*
28 changes: 28 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
env: {
node: true,
es6: true,
},
parserOptions: {
sourceType: 'module',
},
rules: {
'@typescript-eslint/indent': ['error', 2, {SwitchCase: 1}],
'comma-dangle': ['error', 'always-multiline'],
'max-len': ['error', {ignoreStrings: true, ignoreUrls: true}],
'no-trailing-spaces': 2,
'object-shorthand': 2,
'prefer-template': 2,
quotes: ['error', 'single'],
'quote-props': ['error', 'as-needed'],
},
};
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.yarn/** linguist-vendored
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
directory: "/" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/test"
schedule:
interval: "daily"
68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
if: |
!contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
!contains(toJSON(github.event.commits.*.message), '[ci skip]')
strategy:
matrix:
node: [10, 12, 14]
eslint: [6, 7]
fail-fast: false

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: yarn --immutable

- name: Lint code
run: yarn test:lint

- name: Build plugin
run: yarn build

- name: Run tests
run: |
cd test
YARN_CHECKSUM_BEHAVIOR=update yarn
yarn add -D eslint@${{ matrix.eslint }}
yarn test
release:
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs: test

steps:
- uses: actions/checkout@v2

- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: yarn --immutable

- name: Build plugin
run: yarn build

- name: Run semantic release
run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
node_modules
*.log
*.bak

/.yarn/*
!/.yarn/releases
!/.yarn/plugins
!/.yarn/sdks

# Swap the comments on the following lines if you don't wish to use zero-installs
# Documentation here: https://yarnpkg.com/features/zero-installs
!/.yarn/cache
#/.pnp.*

# ignore large caches
/.yarn/cache/typescript-*.zip
/.yarn/cache/npm-npm-*.zip

/lib/*
/test/.eslintrc.js

package.tgz
Loading

0 comments on commit 5eff22a

Please sign in to comment.