quickdraw 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: df5b795af0421fe99f0dff6b95e98c966c50f902
4
- data.tar.gz: bcb1b8d1b9f20693f925fcad431dbade546606ce
3
+ metadata.gz: 58a82ffc2216e932bdba3e67e015de64707d4fc1
4
+ data.tar.gz: e1c97b28041a34d4d76e908280210a84014a15fa
5
5
  SHA512:
6
- metadata.gz: ddec59e718913624a38977ba8a1320de0c3931438f83d22c61e8697cb1f772aa9d2103b1f92efba15732ffd833d8e2317160c4de002c1ac4c7330d9b2bd6feb9
7
- data.tar.gz: c1f685f5aa1c0630fad2c5637cb29c077f4050f496f1b64096d063899b46f0947f63b78b77e4e2e73501e016ca7ac427f70eae2c311dea922700e5a1c1a2ef47
6
+ metadata.gz: a1e342512ec19ddaad5a6294fcb640e958d0f70680c14c99aed6b4e75abb5e60d0b97207be5a931d8745b376038ffbaf518701ca89b7e362360c27121e637494
7
+ data.tar.gz: 385cdb7184de9c48211987d8476e8bc89a358517fd3859cdef9fd79869532c6bfbe281e22580ce19b9826268eebcda5c9c1bbfe9ca085e2cf741f02f2d39d2b5
data/README.md CHANGED
@@ -5,6 +5,7 @@ The idea for Quickdraw comes from the 'shopify_theme' gem. I use a lot of code f
5
5
  ### Features
6
6
 
7
7
  - MUCH faster downloads and uploads. Unfortunately, Shopify API call limits will slow you down. But in short bursts (10-20 files), Quickdraw is as much as 10x faster or more!
8
+ - Quickdraw supports using ERB templates which are compiled then uploaded to shopify. This can save you time when making templates with redundant code.
8
9
 
9
10
  ## Installation
10
11
 
@@ -22,7 +23,10 @@ Or install it yourself as:
22
23
 
23
24
  ## Usage
24
25
 
25
- TODO: Write usage instructions here
26
+ 1. Create a project folder and open a terminal
27
+ 2. run ````quickdraw configure````
28
+ 3. run ````quickdraw download````
29
+ 4. run ````quickdraw watch````
26
30
 
27
31
  ## Contributing
28
32
 
data/lib/quickdraw/cli.rb CHANGED
@@ -20,10 +20,17 @@ module Quickdraw
20
20
  DEFAULT_WHITELIST = %w(layout/ assets/ config/ snippets/ templates/)
21
21
  TIMEFORMAT = "%H:%M:%S"
22
22
 
23
- desc "configure API_KEY PASSWORD STORE THEME_ID", "generate a config file for the store to connect to"
24
- def configure(api_key=nil, password=nil, store=nil, theme_id=nil)
25
- config = {:api_key => api_key, :password => password, :store => store, :theme_id => theme_id}
23
+ desc "configure", "generate a config file for the store to connect to"
24
+ def configure
25
+ config = {
26
+ :api_key => ask("API Key?"),
27
+ :password => ask("Password?"),
28
+ :store => ask("Store domain (ex. 'example.myshopify.com')?"),
29
+ :theme_id => ask("Theme ID")
30
+ }
26
31
  create_file('config.yml', config.to_yaml)
32
+ empty_directory('src')
33
+ empty_directory('theme')
27
34
  end
28
35
 
29
36
  desc "upload FILES", "upload all theme assets to shop"
@@ -1,3 +1,3 @@
1
1
  module Quickdraw
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickdraw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Morris