Browse Source

Add editor to wiki

master
Peter Stuifzand 2 years ago
parent
commit
9186115066
  1. 35
      .drone.yml
  2. 2
      .pre-commit-config.yaml
  3. 1
      Dockerfile
  4. 5
      editor/package.json

35
.drone.yml

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

2
.pre-commit-config.yaml

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

1
Dockerfile

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

5
editor/package.json

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