-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move CJS and ESM files to root of package
- Loading branch information
1 parent
a68193f
commit 250d569
Showing
31 changed files
with
19,040 additions
and
26,916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
version: 2 | ||
# created by @jcoreio/toolchain-circle | ||
|
||
version: 2.1 | ||
jobs: | ||
build: | ||
branches: | ||
ignore: | ||
- gh-pages | ||
docker: | ||
- image: cimg/node:16.14.0 | ||
- image: cimg/node:20.3.0 | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Setup NPM Token | ||
command: | | ||
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc | ||
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc | ||
echo "strict-peer-dependencies=false" >> ~/.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 | ||
- run: | ||
name: Install pnpm | ||
command: sudo npm install --global pnpm | ||
name: Corepack enable | ||
command: sudo corepack enable | ||
- run: | ||
name: Install Dependencies | ||
command: pnpm install --frozen-lockfile | ||
- run: | ||
name: build | ||
command: pnpm prepublishOnly | ||
- run: | ||
name: upload test coverage | ||
command: pnpm codecov | ||
name: Prepublish | ||
command: | | ||
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc prepublish | ||
- run: | ||
name: release | ||
command: pnpm semantic-release | ||
name: Release | ||
command: | | ||
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc release | ||
workflows: | ||
build: | ||
jobs: | ||
- build: | ||
context: | ||
- npm-release | ||
- github-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-env node, es2018 */ | ||
module.exports = { | ||
extends: [require.resolve('@jcoreio/toolchain/eslint.config.cjs')], | ||
env: { | ||
'shared-node-browser': true, | ||
es2017: true, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
/coverage | ||
/.nyc_output | ||
/node_modules | ||
/lib | ||
/es | ||
.eslintcache | ||
*.js | ||
*.flow | ||
*.ts | ||
!/scripts/**/*.ts | ||
!/src/**/*.ts | ||
!/src/**/*.tsx | ||
!/src/**/*.flow | ||
!/test/**/*.js | ||
!/test/**/*.ts | ||
!/test/**/*.tsx | ||
!/demo/**/*.js | ||
!/.babelrc.js | ||
/dist | ||
/demo-dist | ||
.idea | ||
.nyc_output | ||
node_modules | ||
/coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "test:debug <file>", | ||
"port": 9229, | ||
"request": "attach", | ||
"skipFiles": ["<node_internals>/**"], | ||
"type": "node", | ||
"preLaunchTask": "test:debug <file>" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "shell", | ||
"options": { | ||
"shell": { | ||
"executable": "bash", | ||
"args": ["-c", "-l"] | ||
} | ||
}, | ||
"command": "pnpm", | ||
"isBackground": false, | ||
"group": "test", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"clear": true | ||
}, | ||
"label": "test <file>", | ||
"args": ["tc", "test", "${file}"] | ||
}, | ||
{ | ||
"type": "shell", | ||
"options": { | ||
"shell": { | ||
"executable": "bash", | ||
"args": ["-c", "-l"] | ||
} | ||
}, | ||
"command": "pnpm", | ||
"isBackground": false, | ||
"group": "test", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"clear": true | ||
}, | ||
"label": "test:watch <file>", | ||
"args": ["tc", "test", "--watch", "${file}"] | ||
}, | ||
{ | ||
"type": "shell", | ||
"options": { | ||
"shell": { | ||
"executable": "bash", | ||
"args": ["-c", "-l"] | ||
} | ||
}, | ||
"command": "pnpm", | ||
"isBackground": false, | ||
"group": "test", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"clear": true | ||
}, | ||
"label": "test:debug <file>", | ||
"args": ["tc", "test", "-n", "inspect-brk", "${file}"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
<title>material-ui-popup-state</title> | ||
<style type="text/css"> | ||
body { | ||
background-color: #fafafa; | ||
} | ||
.loading { | ||
position: absolute; | ||
text-align: center; | ||
width: 100%; | ||
top: 10%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="root"><h1 class="loading">Loading...</h1></div> | ||
<script src="bundle.js"></script> | ||
</body> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" | ||
/> | ||
<title>material-ui-popup-state</title> | ||
<style type="text/css"> | ||
body { | ||
background-color: #fafafa; | ||
} | ||
.loading { | ||
position: absolute; | ||
text-align: center; | ||
width: 100%; | ||
top: 10%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="root"><h1 class="loading">Loading...</h1></div> | ||
<script src="bundle.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// flow-typed signature: 70ae65c95b3420e3469c9c30171c1835 | ||
// flow-typed version: c6154227d1/@babel/polyfill_v7.x.x/flow_>=v0.104.x | ||
|
||
declare module '@babel/polyfill' {} | ||
declare module '@babel/polyfill' { | ||
} |
Oops, something went wrong.