From 7c2aa72ed43a86f66d3a83e522a612cc2955c046 Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Wed, 24 Jun 2015 10:01:51 +0100 Subject: [PATCH 1/3] Allow skipping of npm checks --- bin/next-build-tools.js | 1 + tasks/verify.js | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/next-build-tools.js b/bin/next-build-tools.js index 20249197..96cf5ed8 100755 --- a/bin/next-build-tools.js +++ b/bin/next-build-tools.js @@ -90,6 +90,7 @@ program program .command('verify') .option('--skip-layout-checks', 'run verify checks when the application doesn\'t have customer facing html pages') + .option('--skip-npm-checks', 'skip npm dependency checks') .option('-l, --layout [type]', 'Only check dependencies whose templates are needed in this layout') .description('internally calls origami-build-tools verify with some Next specific configuration (use only for APPLICATIONS. Front End components should continue to use origami-build-tools verify)') .action(function(opts) { diff --git a/tasks/verify.js b/tasks/verify.js index a5f13f31..7041e37a 100644 --- a/tasks/verify.js +++ b/tasks/verify.js @@ -18,9 +18,11 @@ function obtVerify() { module.exports = function(opts) { var checks = [ - obtVerify(), - verifyNpmDeps() + obtVerify() ]; + if (!opts.skipNpmChecks) { + verifyNpmDeps() + } if (!opts.skipLayoutChecks) { checks.push(verifyLayoutDeps({ layout: opts.layout })); From 5613897932fd6ed21555ee0c79d82d8f28f6e53a Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Wed, 24 Jun 2015 10:05:33 +0100 Subject: [PATCH 2/3] fully Add skip npm --- bin/next-build-tools.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/next-build-tools.js b/bin/next-build-tools.js index 96cf5ed8..22b33c2d 100755 --- a/bin/next-build-tools.js +++ b/bin/next-build-tools.js @@ -94,7 +94,11 @@ program .option('-l, --layout [type]', 'Only check dependencies whose templates are needed in this layout') .description('internally calls origami-build-tools verify with some Next specific configuration (use only for APPLICATIONS. Front End components should continue to use origami-build-tools verify)') .action(function(opts) { - verify({ skipLayoutChecks: opts.skipLayoutChecks, layout: opts.layout }).catch(exit); + verify({ + skipLayoutChecks: opts.skipLayoutChecks, + skipNpmChecks: opts.skipNpmChecks, + layout: opts.layout + }).catch(exit); }); program From fc3ba527036108d9ef037446fef78a6cbf24c9aa Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Wed, 24 Jun 2015 10:07:38 +0100 Subject: [PATCH 3/3] ; --- tasks/verify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/verify.js b/tasks/verify.js index 7041e37a..b442db78 100644 --- a/tasks/verify.js +++ b/tasks/verify.js @@ -21,7 +21,7 @@ module.exports = function(opts) { obtVerify() ]; if (!opts.skipNpmChecks) { - verifyNpmDeps() + verifyNpmDeps(); } if (!opts.skipLayoutChecks) {