Add editor to wiki

This commit is contained in:
Peter Stuifzand 2019-08-25 12:43:44 +02:00
parent 8189a68fa9
commit 9186115066
4 changed files with 40 additions and 3 deletions

View File

@ -16,6 +16,36 @@ steps:
- go build ./...
- go test ./...
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
file: node-cache.tar
mount:
- ./editor/node_modules
- name: build-node
image: node
group: build
commands:
- cd editor
- npm install
- npm run docker
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
file: node-cache.tar
mount:
- ./editor/node_modules
- name: publish
image: plugins/docker
settings:
@ -45,3 +75,8 @@ steps:
secrets:
- source: result_webhook
target: plugin_urls
volumes:
- name: cache
host:
path: /tmp

View File

@ -17,5 +17,5 @@ repos:
- id: drone-lint
name: Drone linting
language: system
entry: drone lint
entry: drone lint --trusted
files: .drone.yml

View File

@ -5,4 +5,5 @@ EXPOSE 80
WORKDIR /app
ADD ./wiki /app
ADD ./templates /app/templates
ADD ./editor/dist /app/public
ENTRYPOINT ["/app/wiki"]

View File

@ -25,8 +25,9 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "webpack --watch",
"watch": "webpack --watch --hide-modules",
"start": "webpack-dev-server --open --hot",
"build": "webpack"
"build": "webpack --progress --hide-modules",
"docker": "webpack --color=false --hide-modules"
}
}