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 rebuild rollup
|
||||
COPY . .
|
||||
RUN npm run build -- --mode $ENV
|
||||
RUN npm run build:production -- --mode $ENV
|
||||
CMD ["npm", "run", "preview"]
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
"prebuild": "node scripts/generate-version.js",
|
||||
"build": "vite build",
|
||||
"build": "node scripts/generate-version.js && vite build",
|
||||
"build:production": "vite build",
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.json",
|
||||
"lint:fix": "npm run lint -- --fix",
|
||||
|
|
|
|||
|
|
@ -5,8 +5,9 @@ echo "> version.json oluşturuluyor..."
|
|||
|
||||
# En yeni tag en üstte olsun
|
||||
VERSIONS=$(git tag --sort=-creatordate)
|
||||
ROOT_COMMIT=$(git rev-parse --short HEAD)
|
||||
|
||||
OUTPUT="{\"releases\":["
|
||||
OUTPUT="{\"commit\":\"$ROOT_COMMIT\",\"releases\":["
|
||||
|
||||
FIRST=true
|
||||
for TAG in $VERSIONS; do
|
||||
|
|
|
|||
Loading…
Reference in a new issue