Skip to content

Commit

Permalink
chore: switch to toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Mar 4, 2024
1 parent 8b426b3 commit 093219d
Show file tree
Hide file tree
Showing 61 changed files with 9,923 additions and 9,480 deletions.
7 changes: 7 additions & 0 deletions .babelrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* eslint-env node, es2018 */
module.exports = function (api) {
const base = require('@jcoreio/toolchain-esnext/.babelrc.cjs')(api)
return {
...base,
}
}
24 changes: 0 additions & 24 deletions .babelrc.js

This file was deleted.

44 changes: 24 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,38 @@
version: 2
# created by @jcoreio/toolchain-circle

version: 2.1
jobs:
build:
docker:
- image: circleci/node:16
- image: cimg/node:20.3.0

steps:
- checkout

- run:
name: Setup NPM Token
command: |
yarn config set registry "https://registry.npmjs.org/"
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
echo "registry=https://registry.npmjs.org/" >> .npmrc
# https://github.com/atlassian/react-beautiful-dnd/issues/1007#issuecomment-446415426
npm config set \
"//registry.npmjs.org/:_authToken=$NPM_TOKEN" \
"registry=https://registry.npmjs.org/"
- run:
name: Workaround for Flow crashing
command: echo "server.max_workers=1" >> .flowconfig

name: Corepack enable
command: sudo corepack enable
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile

command: pnpm install --frozen-lockfile
- run:
name: build
command: yarn run prepublishOnly
- run:
name: upload test coverage
command: yarn codecov
name: Prepublish
command: |
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc prepublish
- run:
name: release
command: yarn run semantic-release
name: Release
command: |
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc release
workflows:
build:
jobs:
- build:
context:
- npm-release
- github-release
11 changes: 0 additions & 11 deletions .eslintrc

This file was deleted.

7 changes: 7 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* eslint-env node, es2018 */
module.exports = {
extends: [require.resolve('@jcoreio/toolchain/eslint.config.cjs')],
env: {
es2017: true,
},
}
2 changes: 2 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<PROJECT_ROOT>/node_modules/fbjs/.*
<PROJECT_ROOT>/node_modules/.*/fbjs/.*
<PROJECT_ROOT>/node_modules/.*/config-chain/.*
<PROJECT_ROOT>/dist/.*
.*/malformed_package_json/.*

[include]
./src
Expand Down
16 changes: 3 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
/coverage
/.nyc_output
/dist
.nyc_output
node_modules
/lib
/es
.eslintcache
*.js
*.js.flow
*.ts
!/flow-typed/**/*.js
!/src/**/*.js
!/src/**/*.ts
!/test/**/*.js
!/.babelrc.js
/coverage
5 changes: 5 additions & 0 deletions .mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* eslint-env node, es2018 */
const base = require('@jcoreio/toolchain-mocha/.mocharc.cjs')
module.exports = {
...base,
}
11 changes: 0 additions & 11 deletions .npmignore

This file was deleted.

70 changes: 35 additions & 35 deletions flow-typed/npm/@commitlint/cli_vx.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

declare module '@commitlint/cli' {
declare module.exports: any;
declare module.exports: any
}

/**
Expand All @@ -23,121 +23,121 @@ declare module '@commitlint/cli' {
* needed.
*/
declare module '@commitlint/cli/fixtures/empty/commitlint.config' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/fixtures/extends-root/extended' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/fixtures/inner-scope/commitlint.config' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/fixtures/issue-prefixes/commitlint.config' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/fixtures/parser-preset/commitlint.config' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/fixtures/parser-preset/parser-preset' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/fixtures/signoff/commitlint.config' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/fixtures/simple/commitlint.config' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/lib/cli' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/lib/cli.test' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/lib/help' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/src/cli' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/src/cli.test' {
declare module.exports: any;
declare module.exports: any
}

declare module '@commitlint/cli/src/help' {
declare module.exports: any;
declare module.exports: any
}

