trio 1.2.9 → 1.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/lib/trio/cli.rb +1 -0
- data/lib/trio/project/gulpfile.js +16 -17
- data/lib/trio/project/package.json +21 -21
- data/lib/trio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b5f1b8ffb3f6a4b5775d1ad7aa2a78d0ba48df6
|
4
|
+
data.tar.gz: 99a5f0e5dc1f481fbbc4466ffb47f5210545fb06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaaa594d862bb07e120b27ceff378bde49c4848cf4ca3149492eb748cfb993040c2fbb846b63ac7abb00cd438a6523074df538f355173fb90e196c9961f1fb2a
|
7
|
+
data.tar.gz: b811a905679260c7523960d7e215cb8c09d270c2e8596872d169f5f7cc7f6096f9afe212391c0ee522ff1763a92d32da80b2fbefa15c09cc196ab20188646709
|
data/.gitignore
CHANGED
data/lib/trio/cli.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
'use strict';
|
2
|
-
var fs
|
3
|
-
|
4
|
-
var assets_path = path.normalize('{{ trio }}'),
|
2
|
+
var fs = require('fs'),
|
3
|
+
path = require('path'),
|
5
4
|
gulp = require('gulp'),
|
6
5
|
sass = require('gulp-sass'),
|
7
6
|
wait = require('gulp-wait'),
|
@@ -12,15 +11,14 @@ var assets_path = path.normalize('{{ trio }}'),
|
|
12
11
|
uglify = require('gulp-uglify'),
|
13
12
|
include = require('gulp-include'),
|
14
13
|
plumber = require('gulp-plumber'),
|
15
|
-
changed = require('gulp-changed'),
|
16
14
|
postcss = require('gulp-postcss'),
|
17
15
|
sprites = require('postcss-sprites'),
|
18
16
|
cssnano = require('cssnano'),
|
19
17
|
clearfix = require('postcss-clearfix'),
|
20
18
|
sassGlob = require('gulp-sass-glob'),
|
21
19
|
imagemin = require('gulp-imagemin'),
|
20
|
+
assetsPath = path.normalize('{{ trio }}'),
|
22
21
|
browserSync = require('browser-sync').create(),
|
23
|
-
changedInPlace = require('gulp-changed-in-place'),
|
24
22
|
autoprefixer = require('autoprefixer'),
|
25
23
|
processors = [
|
26
24
|
clearfix,
|
@@ -29,40 +27,40 @@ var assets_path = path.normalize('{{ trio }}'),
|
|
29
27
|
];
|
30
28
|
|
31
29
|
gulp.task('styles', function () {
|
32
|
-
gulp.src(
|
30
|
+
gulp.src(assetsPath + '/_sass/screen.scss')
|
33
31
|
.pipe(sassGlob())
|
34
32
|
.pipe(sass())
|
35
33
|
.pipe(postcss(processors))
|
36
34
|
.pipe(plumber())
|
37
35
|
.pipe(plumber.stop())
|
38
|
-
.pipe(gulp.dest(
|
36
|
+
.pipe(gulp.dest(assetsPath + '/css'))
|
39
37
|
.pipe(notify('Sass compiled'))
|
40
38
|
.pipe(browserSync.stream());
|
41
39
|
});
|
42
40
|
|
43
41
|
gulp.task('images', function() {
|
44
|
-
gulp.src(
|
45
|
-
.pipe(newer(
|
42
|
+
gulp.src(assetsPath+'/_images/**/*{jpg,png,gif,svg}')
|
43
|
+
.pipe(newer(assetsPath+'/img'))
|
46
44
|
|
47
45
|
.pipe(imagemin({
|
48
46
|
verbose: true
|
49
47
|
}))
|
50
|
-
.pipe(gulp.dest(
|
48
|
+
.pipe(gulp.dest(assetsPath+'/img'));
|
51
49
|
});
|
52
50
|
|
53
51
|
gulp.task('scripts', function() {
|
54
52
|
|
55
|
-
gulp.src(
|
53
|
+
gulp.src(assetsPath+'/_scripts/*.js')
|
56
54
|
.pipe(include({
|
57
55
|
includePaths: [
|
58
56
|
__dirname+"/bower_components",
|
59
|
-
|
57
|
+
assetsPath+"/_scripts",
|
60
58
|
]
|
61
59
|
}))
|
62
60
|
.pipe(plumber())
|
63
61
|
.pipe(plumber.stop())
|
64
62
|
.pipe(uglify())
|
65
|
-
.pipe(gulp.dest(
|
63
|
+
.pipe(gulp.dest(assetsPath+'/js'))
|
66
64
|
.pipe(notify({ message: 'Scripts compiled' }))
|
67
65
|
.pipe(browserSync.stream());
|
68
66
|
});
|
@@ -75,12 +73,13 @@ gulp.task('browser-sync', function(){
|
|
75
73
|
});
|
76
74
|
|
77
75
|
// Rerun the task when a file changes
|
76
|
+
//
|
78
77
|
gulp.task('watch', function() {
|
79
78
|
|
80
|
-
gulp.watch('_images/**/*', {cwd:
|
81
|
-
gulp.watch('_sass/**/*.scss', {cwd:
|
82
|
-
gulp.watch(
|
83
|
-
gulp.watch([
|
79
|
+
gulp.watch('_images/**/*', {cwd: assetsPath}, ['images']);
|
80
|
+
gulp.watch('_sass/**/*.scss', {cwd: assetsPath}, ['styles']);
|
81
|
+
gulp.watch(assetsPath+'/**/*{.html,.php,.slim,.rb}').on('change', browserSync.reload);
|
82
|
+
gulp.watch([assetsPath+'/_scripts/**/*.js', '!'+assetsPath+'/Javascripts/script.min.js'], ['scripts']);
|
84
83
|
|
85
84
|
});
|
86
85
|
|
@@ -6,28 +6,28 @@
|
|
6
6
|
"dependencies": {},
|
7
7
|
"devDependencies": {
|
8
8
|
"autoprefixer": "^6.7.7",
|
9
|
-
"browser-sync": "^2.18
|
9
|
+
"browser-sync": "^2.18",
|
10
10
|
"cssnano": "^3.10.0",
|
11
|
-
"gulp": "^3.9
|
12
|
-
"gulp-autoprefixer": "^4.0
|
13
|
-
"gulp-changed": "^2.0
|
14
|
-
"gulp-changed-in-place": "^2.2
|
15
|
-
"gulp-cssnano": "^2.1
|
16
|
-
"gulp-imagemin": "^3.2
|
17
|
-
"gulp-include": "^2.3
|
18
|
-
"gulp-less": "^3.3
|
19
|
-
"gulp-newer": "^1.3
|
20
|
-
"gulp-notify": "^3.0
|
21
|
-
"gulp-plumber": "^1.1
|
22
|
-
"gulp-postcss": "^6.4
|
23
|
-
"gulp-sass" : "^
|
24
|
-
"gulp-sass-glob" : "^
|
25
|
-
"gulp-rename": "^1.2
|
26
|
-
"gulp-uglify": "^2.1
|
27
|
-
"gulp-wait": "0.0
|
28
|
-
"gulp-watch": "^4.3
|
29
|
-
"postcss-clearfix": "^1.0
|
30
|
-
"postcss-sprites": "^4.2
|
11
|
+
"gulp": "^3.9",
|
12
|
+
"gulp-autoprefixer": "^4.0",
|
13
|
+
"gulp-changed": "^2.0",
|
14
|
+
"gulp-changed-in-place": "^2.2",
|
15
|
+
"gulp-cssnano": "^2.1",
|
16
|
+
"gulp-imagemin": "^3.2",
|
17
|
+
"gulp-include": "^2.3",
|
18
|
+
"gulp-less": "^3.3",
|
19
|
+
"gulp-newer": "^1.3",
|
20
|
+
"gulp-notify": "^3.0",
|
21
|
+
"gulp-plumber": "^1.1",
|
22
|
+
"gulp-postcss": "^6.4",
|
23
|
+
"gulp-sass" : "^3",
|
24
|
+
"gulp-sass-glob" : "^1.0",
|
25
|
+
"gulp-rename": "^1.2",
|
26
|
+
"gulp-uglify": "^2.1",
|
27
|
+
"gulp-wait": "0.0",
|
28
|
+
"gulp-watch": "^4.3",
|
29
|
+
"postcss-clearfix": "^1.0",
|
30
|
+
"postcss-sprites": "^4.2"
|
31
31
|
},
|
32
32
|
"scripts": {
|
33
33
|
"test": "echo \"Error: no test specified\" && exit 1"
|
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.10
|
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-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|