mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-25 12:01:07 -05:00
75 lines
3.0 KiB
JSON
75 lines
3.0 KiB
JSON
{
|
|
"name": "@pyscript/core",
|
|
"version": "0.0.11",
|
|
"description": "PyScript Next core",
|
|
"main": "./cjs/index.js",
|
|
"types": "./types/index.d.ts",
|
|
"scripts": {
|
|
"server": "npx static-handler --cors --coep --coop --corp .",
|
|
"build": "npm run rollup:xworker && npm run rollup:core && npm run rollup:pyscript && eslint esm/ && npm run ts && npm run cjs",
|
|
"cjs": "ascjs --no-default esm cjs",
|
|
"dev": "node dev.cjs",
|
|
"rollup:core": "rollup --config rollup/core.config.js",
|
|
"rollup:pyscript": "rollup --config rollup/pyscript.config.js",
|
|
"rollup:xworker": "rollup --config rollup/xworker.config.js",
|
|
"test": "c8 --100 node --experimental-loader @node-loader/import-maps test/index.js && npm run test:integration",
|
|
"test:html": "npm run test && c8 report -r html",
|
|
"test:integration//": "Don't bother with spinning servers. Trap the tests EXIT_CODE. Kill the running server, if any. Return the EXIT_CODE to eventually throw an error.",
|
|
"test:integration": "static-handler --cors --coep --coop --corp . 2>/dev/null & SH_PID=$!; EXIT_CODE=0; playwright test --fully-parallel test/ || EXIT_CODE=$?; kill $SH_PID 2>/dev/null; exit $EXIT_CODE",
|
|
"coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
|
|
"size": "npm run size:module && npm run size:worker",
|
|
"size:module": "echo module is $(cat core.js | brotli | wc -c) bytes once compressed",
|
|
"size:worker": "echo worker is $(cat esm/worker/xworker.js | brotli | wc -c) bytes once compressed",
|
|
"ts": "tsc -p ."
|
|
},
|
|
"keywords": [
|
|
"py-script",
|
|
"pyscript",
|
|
"next"
|
|
],
|
|
"author": "Anaconda Inc.",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@node-loader/import-maps": "^1.1.0",
|
|
"@playwright/test": "^1.35.1",
|
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
"@rollup/plugin-terser": "^0.4.3",
|
|
"ascjs": "^5.0.1",
|
|
"c8": "^8.0.0",
|
|
"chokidar": "^3.5.3",
|
|
"eslint": "^8.43.0",
|
|
"linkedom": "^0.14.26",
|
|
"rollup": "^3.25.3",
|
|
"static-handler": "^0.4.2",
|
|
"typescript": "^5.1.3"
|
|
},
|
|
"module": "./esm/index.js",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"types": "./types/esm/index.d.ts",
|
|
"import": "./esm/index.js",
|
|
"default": "./cjs/index.js"
|
|
},
|
|
"./py": {
|
|
"import": "./pyscript.js",
|
|
"default": "./cjs/custom/pyscript.js"
|
|
},
|
|
"./py-script": {
|
|
"import": "./esm/custom/pyscript.js",
|
|
"default": "./cjs/custom/pyscript.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"unpkg": "core.js",
|
|
"dependencies": {
|
|
"@ungap/structured-clone": "^1.2.0",
|
|
"@ungap/with-resolvers": "^0.1.0",
|
|
"basic-devtools": "^0.1.6",
|
|
"coincident": "^0.11.1"
|
|
},
|
|
"worker": {
|
|
"blob": "sha256-YJ2S61l39eRltU0ldf3Q7CfCASBa8FrQLLsfXUSzBHc="
|
|
}
|
|
}
|