// Filename aliases
declare module '@commitlint/cli/fixtures/empty/commitlint.config.js' {
declare module.exports: $Exports<'@commitlint/cli/fixtures/empty/commitlint.config'>;
declare module.exports: $Exports<'@commitlint/cli/fixtures/empty/commitlint.config'>
}
declare module '@commitlint/cli/fixtures/extends-root/extended.js' {
declare module.exports: $Exports<'@commitlint/cli/fixtures/extends-root/extended'>;
declare module.exports: $Exports<'@commitlint/cli/fixtures/extends-root/extended'>
}
declare module '@commitlint/cli/fixtures/inner-scope/commitlint.config.js' {
declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/commitlint.config'>;
declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/commitlint.config'>
}
declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config.js' {
declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config'>;
declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config'>
}
declare module '@commitlint/cli/fixtures/issue-prefixes/commitlint.config.js' {
declare module.exports: $Exports<'@commitlint/cli/fixtures/issue-prefixes/commitlint.config'>;
declare module.exports: $Exports<'@commitlint/cli/fixtures/issue-prefixes/commitlint.config'>
}
declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config.js' {
declare module.exports: $Exports<'@commitlint/cli/fixtures/outer-scope/commitlint.config'>;
declare module.exports: $Exports<'@commitlint/cli/fixtures/outer-scope/commitlint.config'>
}
declare module '@commitlint/cli/fixtures/parser-preset/commitlint.config.js' {
declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/commitlint.config'>;
declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/commitlint.config'>
}
declare module '@commitlint/cli/fixtures/parser-preset/parser-preset.js' {
declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/parser-preset'>;
declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/parser-preset'>
}
declare module '@commitlint/cli/fixtures/signoff/commitlint.config.js' {
declare module.exports: $Exports<'@commitlint/cli/fixtures/signoff/commitlint.config'>;
declare module.exports: $Exports<'@commitlint/cli/fixtures/signoff/commitlint.config'>
}
declare module '@commitlint/cli/fixtures/simple/commitlint.config.js' {
declare module.exports: $Exports<'@commitlint/cli/fixtures/simple/commitlint.config'>;
declare module.exports: $Exports<'@commitlint/cli/fixtures/simple/commitlint.config'>
}
declare module '@commitlint/cli/index' {
declare module.exports: $Exports<'@commitlint/cli'>;
declare module.exports: $Exports<'@commitlint/cli'>
}
declare module '@commitlint/cli/index.js' {
declare module.exports: $Exports<'@commitlint/cli'>;
declare module.exports: $Exports<'@commitlint/cli'>
}
declare module '@commitlint/cli/lib/cli.js' {
declare module.exports: $Exports<'@commitlint/cli/lib/cli'>;
declare module.exports: $Exports<'@commitlint/cli/lib/cli'>
}
declare module '@commitlint/cli/lib/cli.test.js' {
declare module.exports: $Exports<'@commitlint/cli/lib/cli.test'>;
declare module.exports: $Exports<'@commitlint/cli/lib/cli.test'>
}
declare module '@commitlint/cli/lib/help.js' {
declare module.exports: $Exports<'@commitlint/cli/lib/help'>;
declare module.exports: $Exports<'@commitlint/cli/lib/help'>
}
declare module '@commitlint/cli/src/cli.js' {
declare module.exports: $Exports<'@commitlint/cli/src/cli'>;
declare module.exports: $Exports<'@commitlint/cli/src/cli'>
}
declare module '@commitlint/cli/src/cli.test.js' {
declare module.exports: $Exports<'@commitlint/cli/src/cli.test'>;
declare module.exports: $Exports<'@commitlint/cli/src/cli.test'>
}
declare module '@commitlint/cli/src/help.js' {
declare module.exports: $Exports<'@commitlint/cli/src/help'>;
declare module.exports: $Exports<'@commitlint/cli/src/help'>
}
7 changes: 3 additions & 4 deletions flow-typed/npm/@commitlint/config-conventional_vx.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

declare module '@commitlint/config-conventional' {
declare module.exports: any;
declare module.exports: any
}

/**
Expand All @@ -23,11 +23,10 @@ declare module '@commitlint/config-conventional' {
* needed.
*/


// Filename aliases
declare module '@commitlint/config-conventional/index' {
declare module.exports: $Exports<'@commitlint/config-conventional'>;
declare module.exports: $Exports<'@commitlint/config-conventional'>
}
declare module '@commitlint/config-conventional/index.js' {
declare module.exports: $Exports<'@commitlint/config-conventional'>;
declare module.exports: $Exports<'@commitlint/config-conventional'>
}
6 changes: 3 additions & 3 deletions flow-typed/npm/@jedwards1211/commitlint-config_vx.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

declare module '@jedwards1211/commitlint-config' {
declare module.exports: any;
declare module.exports: any
}

/**
Expand All @@ -23,10 +23,10 @@ declare module '@jedwards1211/commitlint-config' {
* needed.
*/
declare module '@jedwards1211/commitlint-config/commitlint.config' {
declare module.exports: any;
declare module.exports: any
}

// Filename aliases
declare module '@jedwards1211/commitlint-config/commitlint.config.js' {
declare module.exports: $Exports<'@jedwards1211/commitlint-config/commitlint.config'>;
declare module.exports: $Exports<'@jedwards1211/commitlint-config/commitlint.config'>
}
7 changes: 3 additions & 4 deletions flow-typed/npm/@jedwards1211/eslint-config-flow_vx.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

declare module '@jedwards1211/eslint-config-flow' {
declare module.exports: any;
declare module.exports: any
}

/**
Expand All @@ -23,11 +23,10 @@ declare module '@jedwards1211/eslint-config-flow' {
* needed.
*/


// Filename aliases
declare module '@jedwards1211/eslint-config-flow/index' {
declare module.exports: $Exports<'@jedwards1211/eslint-config-flow'>;
declare module.exports: $Exports<'@jedwards1211/eslint-config-flow'>
}
declare module '@jedwards1211/eslint-config-flow/index.js' {
declare module.exports: $Exports<'@jedwards1211/eslint-config-flow'>;
declare module.exports: $Exports<'@jedwards1211/eslint-config-flow'>
}
Loading

0 comments on commit 093219d

Please sign in to comment.