ngi 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +164 -0
- data/Rakefile +2 -0
- data/bin/ngi +35 -0
- data/lib/config/angular_init.config.json +100 -0
- data/lib/config/backup.angular_init.config.json +72 -0
- data/lib/dep/json.rb +62 -0
- data/lib/dep/json/add/bigdecimal.rb +28 -0
- data/lib/dep/json/add/complex.rb +28 -0
- data/lib/dep/json/add/core.rb +11 -0
- data/lib/dep/json/add/date.rb +34 -0
- data/lib/dep/json/add/date_time.rb +50 -0
- data/lib/dep/json/add/exception.rb +31 -0
- data/lib/dep/json/add/ostruct.rb +31 -0
- data/lib/dep/json/add/range.rb +29 -0
- data/lib/dep/json/add/rational.rb +27 -0
- data/lib/dep/json/add/regexp.rb +30 -0
- data/lib/dep/json/add/struct.rb +30 -0
- data/lib/dep/json/add/symbol.rb +25 -0
- data/lib/dep/json/add/time.rb +38 -0
- data/lib/dep/json/common.rb +484 -0
- data/lib/dep/json/ext.rb +21 -0
- data/lib/dep/json/ext/.keep +0 -0
- data/lib/dep/json/generic_object.rb +70 -0
- data/lib/dep/json/pure.rb +21 -0
- data/lib/dep/json/pure/generator.rb +522 -0
- data/lib/dep/json/pure/parser.rb +359 -0
- data/lib/dep/json/version.rb +8 -0
- data/lib/ngi.rb +16 -0
- data/lib/ngi/configure.rb +165 -0
- data/lib/ngi/delegate.rb +24 -0
- data/lib/ngi/generator.rb +199 -0
- data/lib/ngi/utils/command_parser.rb +104 -0
- data/lib/ngi/utils/jser.rb +46 -0
- data/lib/ngi/utils/utils.rb +30 -0
- data/lib/ngi/version.rb +3 -0
- data/lib/templates/markup/html/default/index.html +11 -0
- data/lib/templates/script/coffee/default/basic.js +23 -0
- data/lib/templates/script/coffee/default/config.js +12 -0
- data/lib/templates/script/coffee/default/constant.js +7 -0
- data/lib/templates/script/coffee/default/module.js +7 -0
- data/lib/templates/script/es5/default/basic.js +29 -0
- data/lib/templates/script/es5/default/config.js +13 -0
- data/lib/templates/script/es5/default/constant.js +7 -0
- data/lib/templates/script/es5/default/module.js +7 -0
- data/ngi.gemspec +23 -0
- metadata +129 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
;(function(app) {
|
2
|
+
|
3
|
+
'use strict';
|
4
|
+
|
5
|
+
app.{{type}}('{{name}}',{{name}});
|
6
|
+
|
7
|
+
{{name}}.$inject = {{inject | array_string}};
|
8
|
+
|
9
|
+
function {{name}}({{inject | comma_delimited_variables}}) {
|
10
|
+
{% if directive %}
|
11
|
+
var d = {
|
12
|
+
restrict: 'A',
|
13
|
+
link: link
|
14
|
+
};
|
15
|
+
|
16
|
+
return d;
|
17
|
+
|
18
|
+
function link(scope, element, attrs) {
|
19
|
+
|
20
|
+
}
|
21
|
+
{% endif directive %}
|
22
|
+
{% if filter %}
|
23
|
+
return function(input) {
|
24
|
+
return;
|
25
|
+
}
|
26
|
+
{% endif filter %}
|
27
|
+
}
|
28
|
+
|
29
|
+
})(angular.module('{{module}}'));
|
data/ngi.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'ngi/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "ngi"
|
8
|
+
spec.version = Ngi::VERSION
|
9
|
+
spec.authors = ["Joshua Beam"]
|
10
|
+
spec.email = ["frontendcollisionblog@gmail.com"]
|
11
|
+
spec.summary = "Speed up AngularJS development by creating templates for all your components from the command line."
|
12
|
+
spec.description = %q{This tool can make (for example) an AngularJS controller template file for you (.js), so that whenever you want to make a new controller for your app, you don't have to type the same starting code over and over again (by the way, this tool doesn't only create controllers. It does directives, filters... almost anything). ngi has one task, and one task only, which makes it lightweight and specialized. Most AngularJS developers are probably using the command line already (Gulp, Bower, npm, Git, etc.), so why not use the command line to streamline your code-writing too? Type less, write more AngularJS!}
|
13
|
+
spec.homepage = "https://github.com/joshbeam/angular_init"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = ["ngi"]
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ngi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joshua Beam
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: This tool can make (for example) an AngularJS controller template file
|
42
|
+
for you (.js), so that whenever you want to make a new controller for your app,
|
43
|
+
you don't have to type the same starting code over and over again (by the way, this
|
44
|
+
tool doesn't only create controllers. It does directives, filters... almost anything).
|
45
|
+
ngi has one task, and one task only, which makes it lightweight and specialized.
|
46
|
+
Most AngularJS developers are probably using the command line already (Gulp, Bower,
|
47
|
+
npm, Git, etc.), so why not use the command line to streamline your code-writing
|
48
|
+
too? Type less, write more AngularJS!
|
49
|
+
email:
|
50
|
+
- frontendcollisionblog@gmail.com
|
51
|
+
executables:
|
52
|
+
- ngi
|
53
|
+
extensions: []
|
54
|
+
extra_rdoc_files: []
|
55
|
+
files:
|
56
|
+
- ".gitignore"
|
57
|
+
- Gemfile
|
58
|
+
- LICENSE.txt
|
59
|
+
- README.md
|
60
|
+
- Rakefile
|
61
|
+
- bin/ngi
|
62
|
+
- lib/config/angular_init.config.json
|
63
|
+
- lib/config/backup.angular_init.config.json
|
64
|
+
- lib/dep/json.rb
|
65
|
+
- lib/dep/json/add/bigdecimal.rb
|
66
|
+
- lib/dep/json/add/complex.rb
|
67
|
+
- lib/dep/json/add/core.rb
|
68
|
+
- lib/dep/json/add/date.rb
|
69
|
+
- lib/dep/json/add/date_time.rb
|
70
|
+
- lib/dep/json/add/exception.rb
|
71
|
+
- lib/dep/json/add/ostruct.rb
|
72
|
+
- lib/dep/json/add/range.rb
|
73
|
+
- lib/dep/json/add/rational.rb
|
74
|
+
- lib/dep/json/add/regexp.rb
|
75
|
+
- lib/dep/json/add/struct.rb
|
76
|
+
- lib/dep/json/add/symbol.rb
|
77
|
+
- lib/dep/json/add/time.rb
|
78
|
+
- lib/dep/json/common.rb
|
79
|
+
- lib/dep/json/ext.rb
|
80
|
+
- lib/dep/json/ext/.keep
|
81
|
+
- lib/dep/json/generic_object.rb
|
82
|
+
- lib/dep/json/pure.rb
|
83
|
+
- lib/dep/json/pure/generator.rb
|
84
|
+
- lib/dep/json/pure/parser.rb
|
85
|
+
- lib/dep/json/version.rb
|
86
|
+
- lib/ngi.rb
|
87
|
+
- lib/ngi/configure.rb
|
88
|
+
- lib/ngi/delegate.rb
|
89
|
+
- lib/ngi/generator.rb
|
90
|
+
- lib/ngi/utils/command_parser.rb
|
91
|
+
- lib/ngi/utils/jser.rb
|
92
|
+
- lib/ngi/utils/utils.rb
|
93
|
+
- lib/ngi/version.rb
|
94
|
+
- lib/templates/markup/html/default/index.html
|
95
|
+
- lib/templates/script/coffee/default/basic.js
|
96
|
+
- lib/templates/script/coffee/default/config.js
|
97
|
+
- lib/templates/script/coffee/default/constant.js
|
98
|
+
- lib/templates/script/coffee/default/module.js
|
99
|
+
- lib/templates/script/es5/default/basic.js
|
100
|
+
- lib/templates/script/es5/default/config.js
|
101
|
+
- lib/templates/script/es5/default/constant.js
|
102
|
+
- lib/templates/script/es5/default/module.js
|
103
|
+
- ngi.gemspec
|
104
|
+
homepage: https://github.com/joshbeam/angular_init
|
105
|
+
licenses:
|
106
|
+
- MIT
|
107
|
+
metadata: {}
|
108
|
+
post_install_message:
|
109
|
+
rdoc_options: []
|
110
|
+
require_paths:
|
111
|
+
- lib
|
112
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
requirements: []
|
123
|
+
rubyforge_project:
|
124
|
+
rubygems_version: 2.2.2
|
125
|
+
signing_key:
|
126
|
+
specification_version: 4
|
127
|
+
summary: Speed up AngularJS development by creating templates for all your components
|
128
|
+
from the command line.
|
129
|
+
test_files: []
|