Skip to content

Commit

Permalink
Create indexes in an automagical way (apache#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-laj authored Nov 8, 2019
1 parent e4b43c1 commit f3230a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion landing-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
"build:hugo:preview": "npm run build:hugo -- -D -F",
"build:preview": "npm run build:webpack && npm run build:hugo:preview",
"build:webpack": "cross-env NODE_ENV=production webpack --config webpack.prod.js",
"index": "node ./create-index.js",
"lint": "run-p lint:**",
"lint:css": "stylelint \"site/assets/scss/**/*.scss\"",
"lint:js": "eslint .",
"prebuild": "rimraf dist",
"prebuild": "rimraf dist && npm run index",
"preview": "run-p preview:**",
"preview:hugo": "npm run start:hugo -- -D -F",
"preview:webpack": "npm run start:webpack",
Expand Down
1 change: 1 addition & 0 deletions site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ if [[ "${CMD}" == "install-node-deps" ]] ; then
run_command "/opt/site/landing-pages/" yarn install
elif [[ "${CMD}" == "preview" ]]; then
ensure_node_module_exists
run_command "/opt/site/landing-pages/" npm run index
run_command "/opt/site/landing-pages/" npm run preview
elif [[ "${CMD}" == "build-landing-pages" ]]; then
ensure_node_module_exists
Expand Down

0 comments on commit f3230a0

Please sign in to comment.