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 +4 -4
- data/README.md +30 -0
- data/bin/bts +1 -1
- data/lib/bowtie_start.rb +72 -66
- data/lib/bowtie_start/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: dcaaba90f0b82c24046710fe6e317744b000995d
|
4
|
+
data.tar.gz: 2143a9b2e8777390af1178880f9040bbde40c5d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/bowtie_start.rb
CHANGED
@@ -3,14 +3,15 @@
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'commander'
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
module BowtieStart
|
7
|
+
class Runner
|
8
|
+
include Commander::Methods
|
9
|
+
# include whatever modules you need
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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,
|
31
|
+
Ship, ya hooligan.
|
32
|
+
|
33
|
+
This gem installs all of our starter kits.
|
34
|
+
'
|
35
|
+
default_command :help
|
31
36
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
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
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
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
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
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
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
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
|
-
|
106
|
+
run!
|
107
|
+
end
|
102
108
|
end
|
103
109
|
end
|
104
110
|
|
data/lib/bowtie_start/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|