Skip to content

Commit 375ad4b

Browse files
committed
feat(start): add --skip-npm flag
1 parent 0ce5642 commit 375ad4b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/tasks/cliTasks.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ var TASKS = [
4343
options: {
4444
'--appname|-a': 'Human readable name for the app (Use quotes around the name)',
4545
'--id|-i': 'Package name for <widget id> config, ex: com.mycompany.myapp',
46+
'--skip-npm': {
47+
title: 'Skip npm package installation',
48+
boolean: true
49+
},
4650
'--no-cordova|-w': {
4751
title: 'Create a basic structure without Cordova requirements',
4852
boolean: true

spec/cli.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('Cli', function() {
122122
var task = IonicCli.getTaskWithName('start');
123123
var booleanOptions = IonicCli.getBooleanOptionsForTask(task);
124124
//We expect 6 total = 3 options, each with short hand notation.
125-
expect(booleanOptions.length).toBe(10);
125+
expect(booleanOptions.length).toBe(11);
126126
});
127127

128128
it('should track stats for cli', function() {

0 commit comments

Comments
 (0)