Skip to content

Commit a305387

Browse files
committed
Initial commit
0 parents  commit a305387

20 files changed

Lines changed: 7136 additions & 0 deletions

.github/workflows/publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: 14
15+
- run: npm ci
16+
- run: npm run build
17+
- run: npm test
18+
publish-npm:
19+
needs: test
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: 14
26+
registry-url: https://registry.npmjs.org/
27+
- run: npm ci
28+
- run: npm run build
29+
- run: npm publish --access public
30+
env:
31+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
32+
publish-github:
33+
needs: test
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: actions/setup-node@v2
38+
with:
39+
node-version: 14
40+
registry-url: https://npm.pkg.github.com/
41+
- run: npm ci
42+
- run: npm run build
43+
- run: npm publish --access public
44+
env:
45+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/testing.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test and coverage
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: install
17+
run: npm ci
18+
19+
- name: test
20+
run: |
21+
npm run test
22+
npm run test:cov
23+
24+
- name: Coveralls
25+
uses: coverallsapp/github-action@master
26+
with:
27+
github-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.idea
2+
*.swp
3+
node_modules
4+
lib
5+
coverage

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.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

.husky/pre-commit

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

.husky/pre-push

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

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

CHANGELOG.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4+
5+
### [0.0.8](https://github.com/Webeleon/typecript-npm-package-starter/compare/v0.0.7...v0.0.8) (2021-06-01)
6+
7+
8+
### Bug Fixes
9+
10+
* update lockfile ([ab27e34](https://github.com/Webeleon/typecript-npm-package-starter/commit/ab27e3499f3140b04367d4a59380b3517f95f796))
11+
* **deps:** update dependency query-string to v7 ([630d4fe](https://github.com/Webeleon/typecript-npm-package-starter/commit/630d4fe628cff0ec102195d60e5080051578d246))
12+
13+
### [0.0.7](https://github.com/Webeleon/typecript-npm-package-starter/compare/v0.0.6...v0.0.7) (2021-05-10)
14+
15+
16+
### Bug Fixes
17+
18+
* build before publishing ([34200d7](https://github.com/Webeleon/typecript-npm-package-starter/commit/34200d7a1d192c7d97db38d68890cf4a9a2df124))
19+
20+
### [0.0.6](https://github.com/Webeleon/typecript-npm-package-starter/compare/v0.0.5...v0.0.6) (2021-05-10)
21+
22+
23+
### Bug Fixes
24+
25+
* typo in publish action ([57c6d10](https://github.com/Webeleon/typecript-npm-package-starter/commit/57c6d10fb0bbfcb159c4c9985e30515622b9a892))
26+
27+
### [0.0.5](https://github.com/Webeleon/typecript-npm-package-starter/compare/v0.0.4...v0.0.5) (2021-05-10)
28+
29+
### [0.0.4](https://github.com/Webeleon/typecript-npm-package-starter/compare/v0.0.3...v0.0.4) (2021-05-10)
30+
31+
32+
### Bug Fixes
33+
34+
* add coverage to gitignore ([84ea5b8](https://github.com/Webeleon/typecript-npm-package-starter/commit/84ea5b8ba56f54223bc7863531489559f3276dd1))
35+
* main test ([8d5acc9](https://github.com/Webeleon/typecript-npm-package-starter/commit/8d5acc94945b224f22a7bde0b90d66c13783491d))
36+
* npm publish action ([81016f2](https://github.com/Webeleon/typecript-npm-package-starter/commit/81016f200145495a444efb010f8f43c37642a912))
37+
38+
### [0.0.3](https://github.com/Webeleon/typecript-npm-package-starter/compare/v0.0.2...v0.0.3) (2021-05-10)
39+
40+
41+
### Bug Fixes
42+
43+
* package name ([a21865e](https://github.com/Webeleon/typecript-npm-package-starter/commit/a21865e5355d1a2b8c19ffcdfab8488a95ed6cd7))
44+
* update coverage commant in github action ([74b7a99](https://github.com/Webeleon/typecript-npm-package-starter/commit/74b7a999b24cfd4ec90826c31c3ad9e3304a02a6))
45+
46+
### 0.0.2 (2021-05-10)

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Webeleon npm package starter
2+
3+
## Install
4+
5+
```
6+
npm i package-name
7+
```

0 commit comments

Comments
 (0)