Unverified Commit fbb281ae authored by Christopher Guindon's avatar Christopher Guindon Committed by GitHub
Browse files

Cguindon/master/update js (#7)



* update solstice theme
Signed-off-by: Christopher Guindon's avatarChristopher Guindon <chris.guindon@eclipse-foundation.org>

* update solstice theme
Signed-off-by: Christopher Guindon's avatarChristopher Guindon <chris.guindon@eclipse-foundation.org>
parent ba5bf612
......@@ -2,7 +2,7 @@ language: node_js
node_js:
- "12"
install:
- npm ci
- yarn install --frozen-lockfile
- wget https://github.com/gohugoio/hugo/releases/download/v0.76.5/hugo_0.76.5_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
script:
......
......@@ -11,7 +11,7 @@ openMDM® 5 is a kit of components and concepts, which can be used to compose ap
Install dependencies, build assets and start a webserver:
```bash
npm install && hugo server
yarn && hugo server
```
You can find guidance on the page-level metadata [here](https://eclipsefdn.github.io/hugo-solstice-theme/), and examples of the assorted page types (components) [here](https://eclipsefdn.github.io/hugo-solstice-theme/components/).
......@@ -41,7 +41,7 @@ Images, less and JavaScript files for the Eclipse Foundation look and feel.
### [EclipseFdn/hugo-solstice-theme](https://github.com/EclipseFdn/hugo-solstice-theme)
Hugo theme of the Eclipse Foundation look and feel.
Hugo theme of the Eclipse Foundation look and feel.
## Bugs and feature requests
......
{
"extends": "./node_modules/eclipsefdn-solstice-assets/babel.config.json"
}
\ No newline at end of file
/*!
* Copyright (c) 2021 Eclipse Foundation, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Contributors:
* Christopher Guindon <chris.guindon@eclipse-foundation.org>
*
* SPDX-License-Identifier: EPL-2.0
*/
import 'eclipsefdn-solstice-assets'
\ No newline at end of file
[build]
publish = "public"
command = "npm run production && hugo --gc --minify"
command = "yarn run production && hugo --gc --minify"
[build.environment]
NODE_VERSION = "12.18.3"
......@@ -11,20 +11,20 @@ HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.split1]
command = "npm run production && hugo --gc --minify --enableGitInfo"
command = "yarn run production && hugo --gc --minify --enableGitInfo"
[context.split1.environment]
HUGO_VERSION = "0.76.5"
HUGO_ENV = "production"
[context.deploy-preview]
command = "npm run production && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
command = "yarn run production && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.76.5"
[context.branch-deploy]
command = "npm run production && hugo --gc --minify -b $DEPLOY_PRIME_URL"
command = "yarn run production && hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.76.5"
......
This diff is collapsed.
......@@ -20,7 +20,7 @@
"postinstall": "NODE_ENV=production npm run production"
},
"dependencies": {
"eclipsefdn-hugo-solstice-theme": "0.0.111"
"eclipsefdn-hugo-solstice-theme": "0.0.129"
},
"browserslist": "last 5 version, > 0.2%, not dead, IE 11"
}
{
"/css/styles.css": "/css/styles.css",
"/js/solstice.js": "/js/solstice.js"
"/js/solstice.js": "/js/solstice.js",
"/css/styles.css": "/css/styles.css"
}
/*!
* Copyright (c) 2018 Eclipse Foundation, Inc.
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
*
* Contributors:
* Christopher Guindon <chris.guindon@eclipse-foundation.org>
*
*
* SPDX-License-Identifier: EPL-2.0
*/
*/
mix = require('laravel-mix');
mix.options({uglify: {uglifyOptions: {compress: false, output: {comments: true}}}});
require('laravel-mix-transpile-node-modules');
mix.transpileNodeModules(['eclipsefdn-solstice-assets']);
mix.options({
uglify: { uglifyOptions: { compress: false, output: { comments: true } } },
});
mix.setPublicPath('static');
mix.setResourceRoot('../');
mix.less('./less/styles.less', 'static/css/styles.css');
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',
'./node_modules/feather-icons/dist/feather.min.js',
'./node_modules/cookieconsent/src/cookieconsent.js',
'./node_modules/jquery-eclipsefdn-api/dist/jquery.eclipsefdn-api.min.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.cookieconsent.js',
'./node_modules/eclipsefdn-solstice-assets/js/eclipsefdn.videos.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.cookies.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.js'
], './static/js/solstice.js');
\ No newline at end of file
mix.webpackConfig({
resolve: {
alias: {
jquery: 'jquery/src/jquery',
},
},
});
mix.js('js/main.js', './static/js/solstice.js');
This diff is collapsed.
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