marv 0.2.1 → 0.2.2
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.
- data/CHANGELOG.md +5 -0
- data/README.md +29 -16
- data/VERSION +1 -1
- data/layouts/bramble/functions/functions.php.erb +112 -0
- data/layouts/bramble/images/screenshot.png +0 -0
- data/layouts/bramble/includes/options.php.erb +1339 -0
- data/layouts/bramble/javascripts/admin.coffee +0 -0
- data/layouts/bramble/javascripts/admin.js +1 -0
- data/layouts/bramble/javascripts/theme.coffee +0 -0
- data/layouts/bramble/javascripts/theme.js +1 -0
- data/layouts/bramble/stylesheets/_header.scss.erb +16 -0
- data/layouts/bramble/stylesheets/style.css.scss.erb +4 -0
- data/layouts/bramble/templates/sample-template.php +25 -0
- data/layouts/default/images/screenshot.png +0 -0
- data/lib/marv/cli.rb +3 -1
- data/lib/marv/generator.rb +2 -2
- data/lib/marv/project.rb +2 -2
- data/marv.gemspec +13 -3
- metadata +13 -3
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
//=require 'admin'
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
//=require 'theme'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/*!
|
2
|
+
* Theme Name: <%= config[:name].capitalize %>
|
3
|
+
* Theme URI: <%= config[:uri] %>
|
4
|
+
* Author: <%= config[:author] %>
|
5
|
+
* Author URI: <%= config[:author_uri] %>
|
6
|
+
* Description: <%= if config[:description] then config[:description] else 'Bramble Framework child theme for Wordpress, made with Marv.' end %>
|
7
|
+
* Version: <%= if config[:version_number] then config[:version_number] else '0.1' end %>
|
8
|
+
* Template: bramble-framework
|
9
|
+
* License: <%= if config[:license_name] then config[:license_name] else 'GPLv3' end %>
|
10
|
+
* License URI: <%= if config[:license_uri] then config[:license_uri] else 'http://www.gnu.org/copyleft/gpl.html' end %>
|
11
|
+
* Tags: <%= config[:tags].join(", ") if config[:tags] %>
|
12
|
+
<%- unless config[:comments].nil? || config[:comments].empty? -%>
|
13
|
+
*
|
14
|
+
* <%= config[:comments] %>
|
15
|
+
<%- end -%>
|
16
|
+
*/
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
/**
|
4
|
+
*
|
5
|
+
* Template Name: Sample Template
|
6
|
+
*
|
7
|
+
**/
|
8
|
+
|
9
|
+
get_header(); ?>
|
10
|
+
|
11
|
+
<div id="content">
|
12
|
+
|
13
|
+
<?php bramble_content_before(); ?>
|
14
|
+
|
15
|
+
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
|
16
|
+
|
17
|
+
<?php get_template_part( 'content', get_post_format() ); ?>
|
18
|
+
|
19
|
+
<?php endwhile; endif; ?>
|
20
|
+
|
21
|
+
<?php bramble_content_after(); ?>
|
22
|
+
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<?php get_footer(); ?>
|
Binary file
|
data/lib/marv/cli.rb
CHANGED
@@ -14,11 +14,13 @@ module Marv
|
|
14
14
|
end
|
15
15
|
|
16
16
|
desc "create DIRECTORY", "Creates a Marv project"
|
17
|
+
long_desc "Creates a new project. Use the layout option to choose a scaffold"
|
18
|
+
option :layout, :type => :string, :default => 'default', :desc => "Name of alternate layout"
|
17
19
|
def create(dir)
|
18
20
|
theme = {}
|
19
21
|
theme[:name] = dir
|
20
22
|
|
21
|
-
project = Marv::Project.create(dir, theme, self)
|
23
|
+
project = Marv::Project.create(dir, theme, self, options[:layout])
|
22
24
|
end
|
23
25
|
|
24
26
|
desc "link PATH", "Create a symbolic link to the compilation directory"
|
data/lib/marv/generator.rb
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
module Marv
|
3
3
|
class Generator
|
4
4
|
class << self
|
5
|
-
def run(project, layout
|
5
|
+
def run(project, layout)
|
6
6
|
generator = self.new(project, layout)
|
7
7
|
generator.run
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
def initialize(project, layout
|
11
|
+
def initialize(project, layout)
|
12
12
|
@project = project
|
13
13
|
@task = project.task
|
14
14
|
@layout = layout
|
data/lib/marv/project.rb
CHANGED
@@ -4,11 +4,11 @@ require 'compass'
|
|
4
4
|
module Marv
|
5
5
|
class Project
|
6
6
|
class << self
|
7
|
-
def create(root, config, task)
|
7
|
+
def create(root, config, task, layout)
|
8
8
|
root = File.expand_path(root)
|
9
9
|
|
10
10
|
project = self.new(root, task, config)
|
11
|
-
Generator.run(project)
|
11
|
+
Generator.run(project, layout)
|
12
12
|
|
13
13
|
project
|
14
14
|
end
|
data/marv.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "marv"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Hardpixel"]
|
12
|
-
s.date = "2014-07-
|
12
|
+
s.date = "2014-07-29"
|
13
13
|
s.description = "A toolkit for bootstrapping and developing WordPress themes using Sass, LESS, and CoffeeScript."
|
14
14
|
s.email = "info@hardpixel.eu"
|
15
15
|
s.executables = ["marv"]
|
@@ -31,6 +31,16 @@ Gem::Specification.new do |s|
|
|
31
31
|
"bin/marv",
|
32
32
|
"features/step_definitions/marv_steps.rb",
|
33
33
|
"features/support/env.rb",
|
34
|
+
"layouts/bramble/functions/functions.php.erb",
|
35
|
+
"layouts/bramble/images/screenshot.png",
|
36
|
+
"layouts/bramble/includes/options.php.erb",
|
37
|
+
"layouts/bramble/javascripts/admin.coffee",
|
38
|
+
"layouts/bramble/javascripts/admin.js",
|
39
|
+
"layouts/bramble/javascripts/theme.coffee",
|
40
|
+
"layouts/bramble/javascripts/theme.js",
|
41
|
+
"layouts/bramble/stylesheets/_header.scss.erb",
|
42
|
+
"layouts/bramble/stylesheets/style.css.scss.erb",
|
43
|
+
"layouts/bramble/templates/sample-template.php",
|
34
44
|
"layouts/config/config.tt",
|
35
45
|
"layouts/default/functions/functions.php.erb",
|
36
46
|
"layouts/default/images/screenshot.png",
|
@@ -73,7 +83,7 @@ Gem::Specification.new do |s|
|
|
73
83
|
"lib/marv/guard.rb",
|
74
84
|
"lib/marv/project.rb",
|
75
85
|
"lib/marv/version.rb",
|
76
|
-
"marv-0.2.
|
86
|
+
"marv-0.2.2.gem",
|
77
87
|
"marv.gemspec",
|
78
88
|
"spec/lib/marv/config_spec.rb",
|
79
89
|
"spec/lib/marv/project_spec.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -338,6 +338,16 @@ files:
|
|
338
338
|
- bin/marv
|
339
339
|
- features/step_definitions/marv_steps.rb
|
340
340
|
- features/support/env.rb
|
341
|
+
- layouts/bramble/functions/functions.php.erb
|
342
|
+
- layouts/bramble/images/screenshot.png
|
343
|
+
- layouts/bramble/includes/options.php.erb
|
344
|
+
- layouts/bramble/javascripts/admin.coffee
|
345
|
+
- layouts/bramble/javascripts/admin.js
|
346
|
+
- layouts/bramble/javascripts/theme.coffee
|
347
|
+
- layouts/bramble/javascripts/theme.js
|
348
|
+
- layouts/bramble/stylesheets/_header.scss.erb
|
349
|
+
- layouts/bramble/stylesheets/style.css.scss.erb
|
350
|
+
- layouts/bramble/templates/sample-template.php
|
341
351
|
- layouts/config/config.tt
|
342
352
|
- layouts/default/functions/functions.php.erb
|
343
353
|
- layouts/default/images/screenshot.png
|
@@ -380,7 +390,7 @@ files:
|
|
380
390
|
- lib/marv/guard.rb
|
381
391
|
- lib/marv/project.rb
|
382
392
|
- lib/marv/version.rb
|
383
|
-
- marv-0.2.
|
393
|
+
- marv-0.2.2.gem
|
384
394
|
- marv.gemspec
|
385
395
|
- spec/lib/marv/config_spec.rb
|
386
396
|
- spec/lib/marv/project_spec.rb
|