-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
package.json
99 lines (99 loc) · 4 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "nano-jsx",
"version": "0.1.0",
"description": "SSR first, lightweight 1kB JSX library.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"type": "commonjs",
"exports": {
".": "./lib/index.js",
"./jsx-runtime": "./jsx-runtime/index.js",
"./lib/jsx-runtime": "./lib/jsx-runtime/index.js",
"./esm/jsx-runtime": "./esm/jsx-runtime/index.js",
"./*": "./*"
},
"scripts": {
"start": "npm run dev",
"version": "extract version src/version.ts && prettier --write src/version.ts",
"format": "prettier --write src",
"format:check": "prettier --check src",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint --fix src --ext .ts,.tsx",
"deno": "deno run --allow-net -c tsconfig.deno.json deno.dev.tsx",
"denoify": "rimraf deno_lib && denoify && rimraf deno_lib/bundles deno_lib/dev",
"tsc": "npm run version && tsc --project tsconfig.json && tsc --project tsconfig.esm.json && node ./scripts/packageType.mjs",
"build": "npm run tsc",
"bundle": "webpack --config webpack/webpack.bundle.prod.js",
"dev": "npm run build && npm-run-all --parallel dev:*",
"dev:tsc": "tsc --project tsconfig.json --watch",
"dev:serve": "five-server --open=dev",
"dev:bundle": " webpack --config webpack/webpack.bundle.dev.js --watch",
"dev:script": "webpack --config webpack/webpack.dev.js --watch",
"ssr": "tsc --project tsconfig.json && npm-run-all --parallel ssr:*",
"ssr:tsc": "tsc --project tsconfig.json --watch",
"ssr:nodemon": "nodemon lib/dev/devSSR.js",
"clean": "rimraf lib && rimraf esm",
"clean:test": "rimraf \"test/**/*.js\"",
"publish": "publish",
"preReleaseHook": "prepareRelease",
"prepareRelease": "npm run clean && npm i && npm run build && npm run bundle && npm run denoify && npm run test && npm run test:deno && npm run test:browser",
"test": "npm run test:nodejs && npm run test:jsx-runtime:client && npm run test:jsx-runtime:server",
"test:nodejs": "npm run clean:test && tsc --project tsconfig.test.json && node ./test/scripts.mjs add-jest-environment && jest \"test/.+\\.test.js$\" && npm run clean:test",
"test:jsx-runtime:client": "tsc --project tsconfig.test.jsx-runtime.json && jest --coverage=false \"test.jsx-runtime/.+\\.test.js$\"",
"test:jsx-runtime:server": "tsc --project tsconfig.test.jsx-runtime.json && node test.jsx-runtime/nodejs/server.js",
"test:browser": "rimraf .nyc_output coverage && webpack -c webpack/webpack.bundle.instrumented.js && tsc -p scripts/browserTest/tsconfig.json && node scripts/browserTest/index.mjs --coverage && npx nyc report --exclude \"src/{bundles,dev,htm,ui}/**\" --exclude \"src/mod.ts\" --reporter=text --reporter=html --reporter=lcov",
"test:deno": "deno test -c tsconfig.deno.json test/deno"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nanojsx/nano.git"
},
"keywords": [
"mini",
"micro",
"nano",
"tiny",
"jsx",
"react",
"preact",
"partial",
"hydration",
"ssr"
],
"author": "Yannick Deubel (https://github.com/yandeu)",
"license": "MIT",
"bugs": {
"url": "https://github.com/nanojsx/nano/issues"
},
"homepage": "http://nanojsx.io/",
"devDependencies": {
"@types/jest": "^29.0.3",
"@types/node": "^20.11.25",
"@yandeu/eslint-config": "^0.0.4",
"@yandeu/extract": "^0.0.3",
"@yandeu/prettier-config": "^0.0.4",
"coverage-istanbul-loader": "^3.0.5",
"denoify": "^1.2.0",
"eslint": "^8.2.0",
"five-server": "^0.3.2",
"jest": "^29.0.3",
"jest-environment-jsdom": "^29.0.3",
"jsdom": "^24.0.0",
"nodemon": "^3.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"publish-cli": "^1.7.0",
"puppeteer": "^22.4.1",
"rimraf": "^3.0.2",
"source-map-support": "^0.5.21",
"tiny-http2-server": "^0.0.2",
"ts-loader": "^9.2.3",
"typescript": "^5.1.6",
"webpack": "^5.12.3",
"webpack-cli": "^4.3.1"
},
"engines": {
"node": ">=16"
},
"funding": "https://github.com/sponsors/yandeu"
}