Skip to content

Commit d98b1a7

Browse files
committed
feat: add TS type defs
1 parent 2cd2ffb commit d98b1a7

File tree

95 files changed

+9745
-10666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+9745
-10666
lines changed

.babelrc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-env node, es2018 */
2+
module.exports = function (api) {
3+
const base = require('@jcoreio/toolchain-esnext/.babelrc.cjs')(api)
4+
return {
5+
...base,
6+
}
7+
}

.babelrc.js

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

.circleci/config.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
version: 2
1+
# created by @jcoreio/toolchain-circle
2+
3+
version: 2.1
24
jobs:
35
build:
46
docker:
5-
- image: circleci/node:8
7+
- image: cimg/node:20.3.0
68

79
steps:
810
- checkout
9-
- restore_cache:
10-
name: Restore Yarn Package Cache
11-
keys:
12-
- v1-yarn-packages-{{ checksum "yarn.lock" }}
13-
1411
- run:
1512
name: Setup NPM Token
1613
command: |
17-
yarn config set registry "https://registry.npmjs.org/"
18-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
19-
echo "registry=https://registry.npmjs.org/" >> .npmrc
20-
14+
npm config set \
15+
"//registry.npmjs.org/:_authToken=$NPM_TOKEN" \
16+
"registry=https://registry.npmjs.org/"
2117
- run:
22-
name: Install Dependencies
23-
command: yarn install --frozen-lockfile
24-
- save_cache:
25-
name: Save Yarn Package Cache
26-
key: v1-yarn-packages-{{ checksum "yarn.lock" }}
27-
paths:
28-
- ~/.cache/yarn
29-
18+
name: Corepack enable
19+
command: sudo corepack enable
3020
- run:
31-
name: build
32-
command: yarn run prepublishOnly
21+
name: Install Dependencies
22+
command: pnpm install --frozen-lockfile
3323
- run:
34-
name: upload test coverage
35-
command: yarn codecov || true
24+
name: Prepublish
25+
command: |
26+
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc prepublish
3627
- run:
37-
name: release
38-
command: yarn run semantic-release || true
28+
name: Release
29+
command: |
30+
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc release
31+
32+
workflows:
33+
build:
34+
jobs:
35+
- build:
36+
context:
37+
- npm-release
38+
- github-release

.eslintrc

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

.eslintrc.cjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* eslint-env node, es2018 */
2+
module.exports = {
3+
extends: [require.resolve('@jcoreio/toolchain/eslint.config.cjs')],
4+
env: {
5+
es6: true,
6+
},
7+
globals: {
8+
process: true,
9+
},
10+
}

.flowconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<PROJECT_ROOT>/node_modules/fbjs/.*
66
<PROJECT_ROOT>/node_modules/.*/fbjs/.*
77
<PROJECT_ROOT>/node_modules/.*/config-chain/.*
8+
<PROJECT_ROOT>/dist/.*
9+
.*/malformed_package_json/.*
810

911
[include]
1012
./src

.gitignore

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
coverage
1+
/dist
22
.nyc_output
33
node_modules
4-
lib
5-
module
6-
es
7-
.eslintcache
8-
/*.js
9-
/*.js.flow
10-
!/.babelrc.js
4+
/coverage

.mocharc.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* eslint-env node, es2018 */
2+
const base = require('@jcoreio/toolchain-mocha/.mocharc.cjs')
3+
module.exports = {
4+
...base,
5+
}

.npmignore

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ import { combineReducers } from 'redux'
118118
import { createReducer, prefixReducer } from 'mindfront-redux-utils'
119119

120120
const counterReducer = createReducer(0, {
121-
DECREMENT: state => state - 1,
122-
INCREMENT: state => state + 1,
121+
DECREMENT: (state) => state - 1,
122+
INCREMENT: (state) => state + 1,
123123
})
124124

125125
const reducer = combineReducers({

0 commit comments

Comments
 (0)