-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial attempt to convert to auto-pods (ember-cli style)
- Loading branch information
Ilya Radchenko
committed
Jun 30, 2014
1 parent
50101af
commit 4a6820d
Showing
29 changed files
with
93 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
var cli = require('ltcdr'); | ||
var pkg = require('../package'); | ||
var app = require('./index'); | ||
var emberate = require('./index'); | ||
var fs = require('fs'); | ||
|
||
cli.version(pkg.version) | ||
.option('-o, --output-path [path]', 'Output path of generated file', './client/.index.js') | ||
.option('-p, --pods', 'Enable PODS support') | ||
.option('-i, --input-directory [dir]', 'Directory to start crawling file tree', './client') | ||
.option('-i, --app-directory [dir]', 'Directory to start crawling file tree', './client') | ||
.option('-n, --app-name [app-name]', 'App Name, where your app resides globally') | ||
.parse(process.argv); | ||
|
||
app(cli.inputDirectory, { | ||
emberate({ | ||
appDirectory: cli.appDirectory. | ||
appName: cli.appName, | ||
pods: cli.pods, | ||
outPath: cli.outputPath | ||
}, function () { | ||
}).then(function () { | ||
process.exit(); | ||
}) | ||
}, function (err) { | ||
console.error(err); | ||
process.exit(1); | ||
}); | ||
|
||
module.exports = cli; |
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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
// this file is auto-generated, do not edit | ||
require('ember'); // get Ember global around for the templates | ||
require('./.templates'); | ||
var Ember = require('ember'); // get Ember global around for the templates | ||
|
||
var {{appName}} = require('./config/application'); | ||
{{appName}}.Router.map(require('./config/routes')); | ||
var {{appName}} = require('./app'); | ||
{{appName}}.Router = require('./router'); | ||
|
||
{{#each helpers}} | ||
require('{{path}}');{{/each}} | ||
|
||
{{#each modules}} | ||
{{../appName}}.{{name}} = require('{{path}}');{{/each}} | ||
{{#each modules}}{{#if isTemplate}} | ||
Ember.TEMPLATES['{{name}}'] = require('{{path}}');{{else}} | ||
{{../../appName}}.{{name}} = require('{{path}}');{{/if}}{{/each}} | ||
|
||
module.exports = {{appName}}; |
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.