bowtie-start 0.0.1 → 0.0.3

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: abd1f43c617660018baf7ce5eaedd8ce01628bbd
4
- data.tar.gz: b5e35b0a695ac844cc16171dffa6aa75ed79d062
3
+ metadata.gz: dcaaba90f0b82c24046710fe6e317744b000995d
4
+ data.tar.gz: 2143a9b2e8777390af1178880f9040bbde40c5d7
5
5
  SHA512:
6
- metadata.gz: a14d5c23af758d01d74975e03c65674edfaf0ff393d337b000b7c64eff4e834c95f896719e3b5c9801c2581cedfdb61072ac70aa4925e3f87d60edf232c80367
7
- data.tar.gz: 1093f4359a46bc459f9e3ac25d24f55149f7a476b5e8ca9e4ebcab4c16cd00c7b4c99175b850d8342e69eacf5fd66c51ce3e21affa82b956ea4824acd246dea1
6
+ metadata.gz: 95b5a736105857653ec0958e4fca86e466ff5d0465f56edc40430547fd519add81981603a2806ba50018e5a0cbb4ea1d9c1ec887f83b9a5e7a478d8e87116980
7
+ data.tar.gz: e9a52e03a07a122fc9cc0e314fde554464fc68ca08decc8d7221c962bf891ce2a7c1f37598a9d65d23b0bbbf2b9e5ff7ee28057517af70e8d1b87315fea8542d
data/README.md CHANGED
@@ -2,6 +2,36 @@
2
2
 
3
3
  A CLI to start and finish projects faster @ bowtie.
4
4
 
5
+
6
+ ## TODO
7
+
8
+ - [] Jekyll Barebones project
9
+ - .sass
10
+ - bootstrap 4 support
11
+ - livereload
12
+ - _config.yml settings
13
+
14
+ - [] Jekyll React
15
+ - ...
16
+ - webpack integration
17
+
18
+ - [] Hugo
19
+ - starter Hugo project
20
+
21
+ - [] Hexo
22
+ - starter Hexo project
23
+
24
+ - [] React Single Page App Starter
25
+ - react
26
+ - redux
27
+ - react-router
28
+ - tests
29
+
30
+ - [] React Native
31
+ - React Native starter
32
+
33
+
34
+
5
35
  ## License
6
36
 
7
37
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/bin/bts CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  require 'bowtie_start'
4
4
 
5
- BowtieStart.new.run
5
+ BowtieStart::Runner.new.run
@@ -3,14 +3,15 @@
3
3
  require 'rubygems'
4
4
  require 'commander'
5
5
 
6
- class BowtieStart
7
- include Commander::Methods
8
- # include whatever modules you need
6
+ module BowtieStart
7
+ class Runner
8
+ include Commander::Methods
9
+ # include whatever modules you need
9
10
 
10
- def run
11
- program :name, 'bowtie_starter'
12
- program :version, '0.0.1'
13
- program :description, '
11
+ def run
12
+ program :name, 'bowtie_starter'
13
+ program :version, '0.0.1'
14
+ program :description, '
14
15
 
15
16
  =====================
16
17
  | |
@@ -27,78 +28,83 @@ class BowtieStart
27
28
  Bowtie Starter
28
29
  -----------
29
30
 
30
- Ship, you fuck.
31
+ Ship, ya hooligan.
32
+
33
+ This gem installs all of our starter kits.
34
+ '
35
+ default_command :help
31
36
 
