trio 1.2.9 → 1.2.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd92727e826f1f6fe7e0533437f36aa08d76dc98
4
- data.tar.gz: 77f51645711921fd5a2c598c5c0594c6d5a623ff
3
+ metadata.gz: 3b5f1b8ffb3f6a4b5775d1ad7aa2a78d0ba48df6
4
+ data.tar.gz: 99a5f0e5dc1f481fbbc4466ffb47f5210545fb06
5
5
  SHA512:
6
- metadata.gz: 1d01688be68a60f827abb081f21bb27328c995f6fa216424d13704ba7f23d5863db8c52d89336ee482077020cebfc503ac30f947fc43d86b55015e0817f6a201
7
- data.tar.gz: 90dee72d630ce67b86c6e6b4cd1b9999adaf62641048a058fe513ef624958050ff2c84ae07de5c81e3d75716770c50abe771670a3da9400750557017a0d302c8
6
+ metadata.gz: aaaa594d862bb07e120b27ceff378bde49c4848cf4ca3149492eb748cfb993040c2fbb846b63ac7abb00cd438a6523074df538f355173fb90e196c9961f1fb2a
7
+ data.tar.gz: b811a905679260c7523960d7e215cb8c09d270c2e8596872d169f5f7cc7f6096f9afe212391c0ee522ff1763a92d32da80b2fbefa15c09cc196ab20188646709
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
+ tags
1
2
  Gemfile.lock
2
- *.gem
3
+ *.gem
@@ -78,6 +78,7 @@ module Trio
78
78
 
79
79
  self.add_trio trio_path, '.'
80
80
 
81
+ gsub_file 'gulpfile.js', /{{ trio }}/, trio_path unless !File.exists? 'gulpfile.js'
81
82
  else
82
83
 
83
84
  self.show_message 'trio_options', 'red'
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
- var fs = require('fs');
3
- var path = require('path');
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(assets_path + '/_sass/screen.scss')
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(assets_path + '/css'))
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(assets_path+'/_images/**/*{jpg,png,gif,svg}')
45
- .pipe(newer(assets_path+'/img'))
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(assets_path+'/img'));
48
+ .pipe(gulp.dest(assetsPath+'/img'));
51
49
  });
52
50
 
53
51
  gulp.task('scripts', function() {
54
52
 
55
- gulp.src(assets_path+'/_scripts/*.js')
53
+ gulp.src(assetsPath+'/_scripts/*.js')
56
54
  .pipe(include({
57
55
  includePaths: [
58
56
  __dirname+"/bower_components",
59
- assets_path+"/_scripts",
57
+ assetsPath+"/_scripts",
60
58
  ]
61
59
  }))
62
60
  .pipe(plumber())
63
61
  .pipe(plumber.stop())
64
62
  .pipe(uglify())
65
- .pipe(gulp.dest(assets_path+'/js'))
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: 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']);
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.8",
9
+ "browser-sync": "^2.18",
10
10
  "cssnano": "^3.10.0",
11
- "gulp": "^3.9.1",
12
- "gulp-autoprefixer": "^4.0.0",
13
- "gulp-changed": "^2.0.0",
14
- "gulp-changed-in-place": "^2.2.0",
15
- "gulp-cssnano": "^2.1.2",
16
- "gulp-imagemin": "^3.2.0",
17
- "gulp-include": "^2.3.1",
18
- "gulp-less": "^3.3.0",
19
- "gulp-newer": "^1.3.0",
20
- "gulp-notify": "^3.0.0",
21
- "gulp-plumber": "^1.1.0",
22
- "gulp-postcss": "^6.4.0",
23
- "gulp-sass" : "^2.0.4",
24
- "gulp-sass-glob" : "^0.0.2",
25
- "gulp-rename": "^1.2.2",
26
- "gulp-uglify": "^2.1.2",
27
- "gulp-wait": "0.0.2",
28
- "gulp-watch": "^4.3.11",
29
- "postcss-clearfix": "^1.0.0",
30
- "postcss-sprites": "^4.2.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" : "^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"
@@ -1,3 +1,3 @@
1
1
  module Trio
2
- VERSION = '1.2.9'
2
+ VERSION = '1.2.10'
3
3
  end
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.9
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-06-19 00:00:00.000000000 Z
11
+ date: 2017-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git