Migrate to PNPM support
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Garrett Mills 2021-02-18 11:15:26 -06:00
parent d99503250a
commit 28aabc0960
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
4 changed files with 11251 additions and 30 deletions

View File

@ -3,45 +3,45 @@ name: default
type: docker
steps:
# ============ RESTORE CACHE =============
- name: restore node_modules cache
image: appleboy/drone-sftp-cache
settings:
server:
from_secret: cache_server
port: 22
username:
from_secret: cache_server_user
key:
from_secret: cache_server_key
path: /var/cache/drone
restore: true
mount:
- node_modules
# - name: restore node_modules cache
# image: appleboy/drone-sftp-cache
# settings:
# server:
# from_secret: cache_server
# port: 22
# username:
# from_secret: cache_server_user
# key:
# from_secret: cache_server_key
# path: /var/cache/drone
# restore: true
# mount:
# - node_modules
# ============ BUILD STEPS ===============
- name: build-prod
image: node:14
image: glmdev/node-pnpm:latest
commands:
- npm i
- pnpm i
- ./node_modules/.bin/ionic build --prod
- ./node_modules/.bin/ngsw-config ./www/ ./ngsw-config.json /i
- tar czf build.tar.gz www
# =============== REBULD CACHE ==============
- name: rebuild node_modules cache
image: appleboy/drone-sftp-cache
settings:
server:
from_secret: cache_server
port: 22
username:
from_secret: cache_server_user
key:
from_secret: cache_server_key
path: /var/cache/drone
rebuild: true
mount:
- node_modules
# - name: rebuild node_modules cache
# image: appleboy/drone-sftp-cache
# settings:
# server:
# from_secret: cache_server
# port: 22
# username:
# from_secret: cache_server_user
# key:
# from_secret: cache_server_key
# path: /var/cache/drone
# rebuild: true
# mount:
# - node_modules
# =============== RELEASE ===============
- name: release

1
.npmrc Normal file
View File

@ -0,0 +1 @@
shamefully-hoist=true

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM node:14
RUN npm install -g pnpm

11217
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff