Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

compile css/js on npm install step #212

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -6,6 +6,5 @@ install:
- wget https://github.com/gohugoio/hugo/releases/download/v0.76.5/hugo_0.76.5_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
script:
- npm run production
- npm run fetch_project
- npm run build
- hugo --gc --themesDir ../.. --source exampleSite
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -7,7 +7,8 @@
Install dependencies, build assets and start a webserver:

```bash
npm install
npm install
npm run build
hugo server --source=exampleSite --themesDir="../../"
```

Expand Down
6 changes: 3 additions & 3 deletions netlify.toml
@@ -1,5 +1,5 @@
[build]
command = "npm run production && npm run fetch_project && hugo --gc --minify -b $URL --themesDir ../../ --source exampleSite"
command = "npm run build && hugo --gc --minify -b $URL --themesDir ../../ --source exampleSite"
publish = "exampleSite/public"

[build.environment]
Expand All @@ -12,7 +12,7 @@
HUGO_ENV = "production"

[context.deploy-preview]
command = "npm run production && npm run fetch_project && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL --themesDir ../../ --source exampleSite"
command = "npm run build && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL --themesDir ../../ --source exampleSite"

[context.branch-deploy]
command = "npm run production && npm run fetch_project && hugo --gc --minify -b $DEPLOY_PRIME_URL --themesDir ../../ --source exampleSite"
command = "npm run build && hugo --gc --minify -b $DEPLOY_PRIME_URL --themesDir ../../ --source exampleSite"
90 changes: 45 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "eclipsefdn-hugo-solstice-theme",
"description": "Hugo Solstice Theme by the Eclipse Foundation.",
"description": "Hugo Solstice theme by the Eclipse Foundation.",
"main": "webpack.min.js",
"author": "Christopher Guindon",
"license": "EPL-2.0",
Expand All @@ -17,7 +17,8 @@
"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 --config=node_modules/laravel-mix/setup/webpack.config.js",
"fetch_project": "NODE_ENV=production node bin/projects/index.js -l exampleSite/data",
"fetch_project": "node bin/projects/index.js -l exampleSite/data",
"build": "npm run fetch_project && webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
"prepare_release": "rm -rf node_modules && rm package-lock.json && npm install && npm run production && git add . && git commit -m \"prepare new release\" -s"
},
"readmeFilename": "README.md",
Expand Down