gatch 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gatch.gemspec +2 -2
- data/lib/gatch/cli.rb +2 -4
- data/lib/gatch/version.rb +1 -1
- metadata +4 -6
- data/gatch-config.json +0 -8
- data/gulpfile.js +0 -36
- data/package.json +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db98f1e2734cd0a1bb5cba97339fbe8c11cadcd6
|
4
|
+
data.tar.gz: 89f11b223b329fd64a3dafdaf486807100195e8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 699e9200e89564cb20f34dce8472e451425b1a6368baca9d4691ac6142957f35a27dad19b6aec9f882b512b9fee2948061c1e3b78dab3c764f20a48412e032ae
|
7
|
+
data.tar.gz: 077aed546e36abf3325babdd3456b4d4cc5270871a129c94f46823ce300eec46b86980e9c078f4fa88f776e87e813bad35dec9a24a5261d03b2b9055cf8a56fd
|
data/gatch.gemspec
CHANGED
@@ -15,8 +15,8 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
-
spec.bindir = "
|
19
|
-
spec.executables =
|
18
|
+
spec.bindir = "bin"
|
19
|
+
spec.executables = ['gatch']
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
22
|
spec.add_development_dependency "bundler", "~> 1.11"
|
data/lib/gatch/cli.rb
CHANGED
@@ -18,12 +18,10 @@ module Gatch
|
|
18
18
|
|
19
19
|
desc 'init','set up gatch'
|
20
20
|
def init()
|
21
|
-
system("
|
22
|
-
system("cd gatch")
|
23
|
-
system("git clone https://github.com/rinov/gatch")
|
21
|
+
system("git clone https://github.com/rinov/gatch-gulp")
|
24
22
|
end
|
25
23
|
|
26
|
-
desc '
|
24
|
+
desc 'run','run gatch'
|
27
25
|
def start()
|
28
26
|
system("gulp")
|
29
27
|
end
|
data/lib/gatch/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Ishikawa
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
@@ -69,7 +69,8 @@ dependencies:
|
|
69
69
|
description: It can preview your web side when you work on local environment.
|
70
70
|
email:
|
71
71
|
- ryo31330023@gmail.com
|
72
|
-
executables:
|
72
|
+
executables:
|
73
|
+
- gatch
|
73
74
|
extensions: []
|
74
75
|
extra_rdoc_files: []
|
75
76
|
files:
|
@@ -84,13 +85,10 @@ files:
|
|
84
85
|
- bin/console
|
85
86
|
- bin/gatch
|
86
87
|
- bin/setup
|
87
|
-
- gatch-config.json
|
88
88
|
- gatch.gemspec
|
89
|
-
- gulpfile.js
|
90
89
|
- lib/gatch.rb
|
91
90
|
- lib/gatch/cli.rb
|
92
91
|
- lib/gatch/version.rb
|
93
|
-
- package.json
|
94
92
|
homepage: https://github.com/rinov
|
95
93
|
licenses:
|
96
94
|
- MIT
|
data/gatch-config.json
DELETED
data/gulpfile.js
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
//Created by rinov on 2016/4/23
|
2
|
-
//LICENSE : MIT
|
3
|
-
|
4
|
-
var gulp = require('gulp');
|
5
|
-
var plumber = require('gulp-plumber');
|
6
|
-
var browser = require('browser-sync');
|
7
|
-
var spider = require('./gatch-config.json');
|
8
|
-
|
9
|
-
var watches = spider.watch;
|
10
|
-
var target = spider.target
|
11
|
-
|
12
|
-
gulp.task('backup',function(){
|
13
|
-
});
|
14
|
-
|
15
|
-
gulp.task('reload',function(){
|
16
|
-
gulp.src(target)
|
17
|
-
.pipe(browser.reload({stream:true}));
|
18
|
-
});
|
19
|
-
|
20
|
-
gulp.task('watch',function(){
|
21
|
-
var length = watches.length;
|
22
|
-
for(var i = 0; i < length; i++){
|
23
|
-
gulp.watch(watches[i],['reload']);
|
24
|
-
}
|
25
|
-
});
|
26
|
-
|
27
|
-
gulp.task('sync',function(){
|
28
|
-
browser({
|
29
|
-
server:{
|
30
|
-
baseDir:'../',
|
31
|
-
directory:true
|
32
|
-
}
|
33
|
-
});
|
34
|
-
});
|
35
|
-
|
36
|
-
gulp.task('default',['backup','sync','watch']);
|
data/package.json
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "Your site name",
|
3
|
-
"version": "1.0.0",
|
4
|
-
"description": "This file is used for install node_modules.",
|
5
|
-
"main": "index.js",
|
6
|
-
"scripts": {
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
-
},
|
9
|
-
"author": "rinov",
|
10
|
-
"license": "MIT",
|
11
|
-
"devDependencies": {
|
12
|
-
"browser-sync": "^2.12.3",
|
13
|
-
"gulp": "^3.9.1",
|
14
|
-
"gulp-plumber": "^1.1.0",
|
15
|
-
"gulp-webserver": "^0.9.1"
|
16
|
-
}
|
17
|
-
}
|