You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2019/03/03 18:16:13 UTC
[camel-website] branch master updated: refactor: don't use yarn
install for build
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/master by this push:
new d98c230 refactor: don't use yarn install for build
d98c230 is described below
commit d98c2301320b0ebe857a0d304d33b23cbfa4966a
Author: Zoran Regvart <zr...@gmail.com>
AuthorDate: Sun Mar 3 19:15:05 2019 +0100
refactor: don't use yarn install for build
Might be better not to use `yarn install` (or by extension `yarn`) to
perform the build in addition to downloading and installing
dependencies.
---
Jenkinsfile | 6 ++++--
antora-ui-camel/package.json | 3 ---
package.json | 2 +-
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 9ea74e5..701f4fe 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -56,7 +56,8 @@ pipeline {
}
steps {
- sh "cd $WORKSPACE/camel-website/antora-ui-camel && yarn --non-interactive --frozen-lockfile"
+ sh "cd $WORKSPACE/camel-website/antora-ui-camel && yarn --non-interactive --frozen-lockfile install"
+ sh "cd $WORKSPACE/camel-website/antora-ui-camel && yarn --non-interactive --frozen-lockfile gulp"
}
}
@@ -74,7 +75,8 @@ pipeline {
}
steps {
- sh "cd $WORKSPACE/camel-website && yarn --non-interactive --frozen-lockfile"
+ sh "cd $WORKSPACE/camel-website && yarn --non-interactive --frozen-lockfile install"
+ sh "cd $WORKSPACE/camel-website && yarn --non-interactive --frozen-lockfile build"
}
}
diff --git a/antora-ui-camel/package.json b/antora-ui-camel/package.json
index a823402..e784905 100644
--- a/antora-ui-camel/package.json
+++ b/antora-ui-camel/package.json
@@ -10,9 +10,6 @@
"engines": {
"node": ">= 8.0.0"
},
- "scripts": {
- "install": "gulp"
- },
"devDependencies": {
"autoprefixer": "~9.4",
"browserify": "~16.2",
diff --git a/package.json b/package.json
index bfc0a84..ab1512f 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
"website": "hugo --minify",
"critical": "gulp critical",
"minify": "gulp minify",
- "install": "run-s documentation website minify critical"
+ "build": "run-s documentation website minify critical"
},
"devDependencies": {
"@antora/cli": "^2.0.0",