This is an automated email from the ASF dual-hosted git repository.

kamilbregula pushed a commit to branch aip-11
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


The following commit(s) were added to refs/heads/aip-11 by this push:
     new f3230a0  Create indexes in an automagical way (#142)
f3230a0 is described below

commit f3230a0ce1e343468f7bc1f4e790cc74c42fb3e3
Author: Kamil BreguĊ‚a <[email protected]>
AuthorDate: Fri Nov 8 12:35:54 2019 +0100

    Create indexes in an automagical way (#142)
---
 landing-pages/package.json | 3 ++-
 site.sh                    | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/landing-pages/package.json b/landing-pages/package.json
index 751449f..ff67828 100644
--- a/landing-pages/package.json
+++ b/landing-pages/package.json
@@ -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",
diff --git a/site.sh b/site.sh
index fa8d9c2..1d405f3 100755
--- a/site.sh
+++ b/site.sh
@@ -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

Reply via email to