maschine-generator 0.1.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 +7 -0
- data/.gitignore +15 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +37 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/Maschine +2 -0
- data/README.md +18 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/config.yaml +31 -0
- data/lib/maschine-generator.rb +4 -0
- data/lib/maschine-generator/generator.rb +97 -0
- data/lib/maschine-generator/version.rb +3 -0
- data/maschine-generator.gemspec +31 -0
- data/spec/maschine-generator/maschine_spec.rb +32 -0
- data/spec/spec_helper.rb +2 -0
- data/templates/Gemfile +35 -0
- data/templates/_config.yml.erb +49 -0
- data/templates/package.json +33 -0
- data/templates/webpack.config.js +25 -0
- metadata +114 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: c0ff9c7130f3f066a44ed671df3447dca610c090
|
|
4
|
+
data.tar.gz: b78092a90095073aa8667be4e37db860ece1a2cd
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 2a316a61202e8a7311dcb34d03804b80490eb9b88e232b7296e675a755436f8034bee1779e0c0862ec7316442c3ed28872105a85228e50a36f0973f1fe05f7e8
|
|
7
|
+
data.tar.gz: 48e01dd40958ddb7e5677dacbefd81026f413d30b73ed1054539cd7a1a5ea0a7a293e9a46d14a348c990fb52f883b4c6c62a03928cce81e3fce3cc03c62fa626
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
+
orientation.
|
|
11
|
+
|
|
12
|
+
## Our Standards
|
|
13
|
+
|
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
|
15
|
+
include:
|
|
16
|
+
|
|
17
|
+
* Using welcoming and inclusive language
|
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
|
19
|
+
* Gracefully accepting constructive criticism
|
|
20
|
+
* Focusing on what is best for the community
|
|
21
|
+
* Showing empathy towards other community members
|
|
22
|
+
|
|
23
|
+
Examples of unacceptable behavior by participants include:
|
|
24
|
+
|
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
+
advances
|
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
+
* Public or private harassment
|
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
|
30
|
+
address, without explicit permission
|
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
+
professional setting
|
|
33
|
+
|
|
34
|
+
## Our Responsibilities
|
|
35
|
+
|
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
+
response to any instances of unacceptable behavior.
|
|
39
|
+
|
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
+
threatening, offensive, or harmful.
|
|
45
|
+
|
|
46
|
+
## Scope
|
|
47
|
+
|
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
+
when an individual is representing the project or its community. Examples of
|
|
50
|
+
representing a project or community include using an official project e-mail
|
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
|
53
|
+
further defined and clarified by project maintainers.
|
|
54
|
+
|
|
55
|
+
## Enforcement
|
|
56
|
+
|
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
+
reported by contacting the project team at thomas.meitz@retailify.de. All
|
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
|
63
|
+
|
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
+
members of the project's leadership.
|
|
67
|
+
|
|
68
|
+
## Attribution
|
|
69
|
+
|
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
|
72
|
+
|
|
73
|
+
[homepage]: http://contributor-covenant.org
|
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
maschine-generator (0.1.0)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
diff-lcs (1.3)
|
|
10
|
+
dotenv (2.4.0)
|
|
11
|
+
rake (10.5.0)
|
|
12
|
+
rspec (3.7.0)
|
|
13
|
+
rspec-core (~> 3.7.0)
|
|
14
|
+
rspec-expectations (~> 3.7.0)
|
|
15
|
+
rspec-mocks (~> 3.7.0)
|
|
16
|
+
rspec-core (3.7.1)
|
|
17
|
+
rspec-support (~> 3.7.0)
|
|
18
|
+
rspec-expectations (3.7.0)
|
|
19
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
20
|
+
rspec-support (~> 3.7.0)
|
|
21
|
+
rspec-mocks (3.7.0)
|
|
22
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
23
|
+
rspec-support (~> 3.7.0)
|
|
24
|
+
rspec-support (3.7.1)
|
|
25
|
+
|
|
26
|
+
PLATFORMS
|
|
27
|
+
ruby
|
|
28
|
+
|
|
29
|
+
DEPENDENCIES
|
|
30
|
+
bundler (~> 1.16)
|
|
31
|
+
dotenv
|
|
32
|
+
maschine-generator!
|
|
33
|
+
rake (~> 10.0)
|
|
34
|
+
rspec (~> 3.0)
|
|
35
|
+
|
|
36
|
+
BUNDLED WITH
|
|
37
|
+
1.16.1
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Thomas Meitz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Thomas Meitz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/Maschine
ADDED
data/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
maschine-generator
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
maschine.io jekyll site generator for maschine customers
|
|
5
|
+
|
|
6
|
+
## Setup
|
|
7
|
+
|
|
8
|
+
1. Install `gem install maschine-generator`.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
_Fill in with gem usage information._
|
|
13
|
+
|
|
14
|
+
## Development
|
|
15
|
+
|
|
16
|
+
When hacking on this gem, the REPL `pry` comes in handy. You can load the
|
|
17
|
+
contents of the gem with `pry --gem`.
|
|
18
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "maschine/generator"
|
|
5
|
+
|
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
+
|
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
+
# require "pry"
|
|
11
|
+
# Pry.start
|
|
12
|
+
|
|
13
|
+
require "irb"
|
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/config.yaml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
maschine:
|
|
2
|
+
project:
|
|
3
|
+
directory: /tmp/projects/customer-site
|
|
4
|
+
files:
|
|
5
|
+
rootprocess:
|
|
6
|
+
- templates/_config.yml.erb
|
|
7
|
+
theme:
|
|
8
|
+
import:
|
|
9
|
+
directory: theme
|
|
10
|
+
process:
|
|
11
|
+
- directory:
|
|
12
|
+
from: assets/.
|
|
13
|
+
to: assets
|
|
14
|
+
- directory:
|
|
15
|
+
from: config/.
|
|
16
|
+
to: src/_config/
|
|
17
|
+
- directory:
|
|
18
|
+
from: layout/.
|
|
19
|
+
to: src/_layouts/
|
|
20
|
+
- directory:
|
|
21
|
+
from: locales/.
|
|
22
|
+
to: src/_locales/
|
|
23
|
+
- directory:
|
|
24
|
+
from: sections/.
|
|
25
|
+
to: src/_includes/sections/
|
|
26
|
+
- directory:
|
|
27
|
+
from: snippets/.
|
|
28
|
+
to: src/_includes/snippets/
|
|
29
|
+
- directory:
|
|
30
|
+
from: templates/.
|
|
31
|
+
to: src/_includes/templates/
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
require 'yaml'
|
|
2
|
+
require 'fileutils'
|
|
3
|
+
require 'logger'
|
|
4
|
+
require 'dotenv/load'
|
|
5
|
+
|
|
6
|
+
module Maschine
|
|
7
|
+
class Generator
|
|
8
|
+
@@scaffoldDirs = %w(
|
|
9
|
+
src src/_includes src/_includes/sections src/_includes/snippets src/_pages src/_data src/_layouts
|
|
10
|
+
src/_plugins src/_posts src/_sass src/_config src/_locales assets webpack
|
|
11
|
+
).freeze
|
|
12
|
+
|
|
13
|
+
@@rootCopyFiles = %w(
|
|
14
|
+
templates/Gemfile templates/package.json templates/webpack.config.js
|
|
15
|
+
).freeze
|
|
16
|
+
|
|
17
|
+
@@erbFiles = %( templates/_config.yml.erb )
|
|
18
|
+
|
|
19
|
+
def initialize(project_path=nil)
|
|
20
|
+
@gemPath = File.expand_path File.dirname(__FILE__) + "/../.."
|
|
21
|
+
configFile = File.join(@gemPath, 'config.yaml')
|
|
22
|
+
|
|
23
|
+
raise "config.yaml does not exists" if ! File.exists?(configFile)
|
|
24
|
+
@config = YAML.load_file(configFile)
|
|
25
|
+
@projectPath = ENV['MASCHINE_PROJECT_DIRECTORY']
|
|
26
|
+
@logger = Logger.new(STDOUT)
|
|
27
|
+
@logger.level = Logger::DEBUG
|
|
28
|
+
# @logger.debug @projectPath
|
|
29
|
+
# @logger.debug @gemPath
|
|
30
|
+
@apikey = ENV['MASCHINE_API_KEY']
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def apikey
|
|
34
|
+
return @apikey
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def createDirs
|
|
38
|
+
@@scaffoldDirs.each do |directory|
|
|
39
|
+
dir = File.join(@projectPath, directory)
|
|
40
|
+
FileUtils.mkdir_p(File.join(@projectPath, directory)) if !Dir.exists?(dir)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def dirs
|
|
45
|
+
dir = Array.new
|
|
46
|
+
@@scaffoldDirs.each do |directory|
|
|
47
|
+
d = File.join(@projectPath, directory)
|
|
48
|
+
dir << d
|
|
49
|
+
end
|
|
50
|
+
return dir
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def erb
|
|
54
|
+
@erb ||= ERBRenderer.new(self)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def copyTheme
|
|
58
|
+
import = @config['maschine']['theme']['import']
|
|
59
|
+
importDir = File.join(@projectPath, import['directory'])
|
|
60
|
+
import['process'].each do |directory|
|
|
61
|
+
from = File.join(importDir, directory['directory']['from'])
|
|
62
|
+
to = File.join(@projectPath, directory['directory']['to'])
|
|
63
|
+
FileUtils.cp_r from, to
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def rootFiles
|
|
68
|
+
files = Array.new
|
|
69
|
+
@@rootCopyFiles.each do |file|
|
|
70
|
+
files.push(File.join(@gemPath, file))
|
|
71
|
+
end
|
|
72
|
+
return files
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
def copyRootFiles
|
|
76
|
+
rootFiles.each do |file|
|
|
77
|
+
if File.exists?(file)
|
|
78
|
+
FileUtils.cp(file, @projectPath)
|
|
79
|
+
else
|
|
80
|
+
@logger.error(file)
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def processConfigFile
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def execute
|
|
89
|
+
@logger.debug "create directories"
|
|
90
|
+
self.createDirs
|
|
91
|
+
# TODO: hole das theme vom server
|
|
92
|
+
@logger.debug "copy theme"
|
|
93
|
+
self.copyTheme
|
|
94
|
+
@logger.debug "copy root files"
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
require File.expand_path("../lib/maschine-generator/version", __FILE__)
|
|
3
|
+
|
|
4
|
+
Gem::Specification.new do |s|
|
|
5
|
+
#Metadata
|
|
6
|
+
s.name = "maschine-generator"
|
|
7
|
+
s.version = Maschine::VERSION
|
|
8
|
+
s.authors = ["Thomas Meitz"]
|
|
9
|
+
s.email = ["info@retailify.de"]
|
|
10
|
+
s.homepage = "https://maschine.io"
|
|
11
|
+
s.summary = %q{maschine.io site generator}
|
|
12
|
+
s.description = %q{maschine.io jekyll site generator for maschine customers}
|
|
13
|
+
s.licenses = "MIT"
|
|
14
|
+
# If you want to show a post-install message, uncomment the following lines
|
|
15
|
+
# s.post_install_message = <<-MSG
|
|
16
|
+
#
|
|
17
|
+
#MSG
|
|
18
|
+
|
|
19
|
+
#Manifest
|
|
20
|
+
s.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
21
|
+
f.match(%r{^(test|spec|features)/})
|
|
22
|
+
end
|
|
23
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
24
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
25
|
+
s.require_paths = ['lib']
|
|
26
|
+
|
|
27
|
+
s.add_development_dependency "bundler", "~> 1.16"
|
|
28
|
+
s.add_development_dependency "rake", "~> 10.0"
|
|
29
|
+
s.add_development_dependency "rspec", "~> 3.0"
|
|
30
|
+
|
|
31
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
require 'maschine-generator'
|
|
2
|
+
|
|
3
|
+
describe Maschine::Generator do
|
|
4
|
+
|
|
5
|
+
it "must have the maschine api key" do
|
|
6
|
+
generator = Maschine::Generator.new
|
|
7
|
+
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
it "creates the needed directories" do
|
|
12
|
+
generator = Maschine::Generator.new
|
|
13
|
+
generator.createDirs
|
|
14
|
+
generator.dirs.each do |dir|
|
|
15
|
+
expect(Dir.exists?(dir)).to be_truthy
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
it "copy theme files" do
|
|
20
|
+
generator = Maschine::Generator.new
|
|
21
|
+
generator.copyTheme
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it "copy root files" do
|
|
25
|
+
generator = Maschine::Generator.new
|
|
26
|
+
generator.copyRootFiles
|
|
27
|
+
generator.rootFiles.each do |file|
|
|
28
|
+
expect(File.exists?(file)).to be_truthy
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
end
|
data/spec/spec_helper.rb
ADDED
data/templates/Gemfile
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
source "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
# Hello! This is where you manage which Jekyll version is used to run.
|
|
4
|
+
# When you want to use a different version, change it below, save the
|
|
5
|
+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
|
|
6
|
+
#
|
|
7
|
+
# bundle exec jekyll serve
|
|
8
|
+
#
|
|
9
|
+
# This will help ensure the proper Jekyll version is running.
|
|
10
|
+
# Happy Jekylling!
|
|
11
|
+
gem "jekyll", "~> 3.8.0"
|
|
12
|
+
|
|
13
|
+
gem "httparty"
|
|
14
|
+
|
|
15
|
+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
|
|
16
|
+
gem "minima", "~> 2.0"
|
|
17
|
+
|
|
18
|
+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
|
|
19
|
+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
|
|
20
|
+
# gem "github-pages", group: :jekyll_plugins
|
|
21
|
+
|
|
22
|
+
# If you have any plugins, put them here!
|
|
23
|
+
group :jekyll_plugins do
|
|
24
|
+
gem "jekyll-feed", "~> 0.6"
|
|
25
|
+
gem 'jekyll-seo-tag'
|
|
26
|
+
gem 'jekyll-sitemap'
|
|
27
|
+
gem 'jekyll-analytics'
|
|
28
|
+
gem 'jekyll-paginate'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
|
32
|
+
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
|
33
|
+
|
|
34
|
+
# Performance-booster for watching directories on Windows
|
|
35
|
+
gem "wdm", "~> 0.1.0" if Gem.win_platform?
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
maschine:
|
|
2
|
+
apikey: <%= apikey %>
|
|
3
|
+
deploy:
|
|
4
|
+
fileowner: <%= webdeployFileOwner%>
|
|
5
|
+
filegroup: <%= webdeployFileGroup%>
|
|
6
|
+
host: <%= webdeployHost%>
|
|
7
|
+
webroot: <%= webdeployWebRoot%>
|
|
8
|
+
sshuser: <%= webdeploySshUser%>
|
|
9
|
+
domain: <%= webdeployDomain%>
|
|
10
|
+
|
|
11
|
+
title: <%= webSiteTitle%>
|
|
12
|
+
email: info@roennfeld.de
|
|
13
|
+
description: >- # this means to ignore newlines until "baseurl:"
|
|
14
|
+
roennfeld.de - Ferienhäuser und Apartments in Timmendorfer Strand Niendorf Ostsee
|
|
15
|
+
baseurl: "" # the subpath of your site, e.g. /blog
|
|
16
|
+
url: "https://roennfeld.de" # the base hostname & protocol for your site, e.g. http://example.com
|
|
17
|
+
# twitter_username: maschineio
|
|
18
|
+
# github_username: retailify
|
|
19
|
+
office_hours: Im April Montag bis Freitag 9.00 Uhr bis 16.00 Uhr und Samstag und Sonntag 10.00 Uhr bis 14.00 Uhr
|
|
20
|
+
|
|
21
|
+
jekyll_analytics:
|
|
22
|
+
GoogleAnalytics: # Add, if you want to track with Google Analytics
|
|
23
|
+
id: UA-59280318-2 # Required - replace with your tracking id
|
|
24
|
+
anonymizeIp: true # Optional - Default: false - set to true for anonymized tracking
|
|
25
|
+
|
|
26
|
+
# Build settings
|
|
27
|
+
markdown: kramdown
|
|
28
|
+
theme: minima
|
|
29
|
+
plugins:
|
|
30
|
+
- jekyll-feed
|
|
31
|
+
- jekyll-seo-tag
|
|
32
|
+
- jekyll-sitemap
|
|
33
|
+
sass:
|
|
34
|
+
sass_dir: _sass
|
|
35
|
+
style: compact
|
|
36
|
+
# Exclude from processing.
|
|
37
|
+
exclude:
|
|
38
|
+
- Gemfile
|
|
39
|
+
- Gemfile.lock
|
|
40
|
+
- node_modules
|
|
41
|
+
- vendor/bundle/
|
|
42
|
+
- vendor/cache/
|
|
43
|
+
- vendor/gems/
|
|
44
|
+
- vendor/ruby/
|
|
45
|
+
- README.md
|
|
46
|
+
- deploy.sh
|
|
47
|
+
destination: public
|
|
48
|
+
source: src
|
|
49
|
+
include: ["_pages"]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "maschine",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"webpack": "webpack --mode=development --watch",
|
|
7
|
+
"jekyll-watch": "jekyll clean && bundle exec jekyll serve --livereload --incremental",
|
|
8
|
+
"develop": "concurrently --kill-others \"npm run jekyll-watch\" \"npm run webpack\""
|
|
9
|
+
},
|
|
10
|
+
"babel": {
|
|
11
|
+
"presets": [
|
|
12
|
+
"env",
|
|
13
|
+
"react",
|
|
14
|
+
"stage-2"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"babel-core": "^6.26.3",
|
|
19
|
+
"babel-loader": "^7.1.4",
|
|
20
|
+
"babel-preset-env": "^1.6.1",
|
|
21
|
+
"babel-preset-es2015": "^6.24.1",
|
|
22
|
+
"babel-preset-react": "^6.24.1",
|
|
23
|
+
"babel-preset-stage-2": "^6.24.1",
|
|
24
|
+
"concurrently": "^3.5.1",
|
|
25
|
+
"react": "^16.3.2",
|
|
26
|
+
"react-addons-update": "^15.6.2",
|
|
27
|
+
"react-dom": "^16.3.2"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"react-stepzilla": "^4.7.2"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
// webpack folder’s entry js — excluded from jekll’s build process.
|
|
5
|
+
entry: "./webpack/entry.js",
|
|
6
|
+
output: {
|
|
7
|
+
// we’re going to put the generated file in the assets folder so jekyll will grab it.
|
|
8
|
+
// if using GitHub Pages, use the following:
|
|
9
|
+
// path: "assets/javascripts"
|
|
10
|
+
path: path.resolve(__dirname, './src/assets/js/'),
|
|
11
|
+
filename: "bundle.js"
|
|
12
|
+
},
|
|
13
|
+
module: {
|
|
14
|
+
rules: [
|
|
15
|
+
{
|
|
16
|
+
test: /\.(js|jsx)$/,
|
|
17
|
+
exclude: /node_modules/,
|
|
18
|
+
use: ['babel-loader']
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
resolve: {
|
|
23
|
+
extensions: ['*', '.js', '.jsx']
|
|
24
|
+
}
|
|
25
|
+
};
|
metadata
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: maschine-generator
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Thomas Meitz
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2018-05-06 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.16'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.16'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '10.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '10.0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rspec
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '3.0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '3.0'
|
|
55
|
+
description: maschine.io jekyll site generator for maschine customers
|
|
56
|
+
email:
|
|
57
|
+
- info@retailify.de
|
|
58
|
+
executables:
|
|
59
|
+
- console
|
|
60
|
+
- setup
|
|
61
|
+
extensions: []
|
|
62
|
+
extra_rdoc_files: []
|
|
63
|
+
files:
|
|
64
|
+
- ".gitignore"
|
|
65
|
+
- ".rspec"
|
|
66
|
+
- ".travis.yml"
|
|
67
|
+
- CODE_OF_CONDUCT.md
|
|
68
|
+
- Gemfile
|
|
69
|
+
- Gemfile.lock
|
|
70
|
+
- LICENSE
|
|
71
|
+
- LICENSE.txt
|
|
72
|
+
- Maschine
|
|
73
|
+
- README.md
|
|
74
|
+
- Rakefile
|
|
75
|
+
- bin/console
|
|
76
|
+
- bin/setup
|
|
77
|
+
- config.yaml
|
|
78
|
+
- lib/maschine-generator.rb
|
|
79
|
+
- lib/maschine-generator/generator.rb
|
|
80
|
+
- lib/maschine-generator/version.rb
|
|
81
|
+
- maschine-generator.gemspec
|
|
82
|
+
- spec/maschine-generator/maschine_spec.rb
|
|
83
|
+
- spec/spec_helper.rb
|
|
84
|
+
- templates/Gemfile
|
|
85
|
+
- templates/_config.yml.erb
|
|
86
|
+
- templates/package.json
|
|
87
|
+
- templates/webpack.config.js
|
|
88
|
+
homepage: https://maschine.io
|
|
89
|
+
licenses:
|
|
90
|
+
- MIT
|
|
91
|
+
metadata: {}
|
|
92
|
+
post_install_message:
|
|
93
|
+
rdoc_options: []
|
|
94
|
+
require_paths:
|
|
95
|
+
- lib
|
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
|
+
requirements:
|
|
98
|
+
- - ">="
|
|
99
|
+
- !ruby/object:Gem::Version
|
|
100
|
+
version: '0'
|
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
|
+
requirements:
|
|
103
|
+
- - ">="
|
|
104
|
+
- !ruby/object:Gem::Version
|
|
105
|
+
version: '0'
|
|
106
|
+
requirements: []
|
|
107
|
+
rubyforge_project:
|
|
108
|
+
rubygems_version: 2.6.14
|
|
109
|
+
signing_key:
|
|
110
|
+
specification_version: 4
|
|
111
|
+
summary: maschine.io site generator
|
|
112
|
+
test_files:
|
|
113
|
+
- spec/maschine-generator/maschine_spec.rb
|
|
114
|
+
- spec/spec_helper.rb
|