-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
63 lines (63 loc) · 2.53 KB
/
package.json
File metadata and controls
63 lines (63 loc) · 2.53 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
{
"name": "python-template-cppjswasm",
"version": "0.1.0",
"description": "A C++-JavaScript-Python project template",
"repository": "git@github.com:python-project-templates/python-template-cppjswasm.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/**/*",
"index.d.ts"
],
"types": "./dist/esm/index.d.ts",
"publishConfig": {
"access": "public"
},
"scripts": {
"build:cpp": "node -e \"require('fs').mkdirSync('dist/pkg',{recursive:true})\" && em++ -O2 -std=c++17 -s WASM=1 -s MODULARIZE=1 -s EXPORT_ES6=1 -s SINGLE_FILE=1 -s ALLOW_MEMORY_GROWTH=1 -s ENVIRONMENT=web,worker --bind -I ../cpp ../cpp/python-template-cppjswasm/example.cpp src/cpp/bindings.cpp -o dist/pkg/python_template_cppjswasm.js",
"build:debug": "node build.mjs --debug",
"build:prod": "node build.mjs",
"build": "npm-run-all build:cpp build:prod",
"clean": "rm -rf dist lib playwright-report ../python_template_cppjswasm/extension",
"dev": "npm-run-all -p start watch",
"lint:js": "prettier --check \"src/**/*.{js,ts,jsx,tsx,less,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"lint:cpp": "clang-format --dry-run -Werror -style=file:../.clang-format src/cpp/*.cpp",
"lint": "npm-run-all lint:*",
"fix:js": "prettier --write \"src/**/*.{js,ts,jsx,tsx,less,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"fix:cpp": "clang-format -i -style=file:../.clang-format src/cpp/*.cpp",
"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": "npm-run-all test:*",
"watch": "nodemon --watch src -e ts,less,html,cpp,hpp --exec \"pnpm build:debug\""
},
"dependencies": {},
"devDependencies": {
"@finos/perspective-esbuild-plugin": "^3.2.1",
"@playwright/test": "^1.56.1",
"@prospective.co/procss": "^0.1.17",
"cpy": "^12.1.0",
"esbuild": "^0.27.2",
"esbuild-plugin-less": "^1.3.35",
"http-server": "^14.1.1",
"nodemon": "^3.1.10",
"npm-run-all": "^4.1.5",
"prettier": "^3.8.1",
"typescript": "^5.9.3"
}
}