Skip to content
Snippets Groups Projects
Unverified Commit 025ea3be authored by Christopher Guindon's avatar Christopher Guindon Committed by GitHub
Browse files

fix previous with netlify (#46)


* fix previous with netlify

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

* add main site

Signed-off-by: Christopher Guindon's avatarChristopher Guindon <chris.guindon@eclipse-foundation.org>
parent 4eb01e12
No related branches found
No related tags found
No related merge requests found
[build]
publish = "public"
command = "hugo --gc --minify -b https://eclipsefdn-adopters.netlify.app"
command = "npm run build_netlify && hugo --gc --minify -b https://eclipsefdn-adopters.netlify.app"
[context.production.environment]
HUGO_VERSION = "0.62.2"
HUGO_VERSION = "0.76.5"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.split1]
command = "hugo --gc --minify --enableGitInfo"
command = "npm run build_netlify && hugo --gc --minify --enableGitInfo"
[context.split1.environment]
HUGO_VERSION = "0.62.2"
HUGO_VERSION = "0.76.5"
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
command = "npm run build_netlify && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.62.2"
HUGO_VERSION = "0.76.5"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
command = "npm run build_netlify && hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.62.2"
HUGO_VERSION = "0.76.5"
[context.next.environment]
HUGO_ENABLEGITINFO = "true"
HUGO_ENABLEGITINFO = "true"
\ No newline at end of file
......@@ -13,10 +13,11 @@
},
"scripts": {
"build": "npm run production && npm run minify_adopters && rm -rf src/main/resources/META-INF/resources/* && hugo -d src/main/resources/META-INF/resources/",
"build_netlify": "npm run production",
"build_netlify": "npm run production && npm run disallow_robots_txt",
"minify_adopters": "mkdir -p target/config && ./node_modules/json-minify/index.js config/adopters.json > target/config/adopters.json",
"dev": "NODE_ENV=development webpack --progress --hide-modules --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"
"production": "NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"disallow_robots_txt": "echo \"User-agent: *\r\nDisallow: /\" > layouts/robots.txt"
},
"dependencies": {
"chai": "^4.2.0",
......
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