Skip to content

Commit 3456c64

Browse files
authored
Merge pull request #2 from kreuzerk/feature/typescript
Feature/typescript
2 parents fec6de5 + 95b1500 commit 3456c64

18 files changed

+285
-76
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@ typings/
5959

6060
# next.js build output
6161
.next
62+
63+
dist/**

.releaserc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
2+
"pkgRoot": "dist",
23
"plugins": [
34
"@semantic-release/commit-analyzer",
45
"@semantic-release/release-notes-generator",
56
"@semantic-release/changelog",
67
"@semantic-release/npm",
8+
["@semantic-release/exec", {
9+
"prepareCmd": "VERSION=${nextRelease.version} npm run bump-version"
10+
}],
711
["@semantic-release/git", {
812
"assets": ["package.json", "CHANGELOG.md"],
913
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
1014
}],
1115
"@semantic-release/github"
1216
]
13-
}
17+
}

.travis.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,26 @@ dist: trusty
22
sudo: required
33
language: node_js
44
node_js:
5-
- "8"
5+
- "8"
66

77
os:
8-
- linux
8+
- linux
99

1010
jobs:
1111
include:
12-
- stage: install
13-
script: npm install
14-
skip_cleanup: true
15-
- stage: test
16-
script: npm run report:coverage
17-
skip_cleanup: true
18-
- stage: release
19-
node_js: lts/*
20-
deploy:
21-
provider: script
12+
- stage: install
13+
script: npm install
2214
skip_cleanup: true
23-
script:
24-
- npx semantic-release
25-
if: branch = master
15+
- stage: test
16+
script: npm run report:coverage
17+
skip_cleanup: true
18+
- stage: build
19+
- npm run build
20+
- stage: release
21+
node_js: lts/*
22+
deploy:
23+
provider: script
24+
skip_cleanup: true
25+
script:
26+
- npx semantic-release
27+
if: branch = master

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ new to you, you may want to read my blog-post about [The way to fully automated
1212

1313
## What's included?
1414

15+
### Language
16+
This starter allows you to write your command line util in TypeScript. 💪
17+
1518
### Testing
1619
- [Jest](https://jestjs.io/) - JavaScript Testing Framework
1720
- Jest configurations to mock third party libaries

jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
roots: ['<rootDir>/src'],
3+
transform: {
4+
'^.+\\.tsx?$': 'ts-jest',
5+
},
6+
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
7+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
8+
}

0 commit comments

Comments
 (0)