Skip to content
This repository was archived by the owner on Mar 14, 2022. It is now read-only.

Commit fbb281a

Browse files
authored
Cguindon/master/update js (#7)
* update solstice theme Signed-off-by: Christopher Guindon <[email protected]> * update solstice theme Signed-off-by: Christopher Guindon <[email protected]>
1 parent ba5bf61 commit fbb281a

10 files changed

+6367
-10084
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: node_js
22
node_js:
33
- "12"
44
install:
5-
- npm ci
5+
- yarn install --frozen-lockfile
66
- wget https://github.com/gohugoio/hugo/releases/download/v0.76.5/hugo_0.76.5_Linux-64bit.deb
77
- sudo dpkg -i hugo*.deb
88
script:

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ openMDM® 5 is a kit of components and concepts, which can be used to compose ap
1111
Install dependencies, build assets and start a webserver:
1212

1313
```bash
14-
npm install && hugo server
14+
yarn && hugo server
1515
```
1616

1717
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.
4141

4242
### [EclipseFdn/hugo-solstice-theme](https://github.com/EclipseFdn/hugo-solstice-theme)
4343

44-
Hugo theme of the Eclipse Foundation look and feel.
44+
Hugo theme of the Eclipse Foundation look and feel.
4545

4646
## Bugs and feature requests
4747

babel.config.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/eclipsefdn-solstice-assets/babel.config.json"
3+
}

js/main.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*!
2+
* Copyright (c) 2021 Eclipse Foundation, Inc.
3+
*
4+
* This program and the accompanying materials are made available under the
5+
* terms of the Eclipse Public License v. 2.0 which is available at
6+
* http://www.eclipse.org/legal/epl-2.0.
7+
*
8+
* Contributors:
9+
* Christopher Guindon <[email protected]>
10+
*
11+
* SPDX-License-Identifier: EPL-2.0
12+
*/
13+
14+
import 'eclipsefdn-solstice-assets'

netlify.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build]
22
publish = "public"
3-
command = "npm run production && hugo --gc --minify"
3+
command = "yarn run production && hugo --gc --minify"
44

55
[build.environment]
66
NODE_VERSION = "12.18.3"
@@ -11,20 +11,20 @@ HUGO_ENV = "production"
1111
HUGO_ENABLEGITINFO = "true"
1212

1313
[context.split1]
14-
command = "npm run production && hugo --gc --minify --enableGitInfo"
14+
command = "yarn run production && hugo --gc --minify --enableGitInfo"
1515

1616
[context.split1.environment]
1717
HUGO_VERSION = "0.76.5"
1818
HUGO_ENV = "production"
1919

2020
[context.deploy-preview]
21-
command = "npm run production && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
21+
command = "yarn run production && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
2222

2323
[context.deploy-preview.environment]
2424
HUGO_VERSION = "0.76.5"
2525

2626
[context.branch-deploy]
27-
command = "npm run production && hugo --gc --minify -b $DEPLOY_PRIME_URL"
27+
command = "yarn run production && hugo --gc --minify -b $DEPLOY_PRIME_URL"
2828

2929
[context.branch-deploy.environment]
3030
HUGO_VERSION = "0.76.5"

0 commit comments

Comments
 (0)