Skip to content

feat: Use JSON file to create a NEW project and to GENERATE components, routes, directives, etc. #1039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6e928ae
copy angular2-app change index.html to CustomMaster.html
kenhansen01 May 24, 2016
184c44b
add custom master files, copy from ng2 files
kenhansen01 May 24, 2016
57ea11c
add sharepoint typings
kenhansen01 May 24, 2016
d0280b7
change module to new broccoli angular2-sharepoint-app
kenhansen01 May 24, 2016
e024a36
add @angular/http dependency
kenhansen01 May 24, 2016
d8e5cef
copy file loading scrpt from index
kenhansen01 May 24, 2016
699ba9c
add newfromjson command
kenhansen01 May 26, 2016
0eb6035
add newfromjson command
kenhansen01 May 26, 2016
3aa99c2
add newfromjson command to parse json file
kenhansen01 Jun 7, 2016
d16a299
remove custom thingy
kenhansen01 Jun 7, 2016
5c7cb95
remove extra write line commands used for debugging
kenhansen01 Jun 7, 2016
3c68638
remove extra write line commands used for debugging
kenhansen01 Jun 7, 2016
d0e0b72
add
kenhansen01 Jun 7, 2016
ea8cb1c
change --lazy flag to --lazy=false in generate route command
kenhansen01 Jun 8, 2016
b297057
Merge remote-tracking branch 'upstream/master'
kenhansen01 Jun 8, 2016
5dd3cc7
Merge remote-tracking branch 'upstream/master' into cli-json-parse
kenhansen01 Jun 8, 2016
adf21fb
remove sharepoint app from broccoli
kenhansen01 Jun 8, 2016
3afeb3f
add newfromjson command
kenhansen01 May 26, 2016
c7d9097
add newfromjson command
kenhansen01 May 26, 2016
c0476c0
add newfromjson command to parse json file
kenhansen01 Jun 7, 2016
80d9309
remove custom thingy
kenhansen01 Jun 7, 2016
45ba110
remove extra write line commands used for debugging
kenhansen01 Jun 7, 2016
30035ce
add
kenhansen01 Jun 7, 2016
4819324
change --lazy flag to --lazy=false in generate route command
kenhansen01 Jun 8, 2016
b554b1c
remove sharepoint app from broccoli
kenhansen01 Jun 8, 2016
5553a02
update
kenhansen01 Jul 14, 2016
de38676
add
kenhansen01 Oct 7, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {<%= classifiedModuleName %>Service} from './<%= dasherizedModuleName %>.service';
6 changes: 4 additions & 2 deletions addon/ng2/commands/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ const GenerateCommand = EmberGenerateCommand.extend({
name: 'generate',

beforeRun: function(rawArgs) {
this.ui.writeLine(chalk.green(`The raw arguments are now ${rawArgs}`));
this.ui.writeLine(chalk.green(`The current path is ${process.cwd()}`));
if (!rawArgs.length) {
return;
}

// map the blueprint name to allow for aliases
rawArgs[0] = mapBlueprintName(rawArgs[0]);

this.ui.writeLine(chalk.green(`The blueprint is now ${rawArgs[0]}`));
if (rawArgs[0] !== '--help' &&
!fs.existsSync(path.join(__dirname, '..', 'blueprints', rawArgs[0]))) {
SilentError.debugOrThrow('angular-cli/commands/generate', `Invalid blueprint: ${rawArgs[0]}`);
Expand All @@ -38,7 +40,7 @@ const GenerateCommand = EmberGenerateCommand.extend({
this.ui.writeLine(chalk.cyan(' Available blueprints'));
this.ui.writeLine(output);
};

this.ui.writeLine(chalk.green(`The raw arguments are now ${arguments}`));
return EmberGenerateCommand.prototype.beforeRun.apply(this, arguments);
}
});
Expand Down
2 changes: 2 additions & 0 deletions addon/ng2/commands/new.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference path="../../../typings/index.d.ts" />

import * as chalk from 'chalk';
import * as Command from 'ember-cli/lib/models/command';
import * as Project from 'ember-cli/lib/models/project';
Expand Down
Loading