-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from ngx-rocket/feature/mobile
Added cordova/mobile template + bugfixes
- Loading branch information
Showing
129 changed files
with
2,006 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
'use strict'; | ||
|
||
module.exports = [ | ||
{ | ||
type: 'input', | ||
name: 'appName', | ||
message: 'What\'s the name of your app?' | ||
}, | ||
{ | ||
type: 'checkbox', | ||
name: 'target', | ||
message: 'What kind of app do you want to create?', | ||
choices: [ | ||
{ | ||
value: 'web', | ||
name: 'Responsive web app', | ||
checked: true | ||
}, | ||
{ | ||
value: 'cordova', | ||
name: 'Mobile app (using Cordova)' | ||
} | ||
// { | ||
// value: 'electron', | ||
// name: 'Desktop app (using Cordova)' | ||
// } | ||
] | ||
}, | ||
// { | ||
// type: 'confirm', | ||
// name: 'pwa', | ||
// message: 'Do you want progressive web app support? (manifest and service worker)', | ||
// default: true, | ||
// when: props => props.target.includes('web') | ||
// }, | ||
{ | ||
type: 'checkbox', | ||
name: 'mobile', | ||
message: 'Which mobile platform do you want to support?', | ||
when: props => props.target.includes('cordova'), | ||
choices: [ | ||
{ | ||
value: 'ios', | ||
name: 'iOS', | ||
checked: true | ||
}, | ||
{ | ||
value: 'android', | ||
name: 'Android', | ||
checked: true | ||
} | ||
// { | ||
// value: 'windows', | ||
// name: 'Windows (Universal)' | ||
// } | ||
] | ||
}, | ||
{ | ||
type: 'checkbox', | ||
name: 'webview', | ||
message: 'Use enhanced web view?', | ||
when: props => props.target.includes('cordova'), | ||
choices: props => { | ||
const choices = []; | ||
if (props.mobile.includes('ios')) { | ||
choices.push({ | ||
value: 'wkwebview', | ||
name: '[iOS] WKWebView (Ionic version)', | ||
checked: true | ||
}); | ||
} | ||
if (props.mobile.includes('android')) { | ||
choices.push({ | ||
value: 'crosswalk', | ||
name: '[Android] Crosswalk', | ||
checked: false | ||
}); | ||
} | ||
return choices; | ||
} | ||
}, | ||
{ | ||
type: 'list', | ||
name: 'ui', | ||
message: 'Which UI framework do you want?', | ||
choices: [ | ||
{ | ||
value: 'bootstrap', | ||
name: 'Bootstrap (more website-oriented)' | ||
}, | ||
{ | ||
value: 'ionic', | ||
name: 'Ionic (more mobile-oriented)' | ||
} | ||
], | ||
default: props => props.target.includes('cordova') ? 'ionic' : 'bootstrap' | ||
}, | ||
{ | ||
type: 'confirm', | ||
name: 'auth', | ||
message: 'Do you want authentication?', | ||
default: true | ||
} | ||
]; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.