forked from gristlabs/grist-widget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
51 lines (51 loc) · 2.29 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
{
"name": "@gristlabs/grist-widget",
"version": "0.0.5",
"description": "A repository of grist custom widgets that have no back-end requirements.",
"scripts": {
"build": "tsc --build && node ./buildtools/publish.js manifest.json",
"serve": "http-server -c-1 --port=8585 -s",
"build:dev": "node ./buildtools/publish.js manifest.json http://localhost:8585",
"serve:dev": "live-server --port=8585 --no-browser -q --middleware=$(pwd)/buildtools/rewriteUrl.js",
"watch": "nodemon --ignore manifest.json -e js,json --exec 'npm run build:dev'",
"dev": "echo 'Starting local server and watching for changes.\nStart Grist with an environmental variable GRIST_WIDGET_LIST_URL=http://localhost:8585/manifest.json' && npm run watch 1> /dev/null & npm run serve:dev 1> /dev/null && fg",
"test": "docker image inspect gristlabs/grist --format 'gristlabs/grist image present' && NODE_PATH=_build SELENIUM_BROWSER=chrome mocha -g \"${GREP_TESTS}\" _build/test/*.js",
"test:ci": "MOCHA_WEBDRIVER_HEADLESS=1 npm run test",
"pretest": "docker pull gristlabs/grist && tsc --build && node ./buildtools/publish.js manifest.json http://localhost:9998",
"prepack": "node ./buildtools/bundle.js --name grist-bundled --unlisted",
"grist": "docker run --add-host host.docker.internal:host-gateway --rm --env PORT=8484 --env GRIST_WIDGET_LIST_URL=http://host.docker.internal:8585/manifest.json -p 8484:8484 -v $PWD/_build/persist:/persist -it gristlabs/grist",
"grist:dev": "npm run dev & npm run grist",
"grist:serve": "yarn && npm run build:dev && npm run serve & npm run grist"
},
"devDependencies": {
"@types/chai": "^4.3.5",
"@types/lodash.escaperegexp": "^4.1.9",
"@types/mocha": "^10.0.1",
"@types/node": "18.11.9",
"@types/node-fetch": "^2.6.4",
"@types/selenium-webdriver": "^4.1.15",
"commander": "^11.1.0",
"live-server": "^1.2.1",
"lodash": "^4.17.21",
"lodash.escaperegexp": "^4.1.2",
"mocha": "^10.2.0",
"mocha-webdriver": "0.3.1",
"node-fetch": "^2",
"nodemon": "^2.0.15",
"ts-node": "^10.9.1",
"typescript": "^5.1.3"
},
"dependencies": {
"http-server": "^14.1.1"
},
"mocha": {
"require": [
"_build/test/init-mocha-webdriver"
]
},
"files": [
"dist/plugins",
"LICENSE",
"README.md"
]
}