ngi 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +7 -1
- data/bin/ngi +1 -31
- data/lib/config/{angular_init.config.json → backup/angular_init.config.json} +0 -0
- data/lib/config/backup/config.components.aliases.yml +3 -0
- data/lib/config/backup/config.components.yml +55 -0
- data/lib/config/backup/config.configurable.yml +1 -0
- data/lib/config/backup/config.languages.yml +5 -0
- data/lib/config/backup/config.yml +3 -0
- data/lib/config/backup/template-skeleton.js +93 -0
- data/lib/config/config.components.aliases.yml +3 -0
- data/lib/config/config.components.yml +55 -0
- data/lib/config/config.configurable.yml +2 -0
- data/lib/config/config.languages.yml +5 -0
- data/lib/config/config.yml +4 -0
- data/lib/ngi.rb +4 -7
- data/lib/ngi/configure.rb +236 -75
- data/lib/ngi/delegate.rb +3 -8
- data/lib/ngi/generator.rb +74 -46
- data/lib/ngi/parser.rb +97 -0
- data/lib/{templates → ngi/templates}/markup/html/default/index.html +0 -0
- data/lib/{templates → ngi/templates}/script/coffee/default/basic.js +0 -0
- data/lib/{templates → ngi/templates}/script/coffee/default/config.js +0 -0
- data/lib/{templates → ngi/templates}/script/coffee/default/constant.js +0 -0
- data/lib/{templates → ngi/templates}/script/coffee/default/module.js +0 -0
- data/lib/{templates → ngi/templates}/script/es5/default/basic.js +0 -0
- data/lib/{templates → ngi/templates}/script/es5/default/config.js +0 -0
- data/lib/{templates → ngi/templates}/script/es5/default/constant.js +0 -0
- data/lib/{templates → ngi/templates}/script/es5/default/module.js +0 -0
- data/lib/ngi/utils/command_parser.rb +90 -75
- data/lib/ngi/utils/current_dir.rb +20 -0
- data/lib/ngi/utils/jser.rb +45 -32
- data/lib/ngi/utils/user_input.rb +22 -0
- data/lib/ngi/utils/utils.rb +4 -21
- data/lib/ngi/version.rb +1 -1
- data/ngi.gemspec +2 -1
- data/test/config/config.components.aliases.yml +3 -0
- data/test/config/config.components.yml +55 -0
- data/test/config/config.configurable.yml +2 -0
- data/test/config/config.languages.yml +5 -0
- data/test/config/config.yml +4 -0
- data/test/finished_files/script/coffee/directive.finished.coffee +20 -0
- data/test/finished_files/script/es5/controller.finished.js +13 -0
- data/test/finished_files/script/es5/directive.finished.js +25 -0
- data/test/finished_files/script/es5/filter.finished.js +18 -0
- data/test/templates/markup/html/default/index.html +11 -0
- data/test/templates/script/coffee/default/basic.js +23 -0
- data/test/templates/script/coffee/default/config.js +12 -0
- data/test/templates/script/coffee/default/constant.js +7 -0
- data/test/templates/script/coffee/default/module.js +7 -0
- data/test/templates/script/es5/default/basic.js +29 -0
- data/test/templates/script/es5/default/config.js +13 -0
- data/test/templates/script/es5/default/constant.js +7 -0
- data/test/templates/script/es5/default/module.js +7 -0
- data/test/test_ngi.rb +274 -56
- data/test/testing_utils.rb +26 -0
- metadata +78 -36
- data/lib/dep/json.rb +0 -62
- data/lib/dep/json/add/bigdecimal.rb +0 -28
- data/lib/dep/json/add/complex.rb +0 -28
- data/lib/dep/json/add/core.rb +0 -11
- data/lib/dep/json/add/date.rb +0 -34
- data/lib/dep/json/add/date_time.rb +0 -50
- data/lib/dep/json/add/exception.rb +0 -31
- data/lib/dep/json/add/ostruct.rb +0 -31
- data/lib/dep/json/add/range.rb +0 -29
- data/lib/dep/json/add/rational.rb +0 -27
- data/lib/dep/json/add/regexp.rb +0 -30
- data/lib/dep/json/add/struct.rb +0 -30
- data/lib/dep/json/add/symbol.rb +0 -25
- data/lib/dep/json/add/time.rb +0 -38
- data/lib/dep/json/common.rb +0 -484
- data/lib/dep/json/ext.rb +0 -21
- data/lib/dep/json/ext/.keep +0 -0
- data/lib/dep/json/generic_object.rb +0 -70
- data/lib/dep/json/pure.rb +0 -21
- data/lib/dep/json/pure/generator.rb +0 -522
- data/lib/dep/json/pure/parser.rb +0 -359
- data/lib/dep/json/version.rb +0 -8
- data/test/sup/test.config.json +0 -100
data/test/test_ngi.rb
CHANGED
@@ -1,91 +1,309 @@
|
|
1
1
|
require_relative '../lib/ngi'
|
2
|
+
# require_relative 'testing_utils'
|
2
3
|
require 'minitest/autorun'
|
3
|
-
require '
|
4
|
+
require 'memfs'
|
5
|
+
|
6
|
+
# Overwrite output so that we don't see it when testing
|
7
|
+
def puts(_)
|
8
|
+
nil
|
9
|
+
end
|
10
|
+
|
11
|
+
def print(_)
|
12
|
+
nil
|
13
|
+
end
|
4
14
|
|
5
15
|
describe Ngi do
|
6
|
-
|
16
|
+
before do
|
17
|
+
############ SETUP ##############
|
18
|
+
@dir = File.dirname(__FILE__)
|
7
19
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
20
|
+
@components_file = "#{@dir}/config/config.components.yml"
|
21
|
+
@components_hash = Ngi::Delegate::Configure
|
22
|
+
.new(@components_file)
|
23
|
+
.to_ruby(from: 'yaml')
|
24
|
+
@components = @components_hash.collect { |c| c['name'] }
|
25
|
+
|
26
|
+
@config_file = "#{@dir}/config/config.yml"
|
27
|
+
@config_hash = Ngi::Delegate::Configure
|
28
|
+
.new(@config_file).to_ruby(from: 'yaml')
|
13
29
|
|
14
|
-
|
15
|
-
|
16
|
-
|
30
|
+
@languages_file = "#{@dir}/config/config.languages.yml"
|
31
|
+
@languages_hash = Ngi::Delegate::Configure
|
32
|
+
.new(@languages_file).to_ruby(from: 'yaml')
|
33
|
+
|
34
|
+
@configurable_file = "#{@dir}/config/config.configurable.yml"
|
35
|
+
@configurable = Ngi::Delegate::Configure
|
36
|
+
.new(@configurable_file).to_ruby(from: 'yaml')
|
37
|
+
|
38
|
+
module Utils
|
39
|
+
class CommandParser
|
40
|
+
# Redefine the output so we can test it
|
41
|
+
class Output
|
42
|
+
def to_s
|
43
|
+
@str
|
44
|
+
end
|
45
|
+
end
|
17
46
|
end
|
18
47
|
end
|
19
48
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
49
|
+
# Open this up to redefine some stuff
|
50
|
+
module Ngi
|
51
|
+
# Be able to mock $stdin
|
52
|
+
class MockedInput
|
53
|
+
@@input = []
|
54
|
+
|
55
|
+
def self.input=(input)
|
56
|
+
@@input = input
|
57
|
+
end
|
24
58
|
|
25
|
-
|
59
|
+
def self.input
|
60
|
+
return @@input
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
class GeneratorMockedInput < MockedInput; end
|
65
|
+
class ConfigureMockedInput < MockedInput; end
|
66
|
+
|
67
|
+
class Delegate
|
68
|
+
# Redefine some methods/classes
|
69
|
+
class Generator
|
70
|
+
Utils::CurrentDir.dir = @dir
|
71
|
+
|
72
|
+
# Redefine the $stdin in Generator
|
73
|
+
class AcceptInput
|
74
|
+
def self.str(type)
|
75
|
+
case type
|
76
|
+
when :condensed
|
77
|
+
GeneratorMockedInput.input.shift
|
78
|
+
when :comma_delimited_to_array
|
79
|
+
GeneratorMockedInput.input.shift
|
80
|
+
when :downcased
|
81
|
+
GeneratorMockedInput.input.shift
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Redefine
|
88
|
+
class Configure
|
89
|
+
Utils::CurrentDir.dir = @dir
|
90
|
+
|
91
|
+
# Redefine the $stdin in Generator
|
92
|
+
class AcceptInput
|
93
|
+
def self.str(type)
|
94
|
+
case type
|
95
|
+
when :stripped
|
96
|
+
ConfigureMockedInput.input.shift
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
26
101
|
end
|
27
102
|
end
|
28
103
|
|
29
|
-
#
|
30
|
-
|
104
|
+
# Expected file output
|
105
|
+
@finished_files = {
|
106
|
+
'directive' => {
|
107
|
+
'es5' => IO.read("#{@dir}/finished_files/script/es5/directive.finished.js"),
|
108
|
+
'coffee' => IO.read("#{@dir}/finished_files/script/coffee/directive.finished.coffee")
|
109
|
+
},
|
110
|
+
'controller' => {
|
111
|
+
'es5' => IO.read("#{@dir}/finished_files/script/es5/controller.finished.js")
|
112
|
+
},
|
113
|
+
'filter' => {
|
114
|
+
'es5' => IO.read("#{@dir}/finished_files/script/es5/filter.finished.js")
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
@generator_mocked_input = {
|
119
|
+
'directive' => [
|
120
|
+
'test.directive.js',
|
121
|
+
'myModule',
|
122
|
+
'myDirective',
|
123
|
+
%w(someService anotherService)
|
124
|
+
],
|
125
|
+
'controller' => [
|
126
|
+
'test.controller.js',
|
127
|
+
'myModule',
|
128
|
+
'MyController',
|
129
|
+
%w(someService anotherService)
|
130
|
+
],
|
131
|
+
'filter' => [
|
132
|
+
'test.filter.js',
|
133
|
+
'myModule',
|
134
|
+
'someFilter',
|
135
|
+
%w(aService andAnotherOne)
|
136
|
+
]
|
137
|
+
}
|
138
|
+
|
139
|
+
# Now we can activate MemFs so that we don't
|
140
|
+
# actually create any files in the file system
|
141
|
+
MemFs.activate!
|
142
|
+
|
143
|
+
# Make this directory in memory using MemFs (won't
|
144
|
+
# actually create this directory in the file system)
|
145
|
+
FileUtils.mkdir_p('templates/script/es5/default')
|
146
|
+
FileUtils.mkdir_p('templates/script/coffee/default')
|
147
|
+
|
148
|
+
# Make the default template in memory from the actual one using IO.read
|
149
|
+
# since MemFs doesn't use IO (it only uses File)
|
150
|
+
# This will just save me from having to write the whole template
|
151
|
+
# out as a string inside a variable right here...
|
152
|
+
dir_str = 'templates/script/es5/default/basic.js'
|
153
|
+
File.open(dir_str, 'w') do |f|
|
154
|
+
f.write(IO.read("#{@dir}/templates/script/es5/default/basic.js"))
|
155
|
+
f.close
|
156
|
+
end
|
157
|
+
|
158
|
+
dir_str = 'templates/script/coffee/default/basic.js'
|
159
|
+
File.open(dir_str, 'w') do |f|
|
160
|
+
f.write(IO.read("#{@dir}/templates/script/coffee/default/basic.js"))
|
161
|
+
f.close
|
162
|
+
end
|
31
163
|
|
32
|
-
|
33
|
-
|
164
|
+
def check_generated_content(type, language, file, comparison)
|
165
|
+
# Now we're going to "create" a new directive using the default template
|
166
|
+
if Ngi::GeneratorMockedInput.input.size == 0
|
167
|
+
Ngi::GeneratorMockedInput.input = @generator_mocked_input[type].dup
|
168
|
+
end
|
34
169
|
|
35
|
-
|
36
|
-
|
37
|
-
|
170
|
+
type = type
|
171
|
+
component = Ngi::Parser::ComponentChooser
|
172
|
+
.new(
|
173
|
+
type: type,
|
174
|
+
components_hash: @components_hash,
|
175
|
+
config_hash: @config_hash
|
176
|
+
)
|
177
|
+
.component
|
38
178
|
|
39
|
-
|
40
|
-
|
179
|
+
Ngi::Delegate::Generator.run(
|
180
|
+
type: type,
|
181
|
+
config: @config_hash,
|
182
|
+
component: component
|
183
|
+
)
|
41
184
|
|
42
|
-
|
43
|
-
|
44
|
-
|
185
|
+
###### ASSERTIONS ########
|
186
|
+
# It should've created the directive
|
187
|
+
File.exist?(file).must_equal true
|
45
188
|
|
46
|
-
|
189
|
+
# The directive should match the expected output,
|
190
|
+
# which is shown in @finished_file
|
191
|
+
File.open(file, 'r') do |f|
|
192
|
+
content = f.read.to_s.gsub(/\s/, '')
|
193
|
+
assert content == comparison
|
194
|
+
f.close
|
195
|
+
end
|
196
|
+
##########################
|
197
|
+
end
|
198
|
+
#########################################################
|
199
|
+
end
|
47
200
|
|
48
|
-
|
49
|
-
@config.file = regular_file
|
50
|
-
attempt_to_generate_json = @config.to_json
|
201
|
+
after { MemFs.deactivate! }
|
51
202
|
|
52
|
-
|
203
|
+
describe 'Parser' do
|
204
|
+
describe '-v' do
|
205
|
+
it 'should show the version of ngi' do
|
206
|
+
assert Parser.parse(['-v']) == "ngi #{Ngi::VERSION}"
|
53
207
|
end
|
54
208
|
end
|
209
|
+
end
|
55
210
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
211
|
+
describe 'Generator' do
|
212
|
+
describe 'Default Templates' do
|
213
|
+
it 'should make a directive' do
|
214
|
+
type = 'directive'
|
215
|
+
language = 'es5'
|
216
|
+
check_generated_content(
|
217
|
+
type, language,
|
218
|
+
'test.directive.js', @finished_files[type][language].gsub(/\s/, '')
|
219
|
+
)
|
61
220
|
end
|
62
221
|
|
63
|
-
|
64
|
-
|
65
|
-
|
222
|
+
it 'should make a controller' do
|
223
|
+
type = 'controller'
|
224
|
+
language = 'es5'
|
225
|
+
check_generated_content(
|
226
|
+
type, language, 'test.controller.js',
|
227
|
+
@finished_files[type][language].gsub(/\s/, '')
|
228
|
+
)
|
229
|
+
end
|
66
230
|
|
67
|
-
|
68
|
-
|
231
|
+
it 'should make a filter' do
|
232
|
+
type = 'filter'
|
233
|
+
language = 'es5'
|
234
|
+
check_generated_content(
|
235
|
+
type, language,
|
236
|
+
'test.filter.js', @finished_files[type][language].gsub(/\s/, '')
|
237
|
+
)
|
69
238
|
end
|
70
239
|
end
|
71
240
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
241
|
+
it 'should use the custom template if one was set for that language (and it should use the default for all other languages not set)' do
|
242
|
+
# First we'll create our custom template in memory
|
243
|
+
# using MemFs to mock it
|
244
|
+
File.open('test.template.js', 'w') do |f|
|
245
|
+
f.write('hello {{name}}')
|
246
|
+
f.close
|
78
247
|
end
|
79
248
|
|
80
|
-
|
81
|
-
|
82
|
-
@questioner.file.must_equal @config.from_json
|
83
|
-
end
|
249
|
+
# Make this directory in memory with MemFs
|
250
|
+
FileUtils.mkdir_p('test/config')
|
84
251
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
252
|
+
Ngi::ConfigureMockedInput
|
253
|
+
.input = %w(templates directive test.template.js es5)
|
254
|
+
|
255
|
+
# We're going to configure ngi,
|
256
|
+
# according to CONFIGURE_MOCKED_INPUT
|
257
|
+
# It'll basically create a custom template
|
258
|
+
# for use with es5
|
259
|
+
Ngi::Delegate::Configure.run(
|
260
|
+
write: true,
|
261
|
+
to: 'yaml',
|
262
|
+
destination: @config_file,
|
263
|
+
languages: @languages_hash,
|
264
|
+
config: @config_hash,
|
265
|
+
components: @components,
|
266
|
+
components_hash: @components_hash,
|
267
|
+
configurable: @configurable
|
268
|
+
)
|
269
|
+
|
270
|
+
check_generated_content(
|
271
|
+
'directive', 'es5',
|
272
|
+
'test.directive.js', 'hellomyDirective'
|
273
|
+
)
|
274
|
+
|
275
|
+
# Change the language to coffee so we can
|
276
|
+
# make sure that it will use the default
|
277
|
+
# coffee template, since only the es5
|
278
|
+
# custom template was set
|
279
|
+
Ngi::ConfigureMockedInput
|
280
|
+
.input = %w(language script coffee)
|
281
|
+
|
282
|
+
Ngi::Delegate::Configure.run(
|
283
|
+
write: true,
|
284
|
+
to: 'yaml',
|
285
|
+
destination: @config_file,
|
286
|
+
languages: @languages_hash,
|
287
|
+
config: @config_hash,
|
288
|
+
components: @components,
|
289
|
+
components_hash: @components_hash,
|
290
|
+
configurable: @configurable
|
291
|
+
)
|
292
|
+
|
293
|
+
type = 'directive'
|
294
|
+
language = 'coffee'
|
295
|
+
Ngi::GeneratorMockedInput
|
296
|
+
.input = [
|
297
|
+
'second.test.directive.js',
|
298
|
+
'myModule',
|
299
|
+
'myDirective',
|
300
|
+
%w(someService anotherService)
|
301
|
+
]
|
302
|
+
check_generated_content(
|
303
|
+
type, language,
|
304
|
+
'second.test.directive.js',
|
305
|
+
@finished_files[type][language].gsub(/\s/, '')
|
306
|
+
)
|
89
307
|
end
|
90
308
|
end
|
91
309
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Some testing utilities
|
2
|
+
module TestingUtils
|
3
|
+
# Turn output on or off
|
4
|
+
class ToggleOutput
|
5
|
+
def initialize(bool)
|
6
|
+
case bool
|
7
|
+
when true
|
8
|
+
def puts(o)
|
9
|
+
super(o)
|
10
|
+
end
|
11
|
+
|
12
|
+
def print(o)
|
13
|
+
super(o)
|
14
|
+
end
|
15
|
+
when false
|
16
|
+
def puts(_)
|
17
|
+
nil
|
18
|
+
end
|
19
|
+
|
20
|
+
def print(_)
|
21
|
+
nil
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ngi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Beam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: memfs
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
description: This tool can make (for example) an AngularJS controller template file
|
56
70
|
for you (.js), so that whenever you want to make a new controller for your app,
|
57
71
|
you don't have to type the same starting code over and over again (by the way, this
|
@@ -71,49 +85,59 @@ files:
|
|
71
85
|
- LICENSE.txt
|
72
86
|
- Rakefile
|
73
87
|
- bin/ngi
|
74
|
-
- lib/config/angular_init.config.json
|
75
|
-
- lib/
|
76
|
-
- lib/
|
77
|
-
- lib/
|
78
|
-
- lib/
|
79
|
-
- lib/
|
80
|
-
- lib/
|
81
|
-
- lib/
|
82
|
-
- lib/
|
83
|
-
- lib/
|
84
|
-
- lib/
|
85
|
-
- lib/
|
86
|
-
- lib/dep/json/add/struct.rb
|
87
|
-
- lib/dep/json/add/symbol.rb
|
88
|
-
- lib/dep/json/add/time.rb
|
89
|
-
- lib/dep/json/common.rb
|
90
|
-
- lib/dep/json/ext.rb
|
91
|
-
- lib/dep/json/ext/.keep
|
92
|
-
- lib/dep/json/generic_object.rb
|
93
|
-
- lib/dep/json/pure.rb
|
94
|
-
- lib/dep/json/pure/generator.rb
|
95
|
-
- lib/dep/json/pure/parser.rb
|
96
|
-
- lib/dep/json/version.rb
|
88
|
+
- lib/config/backup/angular_init.config.json
|
89
|
+
- lib/config/backup/config.components.aliases.yml
|
90
|
+
- lib/config/backup/config.components.yml
|
91
|
+
- lib/config/backup/config.configurable.yml
|
92
|
+
- lib/config/backup/config.languages.yml
|
93
|
+
- lib/config/backup/config.yml
|
94
|
+
- lib/config/backup/template-skeleton.js
|
95
|
+
- lib/config/config.components.aliases.yml
|
96
|
+
- lib/config/config.components.yml
|
97
|
+
- lib/config/config.configurable.yml
|
98
|
+
- lib/config/config.languages.yml
|
99
|
+
- lib/config/config.yml
|
97
100
|
- lib/ngi.rb
|
98
101
|
- lib/ngi/configure.rb
|
99
102
|
- lib/ngi/delegate.rb
|
100
103
|
- lib/ngi/generator.rb
|
104
|
+
- lib/ngi/parser.rb
|
105
|
+
- lib/ngi/templates/markup/html/default/index.html
|
106
|
+
- lib/ngi/templates/script/coffee/default/basic.js
|
107
|
+
- lib/ngi/templates/script/coffee/default/config.js
|
108
|
+
- lib/ngi/templates/script/coffee/default/constant.js
|
109
|
+
- lib/ngi/templates/script/coffee/default/module.js
|
110
|
+
- lib/ngi/templates/script/es5/default/basic.js
|
111
|
+
- lib/ngi/templates/script/es5/default/config.js
|
112
|
+
- lib/ngi/templates/script/es5/default/constant.js
|
113
|
+
- lib/ngi/templates/script/es5/default/module.js
|
101
114
|
- lib/ngi/utils/command_parser.rb
|
115
|
+
- lib/ngi/utils/current_dir.rb
|
102
116
|
- lib/ngi/utils/jser.rb
|
117
|
+
- lib/ngi/utils/user_input.rb
|
103
118
|
- lib/ngi/utils/utils.rb
|
104
119
|
- lib/ngi/version.rb
|
105
|
-
- lib/templates/markup/html/default/index.html
|
106
|
-
- lib/templates/script/coffee/default/basic.js
|
107
|
-
- lib/templates/script/coffee/default/config.js
|
108
|
-
- lib/templates/script/coffee/default/constant.js
|
109
|
-
- lib/templates/script/coffee/default/module.js
|
110
|
-
- lib/templates/script/es5/default/basic.js
|
111
|
-
- lib/templates/script/es5/default/config.js
|
112
|
-
- lib/templates/script/es5/default/constant.js
|
113
|
-
- lib/templates/script/es5/default/module.js
|
114
120
|
- ngi.gemspec
|
115
|
-
- test/
|
121
|
+
- test/config/config.components.aliases.yml
|
122
|
+
- test/config/config.components.yml
|
123
|
+
- test/config/config.configurable.yml
|
124
|
+
- test/config/config.languages.yml
|
125
|
+
- test/config/config.yml
|
126
|
+
- test/finished_files/script/coffee/directive.finished.coffee
|
127
|
+
- test/finished_files/script/es5/controller.finished.js
|
128
|
+
- test/finished_files/script/es5/directive.finished.js
|
129
|
+
- test/finished_files/script/es5/filter.finished.js
|
130
|
+
- test/templates/markup/html/default/index.html
|
131
|
+
- test/templates/script/coffee/default/basic.js
|
132
|
+
- test/templates/script/coffee/default/config.js
|
133
|
+
- test/templates/script/coffee/default/constant.js
|
134
|
+
- test/templates/script/coffee/default/module.js
|
135
|
+
- test/templates/script/es5/default/basic.js
|
136
|
+
- test/templates/script/es5/default/config.js
|
137
|
+
- test/templates/script/es5/default/constant.js
|
138
|
+
- test/templates/script/es5/default/module.js
|
116
139
|
- test/test_ngi.rb
|
140
|
+
- test/testing_utils.rb
|
117
141
|
homepage: https://github.com/joshbeam/angular_init
|
118
142
|
licenses:
|
119
143
|
- MIT
|
@@ -140,5 +164,23 @@ specification_version: 4
|
|
140
164
|
summary: Speed up AngularJS development by creating templates for all your components
|
141
165
|
from the command line.
|
142
166
|
test_files:
|
143
|
-
- test/
|
167
|
+
- test/config/config.components.aliases.yml
|
168
|
+
- test/config/config.components.yml
|
169
|
+
- test/config/config.configurable.yml
|
170
|
+
- test/config/config.languages.yml
|
171
|
+
- test/config/config.yml
|
172
|
+
- test/finished_files/script/coffee/directive.finished.coffee
|
173
|
+
- test/finished_files/script/es5/controller.finished.js
|
174
|
+
- test/finished_files/script/es5/directive.finished.js
|
175
|
+
- test/finished_files/script/es5/filter.finished.js
|
176
|
+
- test/templates/markup/html/default/index.html
|
177
|
+
- test/templates/script/coffee/default/basic.js
|
178
|
+
- test/templates/script/coffee/default/config.js
|
179
|
+
- test/templates/script/coffee/default/constant.js
|
180
|
+
- test/templates/script/coffee/default/module.js
|
181
|
+
- test/templates/script/es5/default/basic.js
|
182
|
+
- test/templates/script/es5/default/config.js
|
183
|
+
- test/templates/script/es5/default/constant.js
|
184
|
+
- test/templates/script/es5/default/module.js
|
144
185
|
- test/test_ngi.rb
|
186
|
+
- test/testing_utils.rb
|