-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage-custom.json
More file actions
19 lines (19 loc) · 1.2 KB
/
Copy pathpackage-custom.json
File metadata and controls
19 lines (19 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"note": "The content below will be substituted into package.json, depending on language selected by the user when creating the app.",
"r": {
"scripts": {
"build": "concurrently -c auto \"tsc --noEmit\" \"esbuild srcts/main.tsx --bundle --outfile=r/www/main.js --format=esm --sourcemap --minify --alias:react=react\"",
"watch": "concurrently -c auto \"tsc --noEmit --watch --preserveWatchOutput\" \"esbuild srcts/main.tsx --bundle --outfile=r/www/main.js --format=esm --sourcemap --minify --alias:react=react --watch\"",
"shinyapp": "Rscript -e \"options(shiny.autoreload = TRUE); shiny::runApp('r/app.R', port=${PORT:-8000})\"",
"clean": "rm -rf r/www"
}
},
"py": {
"scripts": {
"build": "concurrently -c auto \"tsc --noEmit\" \"esbuild srcts/main.tsx --bundle --outfile=py/www/main.js --format=esm --sourcemap --minify --alias:react=react\"",
"watch": "concurrently -c auto \"tsc --noEmit --watch --preserveWatchOutput\" \"esbuild srcts/main.tsx --bundle --outfile=py/www/main.js --format=esm --sourcemap --minify --alias:react=react --watch\"",
"shinyapp": "cd py && shiny run app.py --reload --port ${PORT:-8000}",
"clean": "rm -rf py/www"
}
}
}