mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
chore(slim-jim) add configuration
This commit is contained in:
parent
6e635012fb
commit
292a5dae07
2 changed files with 20 additions and 1 deletions
2
Rakefile
2
Rakefile
|
|
@ -2,7 +2,7 @@ require 'yaml'
|
|||
include FileUtils
|
||||
|
||||
content = File.open('angularFiles.js', 'r') {|f| f.read }
|
||||
files = eval(content.gsub(/angularFiles = /, '').gsub(/:/, '=>'));
|
||||
files = eval(content.gsub(/\};(\s|\S)*/, '}').gsub(/angularFiles = /, '').gsub(/:/, '=>'));
|
||||
|
||||
BUILD_DIR = 'build'
|
||||
|
||||
|
|
|
|||
19
angularFiles.js
vendored
19
angularFiles.js
vendored
|
|
@ -154,3 +154,22 @@ angularFiles = {
|
|||
'test/jquery_remove.js'
|
||||
]
|
||||
};
|
||||
|
||||
// Execute only in slim-jim
|
||||
if (typeof JASMINE_ADAPTER !== 'undefined') {
|
||||
// SlimJim config
|
||||
files = [JASMINE_ADAPTER];
|
||||
angularFiles.jstd.forEach(function(pattern) {
|
||||
// replace angular source
|
||||
if (pattern === '@angularSrc') files = files.concat(angularFiles.angularSrc);
|
||||
// ignore jstd files
|
||||
else if (!/jstd-(scenario-)?adapter/.test(pattern)) files.push(pattern);
|
||||
});
|
||||
|
||||
exclude = angularFiles.jstdExclude;
|
||||
|
||||
autoWatch = true;
|
||||
autoWatchInterval = 1;
|
||||
logLevel = LOG_ERROR;
|
||||
logColors = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue