mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
New compile flow uses app folder outside www
Since the update of 22/12/2015 ionic uses a new build system, it puts the app folder at the same tree level of www folder, as such the rootDirectory default should be only app.
This commit is contained in:
@ -68,7 +68,7 @@ Generate.generate = function generate(options) {
|
||||
Generate.defaultTemplates = function defaultTemplates(options) {
|
||||
var template = options.template ? options.template : 'page';
|
||||
|
||||
options.rootDirectory = options.rootDirectory || path.join('www', 'app');
|
||||
options.rootDirectory = options.rootDirectory || path.join('app');
|
||||
var savePath = path.join(options.appDirectory, options.rootDirectory, options.fileName);
|
||||
|
||||
var templates = Generate.loadGeneratorTemplates(path.join(__dirname, 'generators', options.template));
|
||||
|
Reference in New Issue
Block a user