Migrate to PNPM support
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d99503250a
commit
28aabc0960
60
.drone.yml
60
.drone.yml
@ -3,45 +3,45 @@ name: default
|
|||||||
type: docker
|
type: docker
|
||||||
steps:
|
steps:
|
||||||
# ============ RESTORE CACHE =============
|
# ============ RESTORE CACHE =============
|
||||||
- name: restore node_modules cache
|
# - name: restore node_modules cache
|
||||||
image: appleboy/drone-sftp-cache
|
# image: appleboy/drone-sftp-cache
|
||||||
settings:
|
# settings:
|
||||||
server:
|
# server:
|
||||||
from_secret: cache_server
|
# from_secret: cache_server
|
||||||
port: 22
|
# port: 22
|
||||||
username:
|
# username:
|
||||||
from_secret: cache_server_user
|
# from_secret: cache_server_user
|
||||||
key:
|
# key:
|
||||||
from_secret: cache_server_key
|
# from_secret: cache_server_key
|
||||||
path: /var/cache/drone
|
# path: /var/cache/drone
|
||||||
restore: true
|
# restore: true
|
||||||
mount:
|
# mount:
|
||||||
- node_modules
|
# - node_modules
|
||||||
|
|
||||||
# ============ BUILD STEPS ===============
|
# ============ BUILD STEPS ===============
|
||||||
- name: build-prod
|
- name: build-prod
|
||||||
image: node:14
|
image: glmdev/node-pnpm:latest
|
||||||
commands:
|
commands:
|
||||||
- npm i
|
- pnpm i
|
||||||
- ./node_modules/.bin/ionic build --prod
|
- ./node_modules/.bin/ionic build --prod
|
||||||
- ./node_modules/.bin/ngsw-config ./www/ ./ngsw-config.json /i
|
- ./node_modules/.bin/ngsw-config ./www/ ./ngsw-config.json /i
|
||||||
- tar czf build.tar.gz www
|
- tar czf build.tar.gz www
|
||||||
|
|
||||||
# =============== REBULD CACHE ==============
|
# =============== REBULD CACHE ==============
|
||||||
- name: rebuild node_modules cache
|
# - name: rebuild node_modules cache
|
||||||
image: appleboy/drone-sftp-cache
|
# image: appleboy/drone-sftp-cache
|
||||||
settings:
|
# settings:
|
||||||
server:
|
# server:
|
||||||
from_secret: cache_server
|
# from_secret: cache_server
|
||||||
port: 22
|
# port: 22
|
||||||
username:
|
# username:
|
||||||
from_secret: cache_server_user
|
# from_secret: cache_server_user
|
||||||
key:
|
# key:
|
||||||
from_secret: cache_server_key
|
# from_secret: cache_server_key
|
||||||
path: /var/cache/drone
|
# path: /var/cache/drone
|
||||||
rebuild: true
|
# rebuild: true
|
||||||
mount:
|
# mount:
|
||||||
- node_modules
|
# - node_modules
|
||||||
|
|
||||||
# =============== RELEASE ===============
|
# =============== RELEASE ===============
|
||||||
- name: release
|
- name: release
|
||||||
|
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM node:14
|
||||||
|
|
||||||
|
RUN npm install -g pnpm
|
11217
pnpm-lock.yaml
Normal file
11217
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user