spark_engine 1.2.6 → 1.2.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9229cb5dcff52289c3f6bb81b01a7a426ce4b66664aedac8202d7317a086088d
4
- data.tar.gz: cd02ea0c521f138c7807763f3869a95b0f6e8b8b8533624369f3ae8e8bf3bc48
3
+ metadata.gz: f7557689cf486b1692155cd6263c3c11ab70ff3c3a3e0a008a08f5969bebdf34
4
+ data.tar.gz: 93088a86f2abe6b96841070cc3645c8858ba5ba8a940a697e2bb312db1ce3726
5
5
  SHA512:
6
- metadata.gz: 841ddc702a8534628af9b989832d32f63187ff00f62caa72244dc9cfcd6c660d726bdcabfdd7c6884485b7d6001d744c29fa8213c7a30b5099b85d1e014abf26
7
- data.tar.gz: 5b3e3e07d15851a65c5c8ff5856b6706bc1b9d1d07a9e5aa993cea9c02ce66b8aebbeaeb71d70cd33b5eb66f22c8e4d7b41af8a4cdea89cc603da01d08bc83e1
6
+ metadata.gz: 1951941c433f9ee1efdcda3c316f649d98e0e2c4b69cd85db7bc47e94f8d4f8d9b0c76afa2fa2d2f348c3640a8ccff0862b33df8988f0f5cb199c39bde011f85
7
+ data.tar.gz: 26ba3d5d75644c35b9ee9732a8bbbba9c09045e304b22295803e8a9874dfb0d4c80ffe56acdcabc8c86c0c95fb2ec8c61870334b7cd6c54cfc38f2103b19d113
@@ -7,9 +7,10 @@ module SparkEngine
7
7
  DEPENDENCIES = YAML.load %Q{
8
8
  private: true
9
9
  devDependencies:
10
- browserify: ^16.2.1
10
+ browserify: ^16.2.1
11
11
  browserify-incremental: ^3.1.1
12
- svgo: ^1.0.5
12
+ uglify-js: ^3.4.9
13
+ svgo: ^1.0.5
13
14
  }
14
15
 
15
16
  def setup
@@ -35,7 +35,11 @@ module SparkEngine
35
35
  end
36
36
 
37
37
  def local_path(file)
38
- destination(file).sub(plugin.root+'/','')
38
+ destination(file).sub(plugin.root + '/', '')
39
+ end
40
+
41
+ def pathname(file)
42
+ destination(file).sub(plugin.destination, '')
39
43
  end
40
44
 
41
45
  def build_success(file)
@@ -65,14 +65,15 @@ module SparkEngine
65
65
  end
66
66
 
67
67
  def build_command(file)
68
- dest = destination(file).sub(/\.js$/,'')
69
- options = "--standalone #{plugin.name} -o #{dest}.js -d"
68
+ dest = destination(file)
69
+ basename = pathname(file)
70
+ options = "--standalone #{plugin.name} -d"
70
71
 
71
72
  cmd = if SparkEngine.production?
72
- npm_path "browserify #{file} #{options} -t"
73
- else
74
- npm_path "browserifyinc --cachefile #{cache_file(File.basename(dest))} #{file} #{options}"
75
- end
73
+ npm_path %Q{browserify #{file} #{options} | #{npm_path('uglifyjs')} --output #{dest} --source-map "url='#{basename}.map',filename='#{basename}',content='inline',includeSources='true'"}
74
+ else
75
+ npm_path "browserify #{file} #{options} > #{dest}"
76
+ end
76
77
  puts "Running: #{cmd}"
77
78
 
78
79
  cmd
@@ -1,3 +1,3 @@
1
1
  module SparkEngine
2
- VERSION = "1.2.6"
2
+ VERSION = "1.2.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spark_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-18 00:00:00.000000000 Z
11
+ date: 2019-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass