js-sourcemap 0.0.9 → 0.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.
- checksums.yaml +4 -4
- data/lib/js-sourcemap/api.rb +2 -2
- data/lib/js-sourcemap/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: 321a4cc1913c5224dfea3b2091019f03a5323490
|
4
|
+
data.tar.gz: 6bf584bf2480c0b942cadf03c8a31e6ed82e00db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4359fe757934115f3fb05ccde3cd88054e9622b95dabfed9bd1af019b41fff99baf8a19f5a9c9f12b5bad2f050dc7536a66cfe6da668e200045366ba0442b4a5
|
7
|
+
data.tar.gz: 987b6e4aeffb47752daba81e848cd37fd6820774de850242c313d3cce6bb58da3efcda732e4b419b31a3a4c303e2eabea1ef8e9fd6e989a6fb6dc73884365a05
|
data/lib/js-sourcemap/api.rb
CHANGED
@@ -43,7 +43,7 @@ module JsSourcemap
|
|
43
43
|
if mapping_creation_required?(file,smo)
|
44
44
|
copy_source(smo)
|
45
45
|
#:source_url => "SourceUrl in minified", :source_map_url => "SourceMappingUrl in minified", :source_filename => "original_file_name_in_map", :source_root=> "lol4", :minified_file_path => "lol5", :input_source_map => "lol6"
|
46
|
-
uglified, source_map = Uglifier.new(:source_map_url => smo["source_map_file_absolute_path"], :source_filename => smo["original_file_absolute_path"]).compile_with_map(File.read(file))
|
46
|
+
uglified, source_map = Uglifier.new(:source_map_url => smo["source_map_file_absolute_path"], :source_filename => smo["original_file_absolute_path"], :mangle =>{:toplevel=>true,:sort=>true,:eval=>true}, :output => {:comments => :copyright}).compile_with_map(File.read(file))
|
47
47
|
create_min_map(smo,uglified,source_map)
|
48
48
|
end
|
49
49
|
end
|
@@ -73,7 +73,7 @@ module JsSourcemap
|
|
73
73
|
|
74
74
|
def create_js_gz
|
75
75
|
puts "=> gziping js files"
|
76
|
-
%x(for f in `find "#{env.sources_dir}" -name '*.js'`; do gzip -c -9 "$f" > "$f".gz; done)
|
76
|
+
%x(for f in `find "#{env.sources_dir}" -follow -name '*.js'`; do gzip -c -9 "$f" > "$f".gz; done)
|
77
77
|
# %x(gzip -c -9 "#{gz_file}" > "#{gzname(gz_file)}") if compress?(gz_file)
|
78
78
|
end
|
79
79
|
|
data/lib/js-sourcemap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: js-sourcemap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jayprakash
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uglifier
|