rugular 0.9.6 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rugular/tasks/build.rb +1 -1
- data/lib/rugular/templates/new/karma.conf.js +14 -41
- data/lib/rugular/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 675a31e66c6775ffc7582d027af3ef3b438678ab
|
4
|
+
data.tar.gz: b7b26ab14bb55569b254d96a129624cd41bc4436
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 798f82d96a6ac463f53dcb755b12ae4aacecc3385c4e160c89805f23523a4d391c94bec697d0444bc4b5ecb0d123e5e1c2dd829a765154dc06fc126f5dd35f04
|
7
|
+
data.tar.gz: 5f671b237ec9d7ae8c48d80d014aa9efb71ed9d589ee426d129266d8c0398304dd832456db01972a1bc0439f6835350b9a4173935572442fae4919b217f94c8a
|
data/lib/rugular/tasks/build.rb
CHANGED
@@ -11,7 +11,7 @@ module Rugular
|
|
11
11
|
desc('Creates a minified, compressed version in the dist folder')
|
12
12
|
|
13
13
|
def check_for_rugular_directory
|
14
|
-
Rugular::AppChecker.check_for_rugular_directory(
|
14
|
+
::Rugular::AppChecker.check_for_rugular_directory(
|
15
15
|
task_name: name,
|
16
16
|
root_directory: new.destination_root
|
17
17
|
)
|
@@ -1,44 +1,4 @@
|
|
1
|
-
var yaml = require('js-yaml')
|
2
|
-
var fs = require('fs')
|
3
|
-
var _ = require('lodash')
|
4
|
-
|
5
1
|
module.exports = function (config) {
|
6
|
-
loadBowerComponentYamlAndSrcFiles = function() {
|
7
|
-
this.bowerComponentFile = fs.readFileSync(
|
8
|
-
'bower_components.yaml',
|
9
|
-
'utf8',
|
10
|
-
function (err, data) {
|
11
|
-
console.log(data)
|
12
|
-
console.log(err)
|
13
|
-
return data
|
14
|
-
});
|
15
|
-
this.yaml = yaml.load(this.bowerComponentFile)
|
16
|
-
|
17
|
-
this.javascriptFiles = this.yaml.js.concat(this.yaml.test)
|
18
|
-
|
19
|
-
this.addBowerComponentDirectory = function (javascriptFile) {
|
20
|
-
return './bower_components/' + javascriptFile;
|
21
|
-
};
|
22
|
-
|
23
|
-
this.bowerComponentFiles = _.map(
|
24
|
-
javascriptFiles,
|
25
|
-
addBowerComponentDirectory
|
26
|
-
);
|
27
|
-
|
28
|
-
this.applicationFiles = [
|
29
|
-
'src/**/*.module.coffee',
|
30
|
-
'src/**/*.routes.coffee',
|
31
|
-
'src/**/*.factory.coffee',
|
32
|
-
'src/**/*.controller.coffee',
|
33
|
-
'src/**/*.directive.coffee',
|
34
|
-
'src/**/*.spec.coffee'
|
35
|
-
]
|
36
|
-
|
37
|
-
this.karmaFiles = this.bowerComponentFiles.concat(this.applicationFiles)
|
38
|
-
|
39
|
-
return this.karmaFiles
|
40
|
-
}
|
41
|
-
|
42
2
|
config.set({
|
43
3
|
|
44
4
|
// base path that will be used to resolve all patterns (eg. files, exclude)
|
@@ -63,7 +23,20 @@ module.exports = function (config) {
|
|
63
23
|
},
|
64
24
|
|
65
25
|
// list of files / patterns to load in the browser
|
66
|
-
files:
|
26
|
+
files: [
|
27
|
+
'./test/*.js',
|
28
|
+
|
29
|
+
'./bower_components/angular/angular.js',
|
30
|
+
'./bower_components/angular-ui-router/release/angular-ui-router.js',
|
31
|
+
'./bower_components/angular-mocks/angular-mocks.js',
|
32
|
+
|
33
|
+
'src/**/*.module.coffee',
|
34
|
+
'src/**/*.routes.coffee',
|
35
|
+
'src/**/*.factory.coffee',
|
36
|
+
'src/**/*.controller.coffee',
|
37
|
+
'src/**/*.directive.coffee',
|
38
|
+
'src/**/*.spec.coffee'
|
39
|
+
],
|
67
40
|
|
68
41
|
// web server port
|
69
42
|
port: 9876,
|
data/lib/rugular/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rugular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Shook
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|