Commit 3ef45e70 authored by Sandro Lutz's avatar Sandro Lutz Committed by scmoritz
Browse files

Add build job for statutes

parent 397b8ffc
......@@ -6,3 +6,4 @@ npm-debug.log
DOCUMENTATION.html
DOCUMENTATION.md
src/models/config.js
src/content/amiv/html/statutes.html
......@@ -22,6 +22,8 @@ stylelint:
build_master:
stage: build
image: docker:latest
variables:
GIT_SUBMODULE_STRATEGY: normal
services:
- docker:dind
before_script:
......@@ -36,6 +38,8 @@ build_master:
build:
stage: build
image: docker:latest
variables:
GIT_SUBMODULE_STRATEGY: normal
services:
- docker:dind
script:
......
[submodule "amiv-statuten"]
path = amiv-statuten
url = ../amiv-statuten.git
......@@ -4,6 +4,11 @@
# First stage: Build project
FROM node as build
# Install pandoc
RUN wget -O pandoc-amd64.deb https://github.com/jgm/pandoc/releases/download/2.2.2.1/pandoc-2.2.2.1-1-amd64.deb
RUN dpkg -i pandoc-amd64.deb
RUN rm pandoc-amd64.deb
# Copy files and install dependencies
COPY ./ /
RUN npm install
......
......@@ -51,3 +51,8 @@ Needed extensions:
* [ESlint](https://github.com/eslint/eslint)
* [Prettier](https://github.com/prettier/prettier)
* [stylelint](https://stylelint.io)
Needed build tools:
* [npm](https://www.npmjs.com)
* [pandoc](https://pandoc.org)
Subproject commit 3d76273ce666c3944e62d503047be72a015ab870
......@@ -7,9 +7,10 @@
"test": "echo \"Error: no test specified\" && exit 1",
"docs": "doxdox 'src/**/*.js' --layout bootstrap --output DOCUMENTATION.html",
"docs-md": "doxdox 'src/**/*.js' --layout markdown --output DOCUMENTATION.md",
"start": "webpack -d --watch",
"build": "webpack -p --config webpack.config.prod.js",
"server": "webpack-dev-server --hot --inline",
"start": "npm run build-statutes && webpack -d --watch",
"build": "npm run build-statutes && webpack -p --config webpack.config.prod.js",
"build-statutes": "pandoc -o src/content/amiv/html/statutes.html amiv-statuten/amiv-statuten.tex",
"server": "npm run build-statutes && webpack-dev-server --hot --inline",
"lint": "npm run eslint && npm run stylelint",
"eslint": "eslint src/*.js src/**/*.js",
"stylelint": "stylelint 'src/**/*.less' --synthax less",
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment