Skip to content

Commit

Permalink
Split up funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Oct 9, 2024
1 parent eafe5a3 commit 93eae3b
Show file tree
Hide file tree
Showing 3 changed files with 384 additions and 282 deletions.
9 changes: 4 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,16 @@
},
"scripts": {
"prebench": "npm run build",
"bench": "BABEL_ENV=test node -r @babel/register benchmarks index.js",
"bench": "cross-env BABEL_ENV=test node -r @babel/register benchmarks index.js",
"bench:v8": "BABEL_ENV=test microbundle benchmarks/index.js -f modern --alias benchmarkjs-pretty=benchmarks/lib/benchmark-lite.js --external none --target node --no-compress --no-sourcemap --raw -o benchmarks/.v8.mjs && v8 --module benchmarks/.v8.modern.js",
"build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s transpile:stream && npm run -s transpile:stream-node && npm run -s copy-typescript-definition",
"postbuild": "node ./config/node-13-exports.js && node ./config/node-commonjs.js && node ./config/node-verify-exports.js && check-export-map",
"transpile": "microbundle src/index.js -f es,cjs,umd",
"transpile:stream": "microbundle src/stream.js -o dist/stream/index.js -f es,cjs,umd",
"transpile:stream-node": "microbundle src/stream-node.js -o dist/stream/node/index.js -f es,cjs,umd --target node",
"transpile:jsx": "microbundle src/jsx.js -o dist/jsx/index.js -f es,cjs,umd && microbundle dist/jsx/index.js -o dist/jsx/index.js -f cjs",
"copy-typescript-definition": "copyfiles -f src/*.d.ts dist",
"test": "eslint src test && tsc && npm run test:mocha && npm run test:mocha:compat && npm run test:mocha:debug && npm run bench",
"test:mocha": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js test/*.test.jsx",
"test:mocha": "cross-env BABEL_ENV=test mocha -r @babel/register -r test/setup.js test/*.test.jsx",
"test:mocha:compat": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js 'test/compat/*.test.js' 'test/compat/*.test.jsx'",
"test:mocha:debug": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js 'test/debug/*.test.jsx'",
"format": "prettier src/**/*.{d.ts,js} test/**/*.js --write",
Expand Down Expand Up @@ -133,7 +132,7 @@
"@babel/register": "^7.12.10",
"@changesets/changelog-github": "^0.4.1",
"@changesets/cli": "^2.18.0",
"baseline-rts": "npm:preact-render-to-string@latest",
"baseline-rts": "npm:preact-render-to-string@6.5.11",
"benchmarkjs-pretty": "^2.0.1",
"chai": "^4.2.0",
"check-export-map": "^1.3.1",
Expand Down
Loading

0 comments on commit 93eae3b

Please sign in to comment.