jake 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +0,0 @@
1
- /** Alternate header 0.5.0-min **/
2
-
3
- (function(object){var Bar={_0:object}})();
@@ -1,5 +0,0 @@
1
- /** Alternate header 0.5.0-src **/
2
-
3
- (function(object) {
4
- var Bar = {_another: object};
5
- })();
@@ -1,38 +0,0 @@
1
- ---
2
- source_directory: src
3
- build_directory: output
4
- builds:
5
- min:
6
- shrink_vars: true
7
- private: true
8
- src:
9
- packer: false
10
- suffix: false
11
- header: head
12
- packages:
13
- basic: basic
14
- ext:
15
- extends: basic
16
- packer:
17
- private: false
18
- files:
19
- - basic-ext
20
- meta:
21
- provides:
22
- - Basic
23
- requires:
24
- - Foo
25
- sub/dir/foo:
26
- - foo/foo
27
- sub/path/bar:
28
- directory: foo
29
- header: ../head2
30
- packer:
31
- shrink_vars: false
32
- files:
33
- - bar
34
- bundles:
35
- combo/box:
36
- - sub/dir/foo
37
- - ext
38
-
@@ -1,8 +0,0 @@
1
- JS.Packages(function() { with(this) {
2
- <% DEPS.each do |path, meta| %>
3
- file('<%= path %>')
4
- .provides(<%= (meta[:provides] || []).map { |p| p.inspect } * ', ' %>)
5
- .requires(<%= (meta[:requires] || []).map { |p| p.inspect } * ', ' %>);
6
- <% end %>
7
- }});
8
-
@@ -1,2 +0,0 @@
1
- Basic.Ext = "<%= build.upcase %>";
2
-
@@ -1,9 +0,0 @@
1
- Basic = {
2
- VERSION: "<%= version %>-<%= build %>",
3
-
4
- function(something) {
5
- var myVar = 4;
6
- return myVar + this._foo + something;
7
- }
8
- };
9
-
@@ -1,4 +0,0 @@
1
- (function(object) {
2
- var Bar = {_another: object};
3
- })();
4
-
@@ -1,10 +0,0 @@
1
- Foo = (function(my, vars) {
2
- var another = true;
3
-
4
- return {
5
- _priv: null,
6
- field: another,
7
- global: foo
8
- };
9
- })(window, something);
10
-
@@ -1,6 +0,0 @@
1
- /**
2
- * Jake test files should all include this
3
- * even if they have been minified.
4
- * <%= version %>-<%= build %>
5
- **/
6
-
@@ -1,7 +0,0 @@
1
-
2
-
3
-
4
- /** Alternate header <%= version %>-<%= build %> **/
5
-
6
-
7
-
@@ -1,29 +0,0 @@
1
- require "test/unit"
2
- require "jake"
3
- require "fileutils"
4
- require "find"
5
-
6
- class TestJake < Test::Unit::TestCase
7
- DIR = File.dirname(__FILE__)
8
-
9
- def setup
10
- FileUtils.rm_rf(File.join(DIR, 'output'))
11
- end
12
-
13
- def test_build
14
- Jake.clear_hooks!
15
- Jake.build!(DIR)
16
- expected = File.join(DIR, 'expected')
17
- actual = File.join(DIR, 'output')
18
- Find.find(expected) do |path|
19
- next unless File.file?(path)
20
- actual_path = actual + path.gsub(expected, '')
21
-
22
- flunk "File #{actual_path} is missing" unless File.file?(actual_path)
23
-
24
- assert_equal File.read(path).strip, File.read(actual_path),
25
- "File #{actual_path} does not match #{path}"
26
- end
27
- end
28
- end
29
-