This repository has been archived by the owner on Jul 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#358: generator questions - up until plugins
- Loading branch information
Showing
6 changed files
with
95 additions
and
50 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Questions the generator will ask | ||
The generator will ask the following questions in that order: | ||
|
||
## Name? | ||
![image](https://cloud.githubusercontent.com/assets/1370779/15828173/91abb874-2c0e-11e6-81ee-c2608a751b14.png) | ||
|
||
The name of the project will be written to the `config.xml` and thus show up below your app icon when you run the app on a device: | ||
```html | ||
<name>Adventure Island</name> | ||
``` | ||
From this name the generator also derives a compatible **angular module name** for the root module of your app: | ||
|
||
`app.js`: | ||
```js | ||
angular.module('adventureIsland', [ | ||
// load your modules here | ||
'main', // starting with the main module | ||
]); | ||
|
||
``` | ||
|
||
Which is bootstrapped in the `index.html`: | ||
```html | ||
<body ng-app="adventureIsland"> | ||
``` | ||
|
||
## App identifier? | ||
![image](https://cloud.githubusercontent.com/assets/1370779/15828919/9ef7fe2c-2c11-11e6-9396-848a1a90c78f.png) | ||
|
||
A reverse-domain identifier to identify your app. If you don't know what that is, a good explanation is found in the [psdpdfkit guides](https://pspdfkit.com/guides/ios/current/faq/what-is-a-bundle-id/). For a start you can just **make one up** and change it later. | ||
|
||
`config.xml`: | ||
```html | ||
<widget id="com.company.project" ...> | ||
``` | ||
|
||
## Ionic CSS or Sass? | ||
![image](https://cloud.githubusercontent.com/assets/1370779/15851768/828afdce-2c9e-11e6-9fd4-032049de2290.png) | ||
|
||
You'll be writing your own styles using Sass in any case. Your choice here is to including the Ionic styles as CSS or Sass. Choosing Sass allows you to change the basic layout of Ionic. Bar heights, colors and more. However the whole Ionic Sass needs to compile with every change you make to your Sass, which is a little slower than if you just include the compiled CSS of the Ionic styles. | ||
|
||
You can change this later, after project generation with the help of our [Ionic style source](../guides/ionic_style_source.md) guide. | ||
|
||
## Additional bower packages? | ||
![image](https://cloud.githubusercontent.com/assets/1370779/15853161/3d21fbec-2ca4-11e6-9d81-dcec85b4aa2e.png) | ||
|
||
The angular, ionic, angular-ui-router and ngCordova bower dependencies will be installed and included by default. Additional packages also get installed and injected into your `index.html`. Refer to their documentations for instructions on how to use them, some are covered in our [Bower component usage](../guides/bower_component_usage.md) guide. | ||
|
||
Install new ones using the [Bower CLI](http://bower.io/docs/api/): | ||
```sh | ||
bower install angular-translate --save | ||
``` | ||
|
||
## Cordova platforms? | ||
![image](https://cloud.githubusercontent.com/assets/1370779/15854124/7704465e-2ca8-11e6-80e3-92a99243dffb.png) | ||
|
||
Choose the platforms you want to build for. This will only work if you have the platforms' requirements correctly set up. For more information visit [Installation and Prerequisites](./installation_prerequisites.md). | ||
|
||
You can add and remove platforms at any time using the Cordova CLI wrapper: | ||
```sh | ||
gulp --cordova 'platform add android --save' | ||
``` | ||
More detailed instructions are found in the [Development Introduction](./development_intro.md). So if you're not sure, leave these empty for now. A full list of platforms supported by Cordova is found in the [Cordova Documentation](https://cordova.apache.org/docs/en/latest/guide/support/). | ||
|
||
## Cordova plugins? | ||
![image](https://cloud.githubusercontent.com/assets/1370779/15854446/292c5122-2caa-11e6-95df-db9227f1d8ea.png) | ||
|
||
Select the ones you want to install now. Unlike the Cordova platforms, these will not fail without the proper Cordova platform setup. | ||
|
||
Just as with the platforms you can add plugins later at any time using the [Cordova CLI wrapper](./development_intro.md): | ||
```sh | ||
gulp --cordova 'plugin add org.apache.cordova.camera --save' | ||
``` | ||
Find all available plugins on the [Cordova plugins page](https://cordova.apache.org/plugins/). |
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