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