Skip to content

Commit 6b34c76

Browse files
committed
feat(*): add new ng2 blueprints
1 parent 3b9824b commit 6b34c76

File tree

10 files changed

+73
-3
lines changed

10 files changed

+73
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>
2+
<%= dasherizedModuleName %> Works!
3+
</p>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import{Component,View}from'angular2/angular2';
2+
3+
@Component({
4+
selector: '<%= dasherizedModuleName %>',
5+
injectables: []})
6+
@View({
7+
templateUrl: 'src/component/<%= dasherizedModuleName %>/<%= dasherizedModuleName %>.html',
8+
directives: []
9+
})
10+
exportclass<%=classifiedModuleName%>{
11+
constructor(){
12+
13+
}
14+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
varstringUtils=require('ember-cli/lib/utilities/string');
2+
3+
module.exports={
4+
description: ''
5+
6+
//locals: function(options){
7+
// // Return custom template variables here.
8+
// return{
9+
//
10+
// };
11+
//}
12+
13+
// afterInstall: function(options){
14+
// // Perform extra work here.
15+
// }
16+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exportclass<%=classifiedModuleName%>{
2+
3+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
varstringUtils=require('ember-cli/lib/utilities/string');
2+
3+
module.exports={
4+
description: ''
5+
6+
//locals: function(options){
7+
// // Return custom template variables here.
8+
// return{
9+
//
10+
// };
11+
//}
12+
13+
// afterInstall: function(options){
14+
// // Perform extra work here.
15+
// }
16+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
7+
# dependencies
8+
/node_modules
9+
/bower_components
10+
11+
# misc
12+
/.sass-cache
13+
/connect.lock
14+
/coverage/*
15+
/libpeerconnection.log
16+
npm-debug.log
17+
testem.log

‎addon/ng2-wrenchjs-cli/blueprints/ng2/files/index.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<title><%= jsComponentName %></title>
5+
<style>/* Cool! */</style>
56
<scriptsrc="https://github.jspm.io/jmcriffey/[email protected]/traceur-runtime.js"></script>
67
<scriptsrc="https://jspm.io/[email protected]"></script>
78
<scriptsrc="https://code.angularjs.org/2.0.0-alpha.22/angular2.dev.js"></script>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<p>
2-
Works!
2+
<%= htmlComponentName %>Works!
33
</p>

‎addon/ng2-wrenchjs-cli/blueprints/ng2/files/src/__name__.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import{Component, View, bootstrap} from 'angular2/angular2'
44
selector: '<%= htmlComponentName %>-app',
55
injectables: []})
66
@View({
7-
templateUrl: '<%= htmlComponentName %>.html',
7+
templateUrl: 'src/<%= htmlComponentName %>.html',
88
directives: []
99
})
1010
class<%=jsComponentName%>App{

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"bin":{
77
"wrenchjs": "./bin/wrenchjs"
88
},
9-
"keywords": ["ember-addon"],
9+
"keywords": [],
1010
"scripts":{
1111
"test": "echo \"Error: no test specified\" && exit 1"
1212
},

0 commit comments

Comments
(0)