-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
19 lines (19 loc) · 1.2 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"name": "react-esbuild-app",
"version": "0.0.0-0",
"private": true,
"keywords": [
"template-react-esbuild"
],
"scripts": {
"build": "esbuild --bundle --define:IS_DEVELOPMENT=false --entry-names=[ext]/[name] --jsx=automatic --minify --outdir=./public/static/ --sourcemap app=./src/app/index.tsx",
"bump": "npm run bump:prod && npm run bump:dev",
"bump:dev": "if [ `cat package.json | jq -r '.devDependencies | length'` -ne 0 ]; then npm install $BUMP_DEV_OPTIONS $(cat package.json | jq -r '(.pinDependencies // {}) as $p | ((.devDependencies // {}) | keys) | map(. + \"@\" + ($p[.] // [\"latest\"])[0]) | .[]'); fi",
"bump:prod": "if [ `cat package.json | jq -r '.dependencies | length'` -ne 0 ]; then npm install $BUMP_PROD_OPTIONS $(cat package.json | jq -r '(.pinDependencies // {}) as $p | ((.dependencies // {}) | keys) | map(. + \"@\" + ($p[.] // [\"latest\"])[0]) | .[]'); fi",
"eslint": "npm run precommit",
"precommit": "npm run precommit:eslint && npm run precommit:typescript",
"precommit:eslint": "eslint ./src/",
"precommit:typescript": "tsc --project ./src/tsconfig.json",
"start": "npm run build -- --define:IS_DEVELOPMENT=true --servedir=./public --watch"
}
}