Add editor to wiki

single-block-api
Peter Stuifzand 5 years ago
parent 8189a68fa9
commit 9186115066

@ -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

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

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

@ -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"
}
}

Loading…
Cancel
Save