trio 1.2.7 → 1.2.8
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/lib/trio/project/gulpfile.js +59 -30
- data/lib/trio/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b5c1ef12a4e4273aae82faa7bec338ce343f07c
|
4
|
+
data.tar.gz: 5bf920b91b37138a06edd7f7ac3623bceccdf4a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb1384bf5cf5a5d51977f0853e6370f508f8ed13cb908b22cc7ac2c9bacc4455bdf021188fdf58252714cd4576a13822213467b586832b6d99d12f3a4d02f8da
|
7
|
+
data.tar.gz: 7b3524ba1da660911d14330d7b50cdb634fc76980b3d80f1070117ae1be587a8c9822617134bc031523169b063a494b27f95711d90ae20bfd57dafbf721f9d10
|
@@ -1,62 +1,91 @@
|
|
1
1
|
'use strict';
|
2
|
-
|
3
|
-
var
|
2
|
+
var fs = require('fs');
|
3
|
+
var path = require('path');
|
4
|
+
var assets_path = path.normalize('/trio/'),
|
4
5
|
gulp = require('gulp'),
|
5
6
|
sass = require('gulp-sass'),
|
7
|
+
wait = require('gulp-wait'),
|
8
|
+
newer = require('gulp-newer'),
|
9
|
+
watch = require('gulp-watch'),
|
6
10
|
notify = require('gulp-notify'),
|
11
|
+
rename = require('gulp-rename'),
|
12
|
+
uglify = require('gulp-uglify'),
|
7
13
|
include = require('gulp-include'),
|
14
|
+
plumber = require('gulp-plumber'),
|
15
|
+
changed = require('gulp-changed'),
|
8
16
|
postcss = require('gulp-postcss'),
|
9
17
|
sprites = require('postcss-sprites'),
|
18
|
+
cssnano = require('cssnano'),
|
10
19
|
clearfix = require('postcss-clearfix'),
|
11
20
|
sassGlob = require('gulp-sass-glob'),
|
12
|
-
|
21
|
+
imagemin = require('gulp-imagemin'),
|
22
|
+
browserSync = require('browser-sync').create(),
|
23
|
+
changedInPlace = require('gulp-changed-in-place'),
|
13
24
|
autoprefixer = require('autoprefixer'),
|
14
25
|
processors = [
|
15
26
|
clearfix,
|
16
27
|
autoprefixer({browsers: ['last 2 version']}),
|
17
|
-
|
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
|
-
})
|
28
|
+
cssnano
|
26
29
|
];
|
27
30
|
|
28
|
-
gulp.task('styles', function() {
|
29
|
-
|
30
|
-
gulp.src(tri + '/_sass/*.scss')
|
31
|
+
gulp.task('styles', function () {
|
32
|
+
gulp.src(assets_path + '/_sass/screen.scss')
|
31
33
|
.pipe(sassGlob())
|
32
|
-
.pipe(sass(
|
34
|
+
.pipe(sass())
|
33
35
|
.pipe(postcss(processors))
|
34
|
-
.
|
35
|
-
.pipe(
|
36
|
-
.pipe(
|
37
|
-
.pipe(
|
36
|
+
.pipe(plumber())
|
37
|
+
.pipe(plumber.stop())
|
38
|
+
.pipe(gulp.dest(assets_path + '/css'))
|
39
|
+
.pipe(notify('Sass compiled'))
|
40
|
+
.pipe(browserSync.stream());
|
41
|
+
});
|
42
|
+
|
43
|
+
gulp.task('images', function() {
|
44
|
+
gulp.src(assets_path+'/_images/**/*{jpg,png,gif,svg}')
|
45
|
+
.pipe(newer(assets_path+'/img'))
|
38
46
|
|
47
|
+
.pipe(imagemin({
|
48
|
+
verbose: true
|
49
|
+
}))
|
50
|
+
.pipe(gulp.dest(assets_path+'/img'));
|
39
51
|
});
|
40
52
|
|
41
53
|
gulp.task('scripts', function() {
|
42
54
|
|
43
|
-
gulp.src(
|
44
|
-
.pipe(include(
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
55
|
+
gulp.src(assets_path+'/_scripts/*.js')
|
56
|
+
.pipe(include({
|
57
|
+
includePaths: [
|
58
|
+
__dirname+"/bower_components",
|
59
|
+
assets_path+"/_scripts",
|
60
|
+
]
|
61
|
+
}))
|
62
|
+
.pipe(plumber())
|
63
|
+
.pipe(plumber.stop())
|
64
|
+
.pipe(uglify())
|
65
|
+
.pipe(gulp.dest(assets_path+'/js'))
|
66
|
+
.pipe(notify({ message: 'Scripts compiled' }))
|
67
|
+
.pipe(browserSync.stream());
|
49
68
|
});
|
50
69
|
|
70
|
+
gulp.task('browser-sync', function(){
|
71
|
+
browserSync.init({
|
72
|
+
reloadDelay: 1000,
|
73
|
+
open: false
|
74
|
+
});
|
75
|
+
});
|
51
76
|
|
52
77
|
// Rerun the task when a file changes
|
53
78
|
gulp.task('watch', function() {
|
54
79
|
|
55
|
-
|
56
|
-
gulp.watch(
|
57
|
-
gulp.watch(
|
80
|
+
gulp.watch('_images/**/*', {cwd: assets_path}, ['images']);
|
81
|
+
gulp.watch('_sass/**/*.scss', {cwd: assets_path}, ['styles']);
|
82
|
+
gulp.watch(assets_path+'/**/*{.html,.php,.slim,.rb}').on('change', browserSync.reload);
|
83
|
+
gulp.watch([assets_path+'/_scripts/**/*.js', '!'+assets_path+'/Javascripts/script.min.js'], ['scripts']);
|
58
84
|
|
59
85
|
});
|
60
86
|
|
61
87
|
// The default task (called when you run `gulp` from cli)
|
62
|
-
gulp.task('default', [ 'styles', 'scripts', 'watch']);
|
88
|
+
gulp.task('default', [ 'styles', 'scripts', 'images', 'browser-sync', 'watch']);
|
89
|
+
|
90
|
+
// The default task (called when you run `gulp` from cli)
|
91
|
+
gulp.task('build', [ 'styles', 'scripts']);
|
data/lib/trio/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mic Alexander
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: 2.1.3
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.6.
|
132
|
+
rubygems_version: 2.6.12
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: This gem provides a pretty opinionated folder structure and build system
|