-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
60 lines (60 loc) · 2.65 KB
/
Copy pathpackage.json
File metadata and controls
60 lines (60 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
{
"name": "goscript",
"version": "1.0.0",
"description": "Run Go in the browser using WebAssembly. No server, no installation, no setup.",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"default": "./dist/index.mjs"
},
"./browser": "./dist/goscript.bundle.js",
"./wasm_exec.js": "./dist/wasm_exec.js",
"./package.json": "./package.json"
},
"files": [
"dist",
"reference",
"README.md"
],
"directories": {
"doc": "docs"
},
"scripts": {
"build": "node ./tools/build.js",
"fetch:pack": "node -e \"require('child_process').execSync(process.platform === 'win32' ? 'powershell -ExecutionPolicy Bypass -File ./tools/download-pack.ps1' : 'bash ./tools/download-pack.sh', {stdio: 'inherit'})\"",
"build:toolchain": "node -e \"require('child_process').execSync(process.platform === 'win32' ? 'powershell -ExecutionPolicy Bypass -File ./tools/pack-toolchain.ps1' : 'bash ./tools/pack-toolchain.sh', {stdio: 'inherit'})\"",
"build:stdlib": "node -e \"require('child_process').execSync(process.platform === 'win32' ? 'powershell -ExecutionPolicy Bypass -File ./tools/pack-stdlib.ps1' : 'bash ./tools/pack-stdlib.sh', {stdio: 'inherit'})\"",
"build:compiler": "node -e \"require('child_process').execSync(process.platform === 'win32' ? 'powershell -ExecutionPolicy Bypass -File ./tools/build-compiler.ps1' : 'bash ./tools/build-compiler.sh', {stdio: 'inherit'})\"",
"css": "node ./node_modules/@tailwindcss/cli/dist/index.mjs --config ./config/tailwind.config.js -i ./docs/styles/input.css -o ./docs/styles/output.css",
"css:watch": "node ./node_modules/@tailwindcss/cli/dist/index.mjs --config ./config/tailwind.config.js -i ./docs/styles/input.css -o ./docs/styles/output.css --watch",
"serve": "npx serve -l 3000 .",
"dev": "npm run build && npm run css && npm run serve",
"test": "npx playwright test --config ./config/playwright.config.js",
"test:ui": "npx playwright test --config ./config/playwright.config.js --ui",
"test:headed": "npx playwright test --config ./config/playwright.config.js --headed",
"test:debug": "npx playwright test --config ./config/playwright.config.js --debug"
},
"keywords": [
"go",
"golang",
"wasm",
"webassembly",
"compiler",
"browser"
],
"author": "Earl Cameron",
"license": "MIT",
"type": "commonjs",
"devDependencies": {
"@playwright/test": "^1.57.0",
"@tailwindcss/cli": "^4.1.17",
"autoprefixer": "^10.4.22",
"postcss": "^8.5.6",
"serve": "^14.2.5",
"tailwindcss": "^4.1.17",
"terser": "^5.44.1"
}
}