spark_engine 1.2.13 → 1.2.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d57dc7a7b86f381b4cb7e6396450bc8a574a51a3b1b8002190cff41f86c8b9d
4
- data.tar.gz: f648bf35916f8c5ca494ac555e3881ddceb5c63d470e44c7a2640d6de8b8b418
3
+ metadata.gz: e50ce79a72fee1cd0dba3e7b7f0119cb705a26c618a76561d73c417ac81619e0
4
+ data.tar.gz: b24647e777549411af4f2eae600cf25d70942233271826cc8867c0f4995fbabf
5
5
  SHA512:
6
- metadata.gz: 824db6f737dd9ffb97343827e5d8ce973a82d135d225390132a71bb845022e6706ba00e0165565a08860cfa6939ac19d672fed9d4c81a0aafd58bfeec26d6b68
7
- data.tar.gz: 6fe639c1ac0c39fd44f096336c115f0281c4b74d873d8d02b2a8046b172f96e3458c4da41196bc5b50c01fdea028c1baa8b46a2d7420c53c4c7f6f51139a749d
6
+ metadata.gz: 0c1061970c120d8e3f5bc76b0e559f30d480e85b56bbad898e5bc4f58686ef2471bfb398707dc4eaf7518d45c64b866319bb8a1447fb0a4d765df72ab5fc2d4e
7
+ data.tar.gz: 021e1af17823e0d8f08a566158649d958e9cf6710ae4d77d04428c1d5411a863fe6b8acc6a9f79646cf876c37bb48ec86558d51f455698ef6c1e768fbf511964
data/bin/spark CHANGED
@@ -59,7 +59,7 @@ OptionParser.new do |opts|
59
59
  end
60
60
 
61
61
  opts.on("-c", "--add-css", "Add stylesheets for component") do
62
- options[:sass] = true
62
+ options[:css] = true
63
63
  end
64
64
 
65
65
  opts.on("-j", "--add-js", "Add javascript for component") do
@@ -11,6 +11,10 @@ module SparkEngine
11
11
  return
12
12
  end
13
13
 
14
+ if options[:clean] || SparkEngine.production?
15
+ from_root { clean }
16
+ end
17
+
14
18
  case options[:command]
15
19
  when 'new', 'n'
16
20
  require "spark_engine/scaffold"
@@ -66,7 +70,7 @@ module SparkEngine
66
70
  FileUtils.rm_rf('public')
67
71
  dispatch(:build)
68
72
  system "bundle exec rake build"
69
- system "git add Gemfile* lib"
73
+ system "git add Gemfile.lock lib"
70
74
  end
71
75
 
72
76
  def gem_install
@@ -129,7 +133,6 @@ module SparkEngine
129
133
  def build(options={})
130
134
  puts SparkEngine.production? ? 'Building for production…' : 'Building…'
131
135
  require_rails
132
- clean if SparkEngine.production?
133
136
  SparkEngine.plugin.build(options)
134
137
  end
135
138
 
@@ -9,7 +9,7 @@ module SparkEngine
9
9
  devDependencies:
10
10
  browserify: ^16.2.1
11
11
  browserify-incremental: ^3.1.1
12
- uglify-js: ^3.4.9
12
+ uglify-es: ^3.3.9
13
13
  svgo: ^1.0.5
14
14
  }
15
15
 
@@ -61,7 +61,7 @@ module SparkEngine
61
61
  puts ""
62
62
  end
63
63
 
64
- def npm_path( cmd )
64
+ def npm_path(cmd)
65
65
  File.join SparkEngine.gem_path, "node_modules/.bin", cmd
66
66
  end
67
67
 
@@ -78,7 +78,6 @@ module SparkEngine
78
78
  puts "Running: #{cmd}" if plugin.debug?
79
79
 
80
80
  cmd
81
-
82
81
  end
83
82
  end
84
83
  end
@@ -189,12 +189,6 @@ module SparkEngine
189
189
  end
190
190
 
191
191
  def new_component(options={})
192
- options = {
193
- sass: true,
194
- template: true,
195
- js: true
196
- }.merge(options)
197
-
198
192
  path = File.join(SparkEngine.plugin.paths[:components], options[:component])
199
193
  name = options[:component].split('/').last
200
194
 
@@ -202,7 +196,7 @@ module SparkEngine
202
196
  base: path,
203
197
  component: path+'_component.rb',
204
198
  template: File.join(path, "_#{name}.html.erb"),
205
- sass: File.join(SparkEngine.plugin.paths[:stylesheets], "components", "#{options[:component].sub(name, '_'+name)}.scss"),
199
+ css: File.join(SparkEngine.plugin.paths[:stylesheets], "components", "#{options[:component].sub(name, '_'+name)}.scss"),
206
200
  js: File.join(SparkEngine.plugin.paths[:javascripts], "components", "#{options[:component].sub(name, '_'+name)}.js")
207
201
  }
208
202
 
@@ -217,7 +211,7 @@ module SparkEngine
217
211
  write_file(paths[:component], component_content, options)
218
212
 
219
213
  write_file(paths[:template], '', options) if options[:template]
220
- write_file(paths[:sass], '', options) if options[:sass]
214
+ write_file(paths[:css], '', options) if options[:css]
221
215
  write_file(paths[:js], '', options) if options[:js]
222
216
  end
223
217
 
@@ -1,3 +1,3 @@
1
1
  module SparkEngine
2
- VERSION = "1.2.13"
2
+ VERSION = "1.2.14"
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.13
4
+ version: 1.2.14
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-05-29 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: esvg