trio 1.2.6
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/.DS_Store +0 -0
- data/.gitignore +2 -0
- data/Gemfile +3 -0
- data/README.md +49 -0
- data/bin/trio +8 -0
- data/lib/trio/cli.rb +127 -0
- data/lib/trio/framework/_images/icons/compass-icon.png +0 -0
- data/lib/trio/framework/_sass/fonts/_fonts.scss +0 -0
- data/lib/trio/framework/_sass/global/_global.scss +16 -0
- data/lib/trio/framework/_sass/global/_variables.scss +111 -0
- data/lib/trio/framework/_sass/ie.scss +39 -0
- data/lib/trio/framework/_sass/modules/.gitkeep +0 -0
- data/lib/trio/framework/_sass/pages/_home.scss +2 -0
- data/lib/trio/framework/_sass/partials/_sidebar.scss +0 -0
- data/lib/trio/framework/_sass/print.scss +3 -0
- data/lib/trio/framework/_sass/screen.scss +50 -0
- data/lib/trio/framework/_sass/trio/PIE.htc +96 -0
- data/lib/trio/framework/_sass/trio/PIE.php +19 -0
- data/lib/trio/framework/_sass/trio/_trio.scss +555 -0
- data/lib/trio/framework/_sass/trio/_typography.scss +156 -0
- data/lib/trio/framework/_sass/trio/_variables.scss +111 -0
- data/lib/trio/framework/_sass/trio/boxsizing.htc +399 -0
- data/lib/trio/framework/_sass/vendors/_flexslider.scss +118 -0
- data/lib/trio/framework/_scripts/browser/modernizr.custom.85380.js +4 -0
- data/lib/trio/framework/_scripts/browser/respond.min.js +6 -0
- data/lib/trio/framework/_scripts/browser/script-ie.js +2 -0
- data/lib/trio/framework/_scripts/modules/.gitkeep +0 -0
- data/lib/trio/framework/_scripts/pages/.gitkeep +0 -0
- data/lib/trio/framework/_scripts/pages/home.js +4 -0
- data/lib/trio/framework/_scripts/script.js +6 -0
- data/lib/trio/framework/_scripts/vendors/.gitkeep +0 -0
- data/lib/trio/helpers.rb +29 -0
- data/lib/trio/project/bower.json +27 -0
- data/lib/trio/project/gulpfile.js +62 -0
- data/lib/trio/project/package.json +39 -0
- data/lib/trio/version.rb +3 -0
- data/trio.gemspec +55 -0
- metadata +138 -0
File without changes
|
data/lib/trio/helpers.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
|
3
|
+
# get current working directory basename
|
4
|
+
module Trio
|
5
|
+
module GetCurrentDirectoryBasename
|
6
|
+
def get_current_directory_basename(project_name)
|
7
|
+
case project_name
|
8
|
+
when "."
|
9
|
+
# print working directory basename
|
10
|
+
project_name = Pathname.new(Dir.pwd).basename
|
11
|
+
end
|
12
|
+
return project_name
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
# see if project exist
|
18
|
+
module Trio
|
19
|
+
module ProjectExist
|
20
|
+
def project?(project)
|
21
|
+
if !File.directory?( project )
|
22
|
+
puts ""
|
23
|
+
puts "obi: The project [ #{project} ] doesn't exist"
|
24
|
+
puts ""
|
25
|
+
exit
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"name" : "Name",
|
3
|
+
"version" : "0.0.0",
|
4
|
+
"authors" : [
|
5
|
+
"micalexander <michael@micalexander.com>"
|
6
|
+
],
|
7
|
+
"description" : "Descritption",
|
8
|
+
"keywords" : [
|
9
|
+
"wordpress",
|
10
|
+
"theme"
|
11
|
+
],
|
12
|
+
"license" : "MIT",
|
13
|
+
"private" : false,
|
14
|
+
"ignore" : [
|
15
|
+
"**/.*",
|
16
|
+
"node_modules",
|
17
|
+
"bower_components",
|
18
|
+
"test",
|
19
|
+
"tests"
|
20
|
+
],
|
21
|
+
"dependencies" : {
|
22
|
+
"fancybox" : "~2.1.5",
|
23
|
+
"flexslider" : "https://github.com/woothemes/FlexSlider/archive/master.zip",
|
24
|
+
"jQuery.mmenu" : "~5.0.4",
|
25
|
+
"jquery" : ">= 2.1.4"
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var tri = './trio',
|
4
|
+
gulp = require('gulp'),
|
5
|
+
sass = require('gulp-sass'),
|
6
|
+
notify = require('gulp-notify'),
|
7
|
+
include = require('gulp-include'),
|
8
|
+
postcss = require('gulp-postcss'),
|
9
|
+
sprites = require('postcss-sprites'),
|
10
|
+
clearfix = require('postcss-clearfix'),
|
11
|
+
sassGlob = require('gulp-sass-glob'),
|
12
|
+
livereload = require('gulp-livereload'),
|
13
|
+
autoprefixer = require('autoprefixer'),
|
14
|
+
processors = [
|
15
|
+
clearfix,
|
16
|
+
autoprefixer({browsers: ['last 2 version']}),
|
17
|
+
sprites({
|
18
|
+
stylesheetPath : tri + '/css',
|
19
|
+
spritePath : tri + '/img/icons.png',
|
20
|
+
retina : true,
|
21
|
+
outputDimensions: true,
|
22
|
+
filterBy : function(image) {
|
23
|
+
return /^icon/gi.test(image.url);
|
24
|
+
},
|
25
|
+
})
|
26
|
+
];
|
27
|
+
|
28
|
+
gulp.task('styles', function() {
|
29
|
+
|
30
|
+
gulp.src(tri + '/_sass/*.scss')
|
31
|
+
.pipe(sassGlob())
|
32
|
+
.pipe(sass(tri + '/_sass'))
|
33
|
+
.pipe(postcss(processors))
|
34
|
+
.on('error', console.log)
|
35
|
+
.pipe(gulp.dest(tri + '/css'))
|
36
|
+
.pipe(notify({ message: 'Styles task complete' }))
|
37
|
+
.pipe(livereload());
|
38
|
+
|
39
|
+
});
|
40
|
+
|
41
|
+
gulp.task('scripts', function() {
|
42
|
+
|
43
|
+
gulp.src(tri + '/_scripts/*.js')
|
44
|
+
.pipe(include())
|
45
|
+
.on('error', console.log)
|
46
|
+
.pipe(gulp.dest(tri + '/js'))
|
47
|
+
.pipe(notify({ message: 'Scripts task complete' }))
|
48
|
+
.pipe(livereload());
|
49
|
+
});
|
50
|
+
|
51
|
+
|
52
|
+
// Rerun the task when a file changes
|
53
|
+
gulp.task('watch', function() {
|
54
|
+
|
55
|
+
livereload.listen();
|
56
|
+
gulp.watch(tri + '/_sass/**/*.scss', ['styles']);
|
57
|
+
gulp.watch(tri + '/_scripts/**/*.js', ['scripts']);
|
58
|
+
|
59
|
+
});
|
60
|
+
|
61
|
+
// The default task (called when you run `gulp` from cli)
|
62
|
+
gulp.task('default', [ 'styles', 'scripts', 'watch']);
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"name" : "Gulpify",
|
3
|
+
"version" : "1.0.0",
|
4
|
+
"description" : "",
|
5
|
+
"main" : "gulpfile.js",
|
6
|
+
"dependencies": {
|
7
|
+
"autoprefixer" : "^6.0.3",
|
8
|
+
"convert-source-map" : "^1.1.1",
|
9
|
+
"cross-spawn-async" : "^2.0.0",
|
10
|
+
"dargs" : "^4.0.1",
|
11
|
+
"each-async" : "^1.1.1",
|
12
|
+
"escape-string-regexp" : "^1.0.3",
|
13
|
+
"glob" : "^5.0.15",
|
14
|
+
"glob2base" : "^0.0.12",
|
15
|
+
"gulp" : "^3.9.0",
|
16
|
+
"gulp-autoprefixer" : "^3.1.0",
|
17
|
+
"gulp-compass" : "^2.1.0",
|
18
|
+
"gulp-include" : "^2.0.3",
|
19
|
+
"gulp-notify" : "^2.2.0",
|
20
|
+
"gulp-livereload" : "^3.8.1",
|
21
|
+
"gulp-postcss" : "^6.0.1",
|
22
|
+
"gulp-sass" : "^2.0.4",
|
23
|
+
"gulp-sass-glob" : "^0.0.2",
|
24
|
+
"gulp-util" : "^3.0.7",
|
25
|
+
"md5-hex" : "^1.1.0",
|
26
|
+
"object-assign" : "^4.0.1",
|
27
|
+
"os-tmpdir" : "^1.0.1",
|
28
|
+
"path-exists" : "^2.0.0",
|
29
|
+
"postcss-clearfix" : "^0.2.0",
|
30
|
+
"postcss-sprites" : "^2.0.1",
|
31
|
+
"rimraf" : "^2.4.3"
|
32
|
+
},
|
33
|
+
"devDependencies": {},
|
34
|
+
"scripts": {
|
35
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
36
|
+
},
|
37
|
+
"author" : "",
|
38
|
+
"license" : "ISC"
|
39
|
+
}
|
data/lib/trio/version.rb
ADDED
data/trio.gemspec
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
$:.unshift File.expand_path("../lib", __FILE__)
|
2
|
+
require "trio/version"
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = 'trio'
|
6
|
+
s.version = Trio::VERSION
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.summary = "This gem provides a pretty opinionated folder structure and build system for Middleman and Wordpress as well."
|
9
|
+
s.description = "This gem provides a pretty opinionated folder structure and build system for Middleman and Wordpress as well."
|
10
|
+
s.authors = ["Mic Alexander"]
|
11
|
+
s.email = 'michael@micalexander.com'
|
12
|
+
s.files = Dir['lib/ *.rb']
|
13
|
+
s.executables = ["trio"]
|
14
|
+
|
15
|
+
s.required_rubygems_version = ">= 2.1.3"
|
16
|
+
s.add_dependency "git", "~> 1.2.6"
|
17
|
+
s.add_dependency "rubyzip", "~> 1.0.0"
|
18
|
+
s.add_dependency "thor", "~> 0.18.1"
|
19
|
+
s.add_dependency "activesupport", "~> 4.0.1"
|
20
|
+
|
21
|
+
# The following block of code determines the files that should be included
|
22
|
+
# in the gem. It does this by reading all the files in the directory where
|
23
|
+
# this gemspec is, and parsing out the ignored files from the gitignore.
|
24
|
+
# Note that the entire gitignore(5) syntax is not supported, specifically
|
25
|
+
# the "!" syntax, but it should mostly work correctly.
|
26
|
+
root_path = File.dirname(__FILE__)
|
27
|
+
all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
|
28
|
+
all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
|
29
|
+
gitignore_path = File.join(root_path, ".gitignore")
|
30
|
+
gitignore = File.readlines(gitignore_path)
|
31
|
+
gitignore.map! { |line| line.chomp.strip }
|
32
|
+
gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
|
33
|
+
|
34
|
+
unignored_files = all_files.reject do |file|
|
35
|
+
# Ignore any directories, the gemspec only cares about files
|
36
|
+
next true if File.directory?(file)
|
37
|
+
|
38
|
+
# Ignore any paths that match anything in the gitignore. We do
|
39
|
+
# two tests here:
|
40
|
+
#
|
41
|
+
# - First, test to see if the entire path matches the gitignore.
|
42
|
+
# - Second, match if the basename does, this makes it so that things
|
43
|
+
# like '.DS_Store' will match sub-directories too (same behavior
|
44
|
+
# as git).
|
45
|
+
#
|
46
|
+
gitignore.any? do |ignore|
|
47
|
+
File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
|
48
|
+
File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
s.files = unignored_files
|
53
|
+
s.executables = unignored_files.map { |f| f[/^bin\/(.*)/, 1] }.compact
|
54
|
+
s.require_path = 'lib'
|
55
|
+
end
|
metadata
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: trio
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mic Alexander
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: git
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.6
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.2.6
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubyzip
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.0.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.0.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.18.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.18.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activesupport
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.0.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.0.1
|
69
|
+
description: This gem provides a pretty opinionated folder structure and build system
|
70
|
+
for Middleman and Wordpress as well.
|
71
|
+
email: michael@micalexander.com
|
72
|
+
executables:
|
73
|
+
- trio
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- ".DS_Store"
|
78
|
+
- ".gitignore"
|
79
|
+
- Gemfile
|
80
|
+
- README.md
|
81
|
+
- bin/trio
|
82
|
+
- lib/trio/cli.rb
|
83
|
+
- lib/trio/framework/_images/icons/compass-icon.png
|
84
|
+
- lib/trio/framework/_sass/fonts/_fonts.scss
|
85
|
+
- lib/trio/framework/_sass/global/_global.scss
|
86
|
+
- lib/trio/framework/_sass/global/_variables.scss
|
87
|
+
- lib/trio/framework/_sass/ie.scss
|
88
|
+
- lib/trio/framework/_sass/modules/.gitkeep
|
89
|
+
- lib/trio/framework/_sass/pages/_home.scss
|
90
|
+
- lib/trio/framework/_sass/partials/_sidebar.scss
|
91
|
+
- lib/trio/framework/_sass/print.scss
|
92
|
+
- lib/trio/framework/_sass/screen.scss
|
93
|
+
- lib/trio/framework/_sass/trio/PIE.htc
|
94
|
+
- lib/trio/framework/_sass/trio/PIE.php
|
95
|
+
- lib/trio/framework/_sass/trio/_trio.scss
|
96
|
+
- lib/trio/framework/_sass/trio/_typography.scss
|
97
|
+
- lib/trio/framework/_sass/trio/_variables.scss
|
98
|
+
- lib/trio/framework/_sass/trio/boxsizing.htc
|
99
|
+
- lib/trio/framework/_sass/vendors/_flexslider.scss
|
100
|
+
- lib/trio/framework/_scripts/browser/modernizr.custom.85380.js
|
101
|
+
- lib/trio/framework/_scripts/browser/respond.min.js
|
102
|
+
- lib/trio/framework/_scripts/browser/script-ie.js
|
103
|
+
- lib/trio/framework/_scripts/modules/.gitkeep
|
104
|
+
- lib/trio/framework/_scripts/pages/.gitkeep
|
105
|
+
- lib/trio/framework/_scripts/pages/home.js
|
106
|
+
- lib/trio/framework/_scripts/script.js
|
107
|
+
- lib/trio/framework/_scripts/vendors/.gitkeep
|
108
|
+
- lib/trio/helpers.rb
|
109
|
+
- lib/trio/project/bower.json
|
110
|
+
- lib/trio/project/gulpfile.js
|
111
|
+
- lib/trio/project/package.json
|
112
|
+
- lib/trio/version.rb
|
113
|
+
- trio.gemspec
|
114
|
+
homepage:
|
115
|
+
licenses: []
|
116
|
+
metadata: {}
|
117
|
+
post_install_message:
|
118
|
+
rdoc_options: []
|
119
|
+
require_paths:
|
120
|
+
- lib
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 2.1.3
|
131
|
+
requirements: []
|
132
|
+
rubyforge_project:
|
133
|
+
rubygems_version: 2.4.5
|
134
|
+
signing_key:
|
135
|
+
specification_version: 4
|
136
|
+
summary: This gem provides a pretty opinionated folder structure and build system
|
137
|
+
for Middleman and Wordpress as well.
|
138
|
+
test_files: []
|