32
- '
33
- default_command :help
34
-
35
- command :jekyll do |c|
36
- c.syntax = 'bts jekyll [options]'
37
- c.summary = ''
38
- c.description = ''
39
- c.example 'description', 'command example'
40
- c.option '--some-switch', 'Some switch that does something'
41
- c.action do |args, options|
42
- puts "Started Jekyll Project"
37
+ command :install_dependencies do |c|
38
+ c.syntax = 'bts install_dependencies'
39
+ c.summary = 'Installs hugo, hexo.'
40
+ c.description = 'Installs all of the CLI starters'
41
+ c.example 'description', 'bts install_dependencies'
42
+ c.action do |args, options|
43
+ %x(brew update && brew install hugo && npm install -g hexo-cli)
44
+ end
45
+ end
46
+ command :jekyll do |c|
47
+ c.syntax = 'bts jekyll <project_name>'
48
+ c.summary = 'Installs a start jekyll project'
49
+ c.description = 'igolden/jekyll-starter'
50
+ c.example 'description', 'command example'
51
+ c.action do |args, options|
52
+ %x(git clone git@github.com:igolden/jekyll-start #{ARGV[1]})
53
+ end
43
54
  end
44
- end
45
55
 
46
- command :jekyll_react do |c|
47
- c.syntax = 'bts jekyll-react [options]'
48
- c.summary = ''
49
- c.description = ''
50
- c.example 'description', 'command example'
51
- c.option '--some-switch', 'Some switch that does something'
52
- c.action do |args, options|
53
- puts "Started Jekyll-React Project"
56
+ command :jekyll_react do |c|
57
+ c.syntax = 'bts jekyll-react <project_name>'
58
+ c.summary = 'Installs a jekyll-react starter'
59
+ c.description = 'igolden/jekyll-react'
60
+ c.example 'description', 'command example'
61
+ c.action do |args, options|
62
+ %x(git clone git@github.com:igolden/jekyll-react #{ARGV[1]})
63
+ end
54
64
  end
55
- end
56
65
 
57
- command :hexo do |c|
58
- c.syntax = 'bts hexo [options]'
59
- c.summary = ''
60
- c.description = ''
61
- c.example 'description', 'command example'
62
- c.option '--some-switch', 'Some switch that does something'
63
- c.action do |args, options|
64
- puts "Started Hexo Project"
66
+ command :hexo do |c|
67
+ c.syntax = 'bts hexo <project_name>'
68
+ c.summary = 'Installs the default hexo INIT project'
69
+ c.description = 'INITs a project with hexo-cli'
70
+ c.example 'description', 'command example'
71
+ c.action do |args, options|
72
+ ARGV[1].nil? ? (puts "Please specify a project dir. ex: 'bts hexo hello_world_project'") : (%x(hexo init #{ARGV[1]}))
73
+ end
65
74
  end
66
- end
67
75
 
68
- command :hugo do |c|
69
- c.syntax = 'bts hugo [options]'
70
- c.summary = ''
71
- c.description = ''
72
- c.example 'description', 'command example'
73
- c.option '--some-switch', 'Some switch that does something'
74
- c.action do |args, options|
75
- puts "Started Hugo Project"
76
+ command :hugo do |c|
77
+ c.syntax = 'bts hugo <project_name>'
78
+ c.summary = 'Installs a default hugo project'
79
+ c.description = 'hugo new site <name>'
80
+ c.example 'description', 'command example'
81
+ c.action do |args, options|
82
+ ARGV[1].nil? ? (puts "Please specify a project dir. ex: 'bts hugo hello_world_project'") : (%x(hugo new site #{ARGV[1]}))
83
+ end
76
84
  end
77
- end
78
85
 
79
- command :react_spa do |c|
80
- c.syntax = 'bts react-spa [options]'
81
- c.summary = ''
82
- c.description = ''
83
- c.example 'description', 'command example'
84
- c.option '--some-switch', 'Some switch that does something'
85
- c.action do |args, options|
86
- puts "Started React SPA Project"
86
+ command :react_spa do |c|
87
+ c.syntax = 'bts react-spa <project_name>'
88
+ c.summary = 'Installs react-redux starter'
89
+ c.description = 'davezuko/react-redux-starter-kit'
90
+ c.example 'description', 'command example'
91
+ c.action do |args, options|
92
+ %x(git clone git@github.com:davezuko/react-redux-starter-kit.git #{ARGV[1]})
93
+ end
87
94
  end
88
- end
89
95
 
90
- command :react_native do |c|
91
- c.syntax = 'bts react-native [options]'
92
- c.summary = ''
93
- c.description = ''
94
- c.example 'description', 'command example'
95
- c.option '--some-switch', 'Some switch that does something'
96
- c.action do |args, options|
97
- puts "Started react_native"
96
+ command :react_native do |c|
97
+ c.syntax = 'bts react-native <project_name>'
98
+ c.summary = 'Installs default react-native starter'
99
+ c.description = 'react-native init ...'
100
+ c.example 'description', 'command example'
101
+ c.action do |args, options|
102
+ ARGV[1].nil? ? (puts "Please specify a project dir. ex: 'bts react_native hello_world_project'") : (%x(react-native init #{ARGV[1]}))
103
+ end
98
104
  end
99
- end
100
105
 
101
- run!
106
+ run!
107
+ end
102
108
  end
103
109
  end
104
110
 
@@ -1,3 +1,3 @@
1
1
  module BowtieStart
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bowtie-start
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Golden
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-14 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler