Unverified Commit bbf4fa12 authored by Yi (Flora) Liu's avatar Yi (Flora) Liu Committed by GitHub
Browse files

Update theme to 111 (#5)



* Update theme to 111
Signed-off-by: Yi Liu's avatarYi Liu <yi.liu@eclipse-foundation.org>

* Update travis
Signed-off-by: Yi Liu's avatarYi Liu <yi.liu@eclipse-foundation.org>

* add postinstall
Signed-off-by: Yi Liu's avatarYi Liu <yi.liu@eclipse-foundation.org>

* use post install
Signed-off-by: Yi Liu's avatarYi Liu <yi.liu@eclipse-foundation.org>
parent 92772a13
language: node_js
matrix:
include:
- node_js: 10
env: HUGO_ENV=dev
- node_js: 12
env: HUGO_ENV=production
node_js:
- "12"
install:
- npm install
- npm ci
- wget https://github.com/gohugoio/hugo/releases/download/v0.76.5/hugo_0.76.5_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
script:
- if [ "$HUGO_ENV" = "dev" ]; then hugo --gc --minify --buildFuture; fi;
- if [ "$HUGO_ENV" = "production" ]; then hugo --gc --minify ; fi;
\ No newline at end of file
- hugo --gc --minify --buildFuture
\ No newline at end of file
......@@ -2,6 +2,9 @@
publish = "public"
command = "npm run production && hugo --gc --minify"
[build.environment]
NODE_VERSION = "12.18.3"
[context.production.environment]
HUGO_VERSION = "0.76.5"
HUGO_ENV = "production"
......
This diff is collapsed.
......@@ -13,13 +13,14 @@
"url": "git://github.com/eclipsefdn/openmdm.org.git"
},
"scripts": {
"dev": "NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"dev": "NODE_ENV=development webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "NODE_ENV=development webpack --watch --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
"hot": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"production": "NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"install": "NODE_ENV=production npm run production"
"production": "NODE_ENV=production webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
"postinstall": "NODE_ENV=production npm run production"
},
"dependencies": {
"eclipsefdn-hugo-solstice-theme": "0.0.102"
}
"eclipsefdn-hugo-solstice-theme": "0.0.111"
},
"browserslist": "last 5 version, > 0.2%, not dead, IE 11"
}
......@@ -19,7 +19,7 @@ mix.setResourceRoot('../');
mix.less('./less/styles.less', 'static/css/styles.css');
mix.scripts([
mix.babel([
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/bootstrap/dist/js/bootstrap.min.js',
'./node_modules/jquery-match-height/dist/jquery.matchHeight-min.js',
......
Markdown is supported
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