Skip to content
Snippets Groups Projects
Commit 1b6d3ce6 authored by Lars Bilke's avatar Lars Bilke Committed by Lars Bilke
Browse files

[web] Introduced node scripts build, import, convert.

parent a147dd7a
No related branches found
No related tags found
No related merge requests found
......@@ -2,4 +2,4 @@
[build]
base = "web"
publish = "web/public"
command = "(cd import; python import.py); gulp build; hugo"
command = "npm run import && npm run build:release"
## Getting started
- Download [Hugo](https://gohugo.io/#action) and put it in your `PATH`
- Install gulp-cli globally with `npm install --global gulp-cli`, *OPTIONAL* for SCSS and Javascript
- Install Node packages with `npm install`, *OPTIONAL* for SCSS and Javascript
- Install Python packages with `pip install -r requirements.txt`, *OPTIONAL* for getting content from [Contentful](https://app.contentful.com/spaces/4nuqzxntzxks)
......
......@@ -7,9 +7,10 @@
"license": "BSD",
"scripts": {
"hugo": "hugo server --disableRSS",
"build": "webpack",
"build:release": "export NODE_ENV=production && webpack -p",
"start": "webpack-dev-server --content-base ./public"
"build": "gulp build && hugo",
"build:release": "export NODE_ENV=production && gulp build && hugo",
"import": "cd import && python import.py",
"convert": "vtkDataConverter"
},
"paths": {
"src": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment