Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
66 lines (66 loc) · 2.65 KB
/
Copy pathpackage.json
File metadata and controls
66 lines (66 loc) · 2.65 KB
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
{
"name": "python-template-rust",
"version": "0.1.0",
"description": "A Rust-Python project template",
"repository": "git@github.com:python-project-templates/python-template-rust.git",
"author": "Python Project Template Authors <3105306+timkpaine@users.noreply.github.com>",
"license": "Apache-2.0",
"private": true,
"type": "module",
"unpkg": "dist/cdn/index.js",
"jsdelivr": "dist/cdn/index.js",
"exports": {
".": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"./dist/*": "./dist/*",
"./package.json": "./package.json"
},
"files": [
"dist/**/*"
],
"types": "./dist/esm/index.d.ts",
"publishConfig": {
"access": "public"
},
"scripts": {
"setup": "cargo install -f wasm-bindgen-cli --version 0.2.127 --locked",
"build:clean": "node -e \"const fs=require('fs'); fs.rmSync('dist',{recursive:true,force:true}); fs.rmSync('../python_template_rust/extension',{recursive:true,force:true})\"",
"build:debug": "node build.mjs --debug",
"build:rust": "cargo build --release --all-features --target wasm32-unknown-unknown --target-dir ../target",
"build:wasm-bindgen": "wasm-bindgen ../target/wasm32-unknown-unknown/release/python_template_rust.wasm --out-dir ./dist/pkg --target web",
"build:prod": "node build.mjs",
"build:types": "tsc",
"build": "npm-run-all build:clean build:rust build:wasm-bindgen build:prod build:types",
"clean": "rm -rf dist lib playwright-report ../python_template_rust/extension",
"dev": "npm-run-all -p start watch",
"lint:js": "oxlint . && oxfmt --check \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"lint:rust": "cargo clippy --all-features && cargo fmt --all -- --check",
"lint": "npm-run-all lint:*",
"fix:js": "oxlint --fix . && oxfmt --write \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"fix:rust": "cargo fmt --all",
"fix": "npm-run-all fix:*",
"preinstall": "npx only-allow pnpm",
"prepack": "pnpm run build",
"start": "http-server -p 3000 -o examples/",
"start:tests": "http-server -p 3000 ",
"test:js": "playwright test",
"test:rust": "cargo test -- --show-output",
"test": "npm-run-all test:rust test:js",
"watch": "nodemon --watch src -e ts,css,html --exec \"pnpm build:debug\""
},
"dependencies": {},
"devDependencies": {
"@playwright/test": "^1.62.0",
"cpy": "^13.2.2",
"esbuild": "^0.28.2",
"lightningcss": "^1.33.0",
"http-server": "^14.1.1",
"nodemon": "^3.1.14",
"npm-run-all": "^4.1.5",
"oxfmt": "^0.65.0",
"oxlint": "^1.80.0",
"typescript": "^7.0.2"
}
}