-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: update project tooling #376
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
bb21d22
build: update gitignore
NoNameProvided 9f05b71
build: update year in license
NoNameProvided 894a5fc
build: update TS and Jest config
NoNameProvided 7e44f31
build: add Prettier
NoNameProvided 4fe1ca3
build: configure Husky and lint-staged
NoNameProvided b638900
build: remove Travis in favor of GH Actions
NoNameProvided f324a5b
build: add codecov config
NoNameProvided 987e14c
build: remove private true from package.json
NoNameProvided 422ad80
build: remove unused packages
NoNameProvided d013554
build: updated dev dependencies to latest
NoNameProvided 4d587dc
style: add newline to end of config files
NoNameProvided 2a15295
style: remove empty firstline from Codecov config
NoNameProvided File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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,24 @@ | ||
name: CD | ||
on: | ||
release: | ||
types: [created] | ||
jobs: | ||
publish: | ||
name: Publish to NPM | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
registry-url: https://registry.npmjs.org | ||
- run: npm ci --ignore-scripts | ||
- run: npm run prettier:check | ||
- run: npm run lint:check | ||
- run: npm run test:ci | ||
- run: npm run build | ||
- run: cp LICENSE build/LICENSE | ||
- run: cp README.md build/README.md | ||
- run: cp package.json build/package.json | ||
- run: npm publish ./build | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |
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,35 @@ | ||
name: CI | ||
on: push | ||
jobs: | ||
checks: | ||
name: Linters | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
- run: npm ci --ignore-scripts | ||
- run: npm run prettier:check | ||
- run: npm run lint:check | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [8.x, 10.x, 12.x, 14.x] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setting up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
- run: npm ci --ignore-scripts | ||
- run: npm run test:ci | ||
- run: npm install codecov -g | ||
- run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} | ||
build: | ||
name: Build | ||
needs: [tests, checks] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
- run: npm ci --ignore-scripts | ||
- run: npm run build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,52 @@ | ||
build/ | ||
node_modules/ | ||
coverage/ | ||
npm-debug.log | ||
# Log files | ||
logs | ||
*.log | ||
*.tmp | ||
*.tmp.* | ||
log.txt | ||
npm-debug.log* | ||
|
||
# Testing output | ||
lib-cov/** | ||
coverage/** | ||
|
||
# Environment files | ||
.env | ||
|
||
# Dependency directories | ||
node_modules | ||
|
||
# MacOS related files | ||
*.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
._* | ||
UserInterfaceState.xcuserstate | ||
|
||
# Windows related files | ||
Thumbs.db | ||
Desktop.ini | ||
$RECYCLE.BIN/ | ||
|
||
# IDE - Sublime | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/** | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
|
||
# IDE - IntelliJ | ||
.idea | ||
.vscode | ||
|
||
# Compilation output folders | ||
dist/ | ||
build/ | ||
tmp/ | ||
out-tsc/ | ||
temp | ||
|
||
# Files for playing around locally | ||
playground.ts | ||
playground.js |
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,8 @@ | ||
printWidth: 120 | ||
tabWidth: 2 | ||
useTabs: false | ||
semi: true | ||
singleQuote: true | ||
trailingComma: es5 | ||
bracketSpacing: true | ||
arrowParens: avoid |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This setting will create a big diff on the next PR, because most of the tabulations on the code is defined as 4 spaces. Should we change it now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I know. I did not run prettier for this reason. We should clean up the PRs and only autoformat after.