meta: use drone and npm
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kazhnuz 2022-03-26 17:09:16 +01:00
parent 94c5c03921
commit 87b602c351
5 changed files with 154 additions and 1340 deletions

33
.drone.yml Normal file
View file

@ -0,0 +1,33 @@
kind: pipeline
name: production
when:
event: [ push ]
branch: [ master ]
clone:
git:
image: plugins/git
pull: true
steps:
- name: build
image: node:latest
commands:
- npm install -g gulp
- npm i
- npm build
- name: deploy
image: drillster/drone-rsync
settings:
hosts:
from_secret: deploy_host
target: /var/www/univers.kobold.city
source: dist/*
user:
from_secret: deploy_user
key:
from_secret: deploy_key
when:
branch: master
delete: true

View file

@ -1,6 +0,0 @@
echo "STEP 1 - Generation des fichiers statics"
gulp
echo "STEP 2 - Remplacement dossier public par dossier temp"
rm -rf public
mv dist public

View file

@ -1 +0,0 @@
npm install gulp gulp-include

1433
package-lock.json generated

File diff suppressed because it is too large Load diff

21
package.json Normal file
View file

@ -0,0 +1,21 @@
{
"name": "univers",
"version": "1.0.0",
"description": "Le site d'univers de Kobold City",
"main": "gulpfile.js",
"dependencies": {
"gulp": "^4.0.2",
"gulp-include": "^2.4.1"
},
"devDependencies": {},
"scripts": {
"build": "gulp",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://git.kobold.cafe/jdr/univers"
},
"author": "",
"license": "ISC"
}