Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: - Refactor to typescript. Generated output is comparable to previous javascript implementation, no additional functionality changes made. - Use github actions build pipeline and semantic release
- Loading branch information
1 parent
95a5685
commit 91b0d33
Showing
17 changed files
with
9,064 additions
and
3,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 120 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: "build" | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
validation: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [8, 10, 12, 13] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: "Config" | ||
run: | | ||
git config --global user.email "git-ci@techinity.com" | ||
git config --global user.name "gitci" | ||
- name: "Install dependencies" | ||
run: npm install | ||
|
||
- name: "Build" | ||
run: npm run build | ||
|
||
- name: "Test" | ||
run: npm run test | ||
|
||
- name: "Lint" | ||
run: npm run lint | ||
|
||
- name: "Semantic version" | ||
if: | | ||
contains(github.event.commits[0].message, '[skip ci]') == false | ||
run: | | ||
npm run release -- --dry-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "release" | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
validation: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: "Config" | ||
run: | | ||
echo "Release triggered by ${{github.actor}}" | ||
echo "Commit ${{github.event.commits[0].message}}" | ||
git config --global user.email "git-ci@techinity.com" | ||
git config --global user.name "gitci" | ||
- name: "Install dependencies" | ||
run: npm install | ||
|
||
- name: "Build" | ||
run: npm run build | ||
|
||
- name: "Test" | ||
run: npm run test | ||
|
||
- name: "Semantic version" | ||
if: | | ||
contains(github.event.commits[0].message, '[skip ci]') == false | ||
run: | | ||
npm run release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.npmrc | ||
coverage/ | ||
dist/ | ||
node_modules/ | ||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"arrowParens": "always", | ||
"jsxBracketSameLine": false, | ||
"parser": "typescript", | ||
"printWidth": 120, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all", | ||
"useTabs": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"branch": "master", | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/npm", | ||
"@semantic-release/git" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
collectCoverage: true, | ||
moduleFileExtensions: ['ts', 'js', 'json', 'node'], | ||
resetMocks: true, | ||
testMatch: [ | ||
'**/?(*.)spec.ts', | ||
], | ||
testPathIgnorePatterns: [ | ||
'dist/', | ||
'node_modules/', | ||
], | ||
testURL: 'http://localhost/', | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
}, | ||
verbose: true, | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.