squareone 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bin/squareone +6 -0
- data/lib/squareone/cli.rb +30 -0
- data/lib/squareone/generator.rb +48 -0
- data/lib/squareone/version.rb +3 -0
- data/lib/squareone.rb +7 -0
- data/lib/templates/.gitignore +8 -0
- data/lib/templates/_config.dev.yml +2 -0
- data/lib/templates/_config.yml +35 -0
- data/lib/templates/_includes/footer.html +38 -0
- data/lib/templates/_includes/head.html +12 -0
- data/lib/templates/_includes/header.html +27 -0
- data/lib/templates/_includes/icon-github.html +1 -0
- data/lib/templates/_includes/icon-github.svg +1 -0
- data/lib/templates/_includes/icon-twitter.html +1 -0
- data/lib/templates/_includes/icon-twitter.svg +1 -0
- data/lib/templates/_layouts/default.html +26 -0
- data/lib/templates/_layouts/page.html +14 -0
- data/lib/templates/_layouts/post.html +15 -0
- data/lib/templates/_posts/2016-05-31-welcome-to-jekyll.markdown +25 -0
- data/lib/templates/_sass/_base.scss +206 -0
- data/lib/templates/_sass/_layout.scss +242 -0
- data/lib/templates/_sass/_syntax-highlighting.scss +71 -0
- data/lib/templates/_sass/main.scss +48 -0
- data/lib/templates/about.md +15 -0
- data/lib/templates/assets/javascripts/jquery-2.2.4.js +9814 -0
- data/lib/templates/feed.xml +30 -0
- data/lib/templates/gulpfile.js +95 -0
- data/lib/templates/index.html +23 -0
- data/lib/templates/package.json +24 -0
- data/squareone.gemspec +30 -0
- metadata +155 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
layout: null
|
3
|
+
---
|
4
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
5
|
+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
6
|
+
<channel>
|
7
|
+
<title>{{ site.title | xml_escape }}</title>
|
8
|
+
<description>{{ site.description | xml_escape }}</description>
|
9
|
+
<link>{{ site.url }}{{ site.baseurl }}/</link>
|
10
|
+
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
|
11
|
+
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
|
12
|
+
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
|
13
|
+
<generator>Jekyll v{{ jekyll.version }}</generator>
|
14
|
+
{% for post in site.posts limit:10 %}
|
15
|
+
<item>
|
16
|
+
<title>{{ post.title | xml_escape }}</title>
|
17
|
+
<description>{{ post.content | xml_escape }}</description>
|
18
|
+
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
19
|
+
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
|
20
|
+
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
|
21
|
+
{% for tag in post.tags %}
|
22
|
+
<category>{{ tag | xml_escape }}</category>
|
23
|
+
{% endfor %}
|
24
|
+
{% for cat in post.categories %}
|
25
|
+
<category>{{ cat | xml_escape }}</category>
|
26
|
+
{% endfor %}
|
27
|
+
</item>
|
28
|
+
{% endfor %}
|
29
|
+
</channel>
|
30
|
+
</rss>
|
@@ -0,0 +1,95 @@
|
|
1
|
+
// Module Dependencies
|
2
|
+
var cp = require('child_process'),
|
3
|
+
gulp = require('gulp'),
|
4
|
+
browserSync = require('browser-sync'),
|
5
|
+
sass = require('gulp-sass'),
|
6
|
+
autoprefix = require('gulp-autoprefixer');
|
7
|
+
|
8
|
+
var paths = {
|
9
|
+
siteDir: '_site/',
|
10
|
+
sassDir: '_sass/',
|
11
|
+
cssDir: 'assets/stylesheets/',
|
12
|
+
jsDir: 'assets/javascripts/'
|
13
|
+
};
|
14
|
+
|
15
|
+
var jekyll = process.platform === 'win32' ? 'jekyll.bat' : 'jekyll';
|
16
|
+
|
17
|
+
// Wait for jekyll:devbuild, then launch the Server
|
18
|
+
gulp.task('browser-sync', ['sass', 'jekyll:devbuild'], function () {
|
19
|
+
browserSync({
|
20
|
+
server: { baseDir: paths.siteDir },
|
21
|
+
notify: false
|
22
|
+
});
|
23
|
+
});
|
24
|
+
|
25
|
+
|
26
|
+
// Build the Jekyll Site for development
|
27
|
+
gulp.task('jekyll:devbuild', function (done) {
|
28
|
+
return cp.spawn(jekyll, ['build', '--config', ['_config.yml', '_config.dev.yml']], {
|
29
|
+
stdio: 'inherit'
|
30
|
+
})
|
31
|
+
.on('close', done);
|
32
|
+
});
|
33
|
+
|
34
|
+
|
35
|
+
// Build the Jekyll Site for production
|
36
|
+
gulp.task('jekyll:build', function (done) {
|
37
|
+
return cp.spawn(jekyll, ['build'], {
|
38
|
+
stdio: 'inherit'
|
39
|
+
})
|
40
|
+
.on('close', done);
|
41
|
+
});
|
42
|
+
|
43
|
+
|
44
|
+
// Rebuild Jekyll and reload page
|
45
|
+
gulp.task('jekyll:rebuild', ['jekyll:devbuild'], function () {
|
46
|
+
browserSync.reload();
|
47
|
+
});
|
48
|
+
|
49
|
+
|
50
|
+
// Compile files from _scss into both _site/css (for live injecting)
|
51
|
+
// and site (for future jekyll builds)
|
52
|
+
gulp.task('sass', function () {
|
53
|
+
return gulp
|
54
|
+
.src(paths.sassDir + '*.scss')
|
55
|
+
.pipe(sass({
|
56
|
+
includePaths: [paths.sassDir]
|
57
|
+
}))
|
58
|
+
.on('error', sass.logError)
|
59
|
+
.pipe(autoprefix(['last 15 versions', '> 1%', 'ie 8', 'ie 7'], {
|
60
|
+
cascade: true
|
61
|
+
}))
|
62
|
+
.pipe(gulp.dest(paths.siteDir + paths.cssDir))
|
63
|
+
.pipe(browserSync.reload({ stream: true }))
|
64
|
+
.pipe(gulp.dest(paths.cssDir));
|
65
|
+
});
|
66
|
+
|
67
|
+
|
68
|
+
// Reload browsersync without rebuilding
|
69
|
+
gulp.task('reload', function () {
|
70
|
+
browserSync.reload();
|
71
|
+
});
|
72
|
+
|
73
|
+
|
74
|
+
// Watch scss files for changes & recompile
|
75
|
+
// Watch html/md files, run jekyll & reload BrowserSync
|
76
|
+
gulp.task('watch', function () {
|
77
|
+
gulp.watch(paths.sassDir + '**/*.scss', ['sass']);
|
78
|
+
gulp.watch([
|
79
|
+
'*.html',
|
80
|
+
'_layouts/*.html',
|
81
|
+
'_includes/**/*.html',
|
82
|
+
'_posts/*.md',
|
83
|
+
'assets/images/**/*',
|
84
|
+
'*.yml'
|
85
|
+
], ['jekyll:rebuild']);
|
86
|
+
});
|
87
|
+
|
88
|
+
|
89
|
+
// Build site without starting server and watching for changes.
|
90
|
+
gulp.task('build', ['sass', 'jekyll:build']);
|
91
|
+
|
92
|
+
|
93
|
+
// Default task, running just `gulp` will compile the sass,
|
94
|
+
// compile the jekyll site, launch BrowserSync & watch files.
|
95
|
+
gulp.task('default', ['browser-sync', 'watch']);
|
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="home">
|
6
|
+
|
7
|
+
<h1 class="page-heading">Posts</h1>
|
8
|
+
|
9
|
+
<ul class="post-list">
|
10
|
+
{% for post in site.posts %}
|
11
|
+
<li>
|
12
|
+
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
|
13
|
+
|
14
|
+
<h2>
|
15
|
+
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
16
|
+
</h2>
|
17
|
+
</li>
|
18
|
+
{% endfor %}
|
19
|
+
</ul>
|
20
|
+
|
21
|
+
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
|
22
|
+
|
23
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"name": "<%= @project_name %>",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "Jekyll starter site generator with gulp task automation workflow.",
|
5
|
+
"main": "gulpfile.js",
|
6
|
+
"scripts": {
|
7
|
+
"start": "gulp",
|
8
|
+
"build": "gulp build",
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
10
|
+
},
|
11
|
+
"keywords": [
|
12
|
+
"jekyll",
|
13
|
+
"gulp",
|
14
|
+
"generator"
|
15
|
+
],
|
16
|
+
"author": "Joshua Azemoh",
|
17
|
+
"license": "MIT",
|
18
|
+
"devDependencies": {
|
19
|
+
"browser-sync": "^2.12.10",
|
20
|
+
"gulp": "^3.9.1",
|
21
|
+
"gulp-autoprefixer": "^3.1.0",
|
22
|
+
"gulp-sass": "^2.3.1"
|
23
|
+
}
|
24
|
+
}
|
data/squareone.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'squareone/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "squareone"
|
8
|
+
spec.version = Squareone::VERSION
|
9
|
+
spec.authors = ["Joshua Azemoh"]
|
10
|
+
spec.email = ["joshazemoh@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Jekyll site generator with gulp for task automation.}
|
13
|
+
spec.description = %q{Jekyll starter site generator with gulp task automation workflow.}
|
14
|
+
spec.homepage = "http://codaye.github.io/squareone"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
# spec.bindir = "exe"
|
19
|
+
# spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.executables = ["squareone"]
|
21
|
+
spec.default_executable = "squareone"
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_runtime_dependency "thor", "~> 0.19"
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
+
spec.add_development_dependency "pry", "~> 0.10"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,155 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: squareone
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joshua Azemoh
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-06-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.19'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.19'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.11'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.11'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.10'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.10'
|
83
|
+
description: Jekyll starter site generator with gulp task automation workflow.
|
84
|
+
email:
|
85
|
+
- joshazemoh@gmail.com
|
86
|
+
executables:
|
87
|
+
- squareone
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- ".gitignore"
|
92
|
+
- ".rspec"
|
93
|
+
- ".travis.yml"
|
94
|
+
- CODE_OF_CONDUCT.md
|
95
|
+
- Gemfile
|
96
|
+
- LICENSE.txt
|
97
|
+
- README.md
|
98
|
+
- Rakefile
|
99
|
+
- bin/console
|
100
|
+
- bin/setup
|
101
|
+
- bin/squareone
|
102
|
+
- lib/squareone.rb
|
103
|
+
- lib/squareone/cli.rb
|
104
|
+
- lib/squareone/generator.rb
|
105
|
+
- lib/squareone/version.rb
|
106
|
+
- lib/templates/.gitignore
|
107
|
+
- lib/templates/_config.dev.yml
|
108
|
+
- lib/templates/_config.yml
|
109
|
+
- lib/templates/_includes/footer.html
|
110
|
+
- lib/templates/_includes/head.html
|
111
|
+
- lib/templates/_includes/header.html
|
112
|
+
- lib/templates/_includes/icon-github.html
|
113
|
+
- lib/templates/_includes/icon-github.svg
|
114
|
+
- lib/templates/_includes/icon-twitter.html
|
115
|
+
- lib/templates/_includes/icon-twitter.svg
|
116
|
+
- lib/templates/_layouts/default.html
|
117
|
+
- lib/templates/_layouts/page.html
|
118
|
+
- lib/templates/_layouts/post.html
|
119
|
+
- lib/templates/_posts/2016-05-31-welcome-to-jekyll.markdown
|
120
|
+
- lib/templates/_sass/_base.scss
|
121
|
+
- lib/templates/_sass/_layout.scss
|
122
|
+
- lib/templates/_sass/_syntax-highlighting.scss
|
123
|
+
- lib/templates/_sass/main.scss
|
124
|
+
- lib/templates/about.md
|
125
|
+
- lib/templates/assets/javascripts/jquery-2.2.4.js
|
126
|
+
- lib/templates/feed.xml
|
127
|
+
- lib/templates/gulpfile.js
|
128
|
+
- lib/templates/index.html
|
129
|
+
- lib/templates/package.json
|
130
|
+
- squareone.gemspec
|
131
|
+
homepage: http://codaye.github.io/squareone
|
132
|
+
licenses:
|
133
|
+
- MIT
|
134
|
+
metadata: {}
|
135
|
+
post_install_message:
|
136
|
+
rdoc_options: []
|
137
|
+
require_paths:
|
138
|
+
- lib
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0'
|
149
|
+
requirements: []
|
150
|
+
rubyforge_project:
|
151
|
+
rubygems_version: 2.5.1
|
152
|
+
signing_key:
|
153
|
+
specification_version: 4
|
154
|
+
summary: Jekyll site generator with gulp for task automation.
|
155
|
+
test_files: []
|