konstruct 0.8.0 → 0.9.0
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 +4 -4
- data/README.md +13 -2
- data/lib/cli/init.rb +23 -7
- data/lib/cli/scaffold.rb +21 -4
- data/lib/konstruct/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: 4bd2880f8ec8b5bd7756610e864655bd38c5f966
|
4
|
+
data.tar.gz: bacb18847ae6f575e8c416bbaba0da960f9e3658
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58185c5eb3acb21ba8418dd84a6e324e526bd5ddc01275912af596394555c90044ec29179c2f263a3b89b59356f606997275c1f53619aea1124c81a08035fdf2
|
7
|
+
data.tar.gz: 584b9adf3fefa7cac78953ef5cda1f6522448ebb047fcb14c149364562e88967a90ac1513f33e26af50b813961f00ad05f0ce7cf7eb62fd67f330463bc40cef4
|
data/README.md
CHANGED
@@ -4,6 +4,15 @@
|
|
4
4
|
|
5
5
|
The Konstruct Cli provides tools to make working with Konstruct painless and quick. You can access documentation, build a new project structure and scaffold a new site with simple to use commands.
|
6
6
|
|
7
|
+
### Features
|
8
|
+
|
9
|
+
- Set up a new project structure in seconds.
|
10
|
+
- Scaffold out a new HTML, Jekyll or Angular site in seconds.
|
11
|
+
- Gulp in a central location.
|
12
|
+
- Browserify JS architecture.
|
13
|
+
- Usage statistics (local only). *Coming Soon*
|
14
|
+
- Quick link to Konstruct Documentation.
|
15
|
+
|
7
16
|
## Installation
|
8
17
|
|
9
18
|
You can install Konstruct Cli by running:
|
@@ -22,13 +31,15 @@ The Cli has a few very simple commands. If you get stuck simply `$ konstruct --h
|
|
22
31
|
|
23
32
|
#### Scaffold
|
24
33
|
|
25
|
-
|
34
|
+
$ konstruct scaffold
|
35
|
+
|
36
|
+
Scaffolds out a new site based on your choice of technology (Static html, Jekyll or Angularjs), installs default dependencies & initialises your new site with your GIT repository.
|
26
37
|
|
27
38
|
#### Develop
|
28
39
|
|
29
40
|
$ konstruct develop
|
30
41
|
|
31
|
-
Determines the type of site you are building, and runs gulp
|
42
|
+
Determines the type of site you are building, and runs a centrally installed gulp task accordingly.
|
32
43
|
|
33
44
|
#### Project
|
34
45
|
|
data/lib/cli/init.rb
CHANGED
@@ -110,13 +110,29 @@ module Konstruct
|
|
110
110
|
|
111
111
|
else
|
112
112
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
113
|
+
doSudo = choose("Do you need to install node modules as root?", :Yes, :No)
|
114
|
+
|
115
|
+
if doSudo == :Yes
|
116
|
+
|
117
|
+
msg.warning("You should fix your installation of nodeJS to not require root privileges!")
|
118
|
+
msg.paragraph("Installing NPM Assets. This might take a while.")
|
119
|
+
|
120
|
+
FileUtils.cd("#{path}/assets") do
|
121
|
+
|
122
|
+
`sudo npm install`
|
123
|
+
|
124
|
+
end
|
125
|
+
|
126
|
+
else
|
127
|
+
|
128
|
+
msg.paragraph("Installing NPM Assets. This might take a while.")
|
129
|
+
|
130
|
+
FileUtils.cd("#{path}/assets") do
|
131
|
+
|
132
|
+
`npm install`
|
133
|
+
|
134
|
+
end
|
135
|
+
|
120
136
|
end
|
121
137
|
|
122
138
|
msg.success("Installed Gulp to #{dir_gulp}")
|
data/lib/cli/scaffold.rb
CHANGED
@@ -116,12 +116,29 @@ module Konstruct
|
|
116
116
|
|
117
117
|
# B.6. INSTALL NPM ASSETS ---------------------------------------------------------------------------------
|
118
118
|
|
119
|
-
|
119
|
+
doSudo = choose("Do you need to install node modules as root?", :Yes, :No)
|
120
120
|
|
121
|
-
|
122
|
-
|
123
|
-
|
121
|
+
if doSudo == :Yes
|
122
|
+
|
123
|
+
msg.warning("You should fix your installation of nodeJS to not require root privileges!")
|
124
|
+
msg.paragraph("Installing NPM Assets. This might take a while.")
|
125
|
+
|
126
|
+
FileUtils.cd("#{path}/assets") do
|
127
|
+
|
128
|
+
`sudo npm install`
|
129
|
+
|
130
|
+
end
|
131
|
+
|
132
|
+
else
|
133
|
+
|
134
|
+
msg.paragraph("Installing NPM Assets. This might take a while.")
|
135
|
+
|
136
|
+
FileUtils.cd("#{path}/assets") do
|
124
137
|
|
138
|
+
`npm install`
|
139
|
+
|
140
|
+
end
|
141
|
+
|
125
142
|
end
|
126
143
|
|
127
144
|
msg.success("Installed NPM Assets")
|
data/lib/konstruct/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: konstruct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Kirsten
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|