new bulid chaing

This commit is contained in:
cupcakearmy 2019-09-27 16:04:24 +02:00
parent 3a14bd776d
commit c73f36990f
3 changed files with 38 additions and 4 deletions

View File

@ -3,6 +3,15 @@ name: default
steps: steps:
- name: build
image:
pull: always
commands:
- node -v
- npm i
- npm run build
- name: deploy - name: deploy
image: cupcakearmy/drone-deploy image: cupcakearmy/drone-deploy
pull: always pull: always
@ -13,9 +22,9 @@ steps:
host: srv-0.nicco.io host: srv-0.nicco.io
user: root user: root
port: 1312 port: 1312
target: /srv/web/blog/liquet target: /srv/web/blog
commands: sources:
- git pull - ./liquet
when: when:
event: push event: push
branch: master branch: master

12
.gitignore vendored
View File

@ -1,3 +1,13 @@
# Editor
.idea .idea
data/ # Docker
data/
# Node
node_modules/
pnpm-lock.yaml
# Generated
.cache/
liquet/dist/

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"private": true,
"scripts": {
"dev": "parcel watch --no-hmr --no-source-maps -d liquet/dist ./src/js/index.js ./src/styles/index.styl",
"build": "parcel build --no-source-maps -d liquet/dist ./src/js/index.js ./src/styles/index.styl"
},
"dependencies": {
"jquery": "^3.4.1",
"swup": "^2.0.7"
},
"devDependencies": {
"parcel-bundler": "^1.12.3",
"stylus": "^0.54.7"
}
}