diff --git a/.drone.yml b/.drone.yml index 7c2b9bb..bc9aa76 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,15 @@ name: default steps: + - name: build + image: + pull: always + commands: + - node -v + - npm i + - npm run build + + - name: deploy image: cupcakearmy/drone-deploy pull: always @@ -13,9 +22,9 @@ steps: host: srv-0.nicco.io user: root port: 1312 - target: /srv/web/blog/liquet - commands: - - git pull + target: /srv/web/blog + sources: + - ./liquet when: event: push branch: master \ No newline at end of file diff --git a/.gitignore b/.gitignore index f51f5e3..1ed973d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,13 @@ +# Editor .idea -data/ \ No newline at end of file +# Docker +data/ + +# Node +node_modules/ +pnpm-lock.yaml + +# Generated +.cache/ +liquet/dist/ \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..9b408f6 --- /dev/null +++ b/package.json @@ -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" + } +}