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

[web] Use local npm installed binaries.

parent ceff1f18
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,8 @@ if(CCACHE_FOUND)
endif()
endif(CCACHE_FOUND)
find_program(VTKJS_CONVERTER vtkDataConverter)
find_program(VTKJS_CONVERTER vtkDataConverter
PATHS ${CMAKE_SOURCE_DIR}/web/node_modules/.bin)
######################
### Find libraries ###
......
## 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 Node packages with `npm install` (or via `yarn`), *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)
## Start servers and watchers
......@@ -11,13 +10,12 @@
If you want to modify css or javascript run `gulp` in another terminal:
gulp
npm run gulp
## Build site
(cd import; python import.py) # Optional for fetching content from Contentful
gulp build
hugo
npm run build
Test by locally serving via [Caddy](https://caddyserver.com):
......@@ -28,7 +26,7 @@ Test by locally serving via [Caddy](https://caddyserver.com):
- [Hugo](https://gothugo.com) - Static site generator for technical documentation
- [Contenful](https://www.contentful.com/) - API-based CMS for news, articles, ..
- [flexboxgrid](http://flexboxgrid.com/) - CSS grid
- [vtk-js](https://kitware.github.io/vtk-js/) - 3D Visualizations
- [vtk.js](https://kitware.github.io/vtk-js/) - 3D Visualizations
- [webpack](https://webpack.github.io/) - Packaging JavaScript
- [gulp](http://gulpjs.com/) - Automation toolkit
......
......@@ -6,6 +6,7 @@
"author": "Lars Bilke",
"license": "BSD",
"scripts": {
"gulp": "gulp",
"hugo": "hugo server --disableRSS",
"build": "gulp build && hugo",
"build:release": "export NODE_ENV=production && gulp build && hugo",
......
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