Skip to content

Commit adafb6e

Browse files
committed
feat: add TS type defs
1 parent 9ab8ff4 commit adafb6e

Some content is hidden

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

59 files changed

+18396
-18194
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 & 30 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 & 22 deletions
This file was deleted.

.eslintrc.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 = {
3+
extends: [require.resolve('@jcoreio/toolchain/eslint.config.cjs')],
4+
env: {
5+
es6: true,
6+
},
7+
}

.flowconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<PROJECT_ROOT>/node_modules/.*/fbjs/.*
99
<PROJECT_ROOT>/node_modules/fbjs/.*
1010
<PROJECT_ROOT>/node_modules/.*/config-chain/.*
11+
<PROJECT_ROOT>/dist/.*
12+
.*/malformed_package_json/.*
1113

1214
[include]
1315
./src

.gitignore

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

.mocharc.cjs

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

.npmignore

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

demo/bundle.js

Lines changed: 3297 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)