Update build commands

build:dev now works
This commit is contained in:
omuretsu 2023-01-30 19:45:24 -05:00
parent d5707931c6
commit e8e107254d
2 changed files with 3 additions and 3 deletions

@ -105,8 +105,8 @@
"format:report-diff": "bash -c 'if [[ $(git diff --name-only --diff-filter=ACMRTUXB origin/dev | grep -E \"(.js$|.jsx$|.ts$|.tsx$)\" | wc -c) -ne 0 ]]; then prettier -c $(git diff --name-only --diff-filter=ACMRTUXB origin/dev | grep -E \"(.js$|.jsx$|.ts$|.tsx$)\" | xargs); fi'", "format:report-diff": "bash -c 'if [[ $(git diff --name-only --diff-filter=ACMRTUXB origin/dev | grep -E \"(.js$|.jsx$|.ts$|.tsx$)\" | wc -c) -ne 0 ]]; then prettier -c $(git diff --name-only --diff-filter=ACMRTUXB origin/dev | grep -E \"(.js$|.jsx$|.ts$|.tsx$)\" | xargs); fi'",
"start": "http-server -p 8000", "start": "http-server -p 8000",
"start:dev": "webpack serve --progress --env devServer --mode development", "start:dev": "webpack serve --progress --env devServer --mode development",
"build": "bash ./tools/build.sh", "build": "bash ./tools/build.sh production",
"build:dev": "webpack --mode development", "build:dev": "bash ./tools/build.sh development",
"lint": "eslint --fix --ext js,jsx,ts,tsx --max-warnings 0 src", "lint": "eslint --fix --ext js,jsx,ts,tsx --max-warnings 0 src",
"lint:report": "eslint --ext js,jsx,ts,tsx --max-warnings 0 src", "lint:report": "eslint --ext js,jsx,ts,tsx --max-warnings 0 src",
"lint:report-diff": "eslint --max-warnings 0 $(git diff --name-only --diff-filter=ACMRTUXB origin/dev | grep -E \"(.js$|.jsx$|.ts$|.tsx$)\" | xargs)", "lint:report-diff": "eslint --max-warnings 0 $(git diff --name-only --diff-filter=ACMRTUXB origin/dev | grep -E \"(.js$|.jsx$|.ts$|.tsx$)\" | xargs)",

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# builds the game in the root folder # builds the game in the root folder
webpack --mode production webpack --mode $1
# Clear out any files remaining from old builds and recreate folder # Clear out any files remaining from old builds and recreate folder
rm -rf .app rm -rf .app