Skip to content

Commit 49f444f

Browse files
committed
chore: initial commit
closes #2, closes #3, closes #4
0 parents  commit 49f444f

20 files changed

+6080
-0
lines changed

.commitlintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {extends: ['@form8ion']};

.czrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"path":"./node_modules/cz-conventional-changelog"}

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
indent_style = space
10+
indent_size = 2
11+
end_of_line = lf
12+
insert_final_newline = true

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.github/settings.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
_extends: .github
2+
repository:
3+
name: eslint-config-typescript
4+
description: shareable ESLint config for TypeScript projects
5+
homepage: https://npm.im/@form8ion/eslint-config-typescript
6+
private: false

.github/workflows/node-ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Node.js CI
2+
'on':
3+
push:
4+
branches:
5+
- master
6+
- alpha
7+
- beta
8+
- renovate/**
9+
pull_request:
10+
types:
11+
- opened
12+
- synchronize
13+
env:
14+
FORCE_COLOR: 1
15+
NPM_CONFIG_COLOR: always
16+
jobs:
17+
verify:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Read .nvmrc
22+
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
23+
id: nvm
24+
- name: Setup node
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: ${{ steps.nvm.outputs.NVMRC }}
28+
- uses: bahmutov/npm-install@v1
29+
- run: npm test
30+
release:
31+
needs: verify
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Read .nvmrc
36+
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
37+
id: nvm
38+
- name: Setup node
39+
uses: actions/setup-node@v2
40+
with:
41+
node-version: ${{ steps.nvm.outputs.NVMRC }}
42+
- uses: bahmutov/npm-install@v1
43+
- name: semantic-release
44+
run: npx semantic-release
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.gitignore

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

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm test

.lockfile-lintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"path":"package-lock.json","type":"npm","validate-https":true,"allowed-hosts":["npm"]}

0 commit comments

Comments
 (0)