Skip to content

Commit bc189e7

Browse files
feat: typescript (#46)
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
1 parent 0cb0b74 commit bc189e7

20 files changed

+7815
-2387
lines changed

.babelrc

Lines changed: 0 additions & 13 deletions
This file was deleted.

.editorconfig

Lines changed: 0 additions & 18 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
"extends": [
3+
"react-app",
4+
"prettier/@typescript-eslint",
5+
"plugin:prettier/recommended"
6+
],
7+
"settings": {
8+
"react": {
9+
"version": "999.999.999"
10+
}
11+
}
12+
}

.github/workflows/pull-request.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Pull request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- next
8+
- beta
9+
- alpha
10+
11+
jobs:
12+
test:
13+
name: Test
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Clone
17+
uses: actions/checkout@v1
18+
- name: Install node
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 12
22+
- name: Install dependencies
23+
run: yarn
24+
- name: Build
25+
run: yarn build
26+
- name: Lint
27+
run: yarn lint
28+
- name: Test
29+
run: yarn test --coverage

.github/workflows/push.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Push
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- next
8+
- beta
9+
- alpha
10+
11+
jobs:
12+
main:
13+
name: Build, lint, test and publish
14+
runs-on: ubuntu-latest
15+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
16+
steps:
17+
- name: Clone
18+
uses: actions/checkout@v1
19+
- name: Install node
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: 12
23+
- name: Install dependencies
24+
run: yarn
25+
- name: Build
26+
run: yarn build
27+
- name: Lint
28+
run: yarn lint
29+
- name: Test
30+
run: yarn test --coverage
31+
- name: Publish
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
run: yarn semantic-release

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
dist/
2-
node_modules/
1+
*.log
2+
.DS_Store
3+
node_modules
4+
dist
5+
coverage

.releaserc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
"@semantic-release/changelog",
6+
"@semantic-release/npm",
7+
[
8+
"@semantic-release/git",
9+
{
10+
"assets": ["package.json", "CHANGELOG.md"]
11+
}
12+
],
13+
"@semantic-release/github"
14+
]
15+
}

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# [0.2.0-beta.2](https://github.com/Tracktl/redux-promise-middleware/compare/v0.2.0-beta.1...v0.2.0-beta.2) (2020-01-22)
2+
3+
4+
### Bug Fixes
5+
6+
* **typings:** use relative imports ([6f2b951](https://github.com/Tracktl/redux-promise-middleware/commit/6f2b9518549a75710fa9ef97f5f313582152f407))
7+
8+
# [0.2.0-beta.1](https://github.com/Tracktl/redux-promise-middleware/compare/v0.1.3...v0.2.0-beta.1) (2020-01-22)
9+
10+
11+
### Features
12+
13+
* typescript ([#17](https://github.com/Tracktl/redux-promise-middleware/issues/17)) ([69df1be](https://github.com/Tracktl/redux-promise-middleware/commit/69df1be3e4b4b03d3071b4eedc5be4daf3c6c629))

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,20 @@ store.dispatch({
5959
});
6060
```
6161

62+
## Local Development
6263

64+
Below is a list of commands you will probably find useful.
65+
66+
### `npm start` or `yarn start`
67+
68+
Runs the project in development/watch mode.
69+
70+
### `npm run build` or `yarn build`
71+
72+
Bundles the package to the `dist` folder.
73+
The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
74+
75+
### `npm test` or `yarn test`
76+
77+
Runs the test watcher (Jest) in an interactive mode.
78+
By default, runs tests related to files changed since the last commit.

0 commit comments

Comments
 (0)