diff options
| author | Misko Hevery | 2012-02-09 11:12:39 -0800 |
|---|---|---|
| committer | Misko Hevery | 2012-02-21 22:45:58 -0800 |
| commit | 292a5dae072ecd4edf3f01def71dd83b88dfe2d4 (patch) | |
| tree | 1b41bb3b9a5ddb616b6899276eb02c290df7c0f0 | |
| parent | 6e635012fb30905e5fe659a024864e275f1c14b5 (diff) | |
| download | angular.js-292a5dae072ecd4edf3f01def71dd83b88dfe2d4.tar.bz2 | |
chore(slim-jim) add configuration
| -rw-r--r-- | Rakefile | 2 | ||||
| -rw-r--r-- | angularFiles.js | 19 |
2 files changed, 20 insertions, 1 deletions
@@ -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' diff --git a/angularFiles.js b/angularFiles.js index 1070299f..af859471 100644 --- a/angularFiles.js +++ b/angularFiles.js @@ -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; +} |
