Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit adc73edae89b16282fc1baa4e7fc5f594a5f8e51 @twilson63 committed Oct 15, 2012
@@ -0,0 +1 @@
+node_modules
@@ -0,0 +1,22 @@
+var flatiron = require('flatiron'),
+ app = flatiron.app,
+ conf = require(__dirname + '/package.json');
+
+app.use(flatiron.plugins.cli, {
+ // CLI Options
+ dir: __dirname,
+ usage: [
+ 'ng - AngularJS CLI',
+ '',
+ 'Commands:',
+ 'version - returns the version',
+ 'init - creates a basic angular app structure',
+ 'g - generates new [controller, view, resource, etc]'
+ ]
+});
+
+app.cmd('version', function() {
+ console.log('ng');
+});
+
+app.start();
@@ -0,0 +1,23 @@
+{
+ "name": "ng",
+ "version": "0.0.1",
+ "description": "AngularJS Command-Line Tool",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": "",
+ "author": "",
+ "license": "MIT",
+ "dependencies": {
+ "flatiron": "~0.2.8",
+ "ejs": "~0.8.3"
+ },
+ "generator": {
+ "bootstrap": "//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.no-icons.min.css",
+ "fontawesome": "//netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome.css",
+ "jquery": "//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js",
+ "bootstrapjs": "//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js",
+ "angularjs": "//ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.min.js"
+ }
+}
@@ -0,0 +1,6 @@
+var <%= name %> = angular.module('<%= name %>', [])
+ .conf(function($routeProvider){
+ $routeProvider
+ .when('/', { controller: 'Index', templateUrl: '/app/views/index.html' });
+ });
+
@@ -0,0 +1,3 @@
+<%= name %>.controller('Index', function($scope) {
+
+});
@@ -0,0 +1,4 @@
+<h1><%= title %></h1>
+<label>What is your name?</label>
+<input type="text" ng-model="yourName"></input>
+<h1>Hello {{yourName}}</h1>
@@ -0,0 +1,16 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <title><%= title %></title>
+ <meta charset='utf-8'></meta>
+ <link href="<%= bootstrap %>" rel="stylesheet">
+ <link href="<%= fontawesome %>" rel="stylesheet">
+ </head>
+ <body>
+ <div ng-app="<%= name %>"></div>
+ <ng-view></ng-view>
+ <script src="<%= jquery %>"></script>
+ <script src="<%= bootstrapjs %>"></script>
+ <script src="<%= angularjs %>"></script>
+ </body>
+</html>
@@ -0,0 +1,4 @@
+{
+ "name": "<%= name %>",
+ "version": "<%= version %>"
+}
No changes.

0 comments on commit adc73ed

Please sign in to comment.