prebuild kaldırıldı build:production eklendi
This commit is contained in:
parent
b9b3dbc4bc
commit
09566cce3b
3 changed files with 5 additions and 4 deletions
|
|
@ -12,5 +12,5 @@ RUN npm i && \
|
||||||
npm install @rollup/rollup-linux-x64-musl --save-dev && \
|
npm install @rollup/rollup-linux-x64-musl --save-dev && \
|
||||||
npm rebuild rollup
|
npm rebuild rollup
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build -- --mode $ENV
|
RUN npm run build:production -- --mode $ENV
|
||||||
CMD ["npm", "run", "preview"]
|
CMD ["npm", "run", "preview"]
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
"prebuild": "node scripts/generate-version.js",
|
"build": "node scripts/generate-version.js && vite build",
|
||||||
"build": "vite build",
|
"build:production": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.json",
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.json",
|
||||||
"lint:fix": "npm run lint -- --fix",
|
"lint:fix": "npm run lint -- --fix",
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@ echo "> version.json oluşturuluyor..."
|
||||||
|
|
||||||
# En yeni tag en üstte olsun
|
# En yeni tag en üstte olsun
|
||||||
VERSIONS=$(git tag --sort=-creatordate)
|
VERSIONS=$(git tag --sort=-creatordate)
|
||||||
|
ROOT_COMMIT=$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
OUTPUT="{\"releases\":["
|
OUTPUT="{\"commit\":\"$ROOT_COMMIT\",\"releases\":["
|
||||||
|
|
||||||
FIRST=true
|
FIRST=true
|
||||||
for TAG in $VERSIONS; do
|
for TAG in $VERSIONS; do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue