Skip to content

Commit 79d4b9e

Browse files
committed
Added basic deploy task to ghpages
1 parent 7b03449 commit 79d4b9e

File tree

9 files changed

+96
-0
lines changed

9 files changed

+96
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea
2+
dist
3+
.publish
4+
node_modules

gulp/build.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var gulp = require('gulp');
2+
3+
module.exports = function(options){
4+
5+
gulp.task('build', function(){
6+
7+
gulp.src([options.src + "/**/*.*"])
8+
.pipe(gulp.dest(options.dist));
9+
});
10+
11+
12+
}

gulp/deploy.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
var gulp = require('gulp');
2+
3+
module.exports = function(options){
4+
5+
gulp.task('deploy', function(){
6+
7+
});
8+
9+
10+
}

gulp/serve.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var gulp = require('gulp');
2+
var ghPages = require('gulp-gh-pages');
3+
4+
5+
module.exports = function(options){
6+
7+
gulp.task('deploy', ['build'], function(){
8+
gulp.src(options.dist + "/**/*.*")
9+
.pipe(ghPages());
10+
});
11+
12+
13+
}

gulpfile.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
var gulp = require('gulp');
2+
var wrench = require('wrench');
3+
4+
var options = {
5+
src: 'src',
6+
dist: 'dist'
7+
}
8+
9+
wrench.readdirSyncRecursive('./gulp')
10+
.filter(function(file){
11+
return (/\.js$/i).test(file);
12+
})
13+
.map(function(file){
14+
require('./gulp/' + file)(options);
15+
});
16+

package.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "jsisrael",
3+
"version": "0.0.0",
4+
"description": "JavaScript Israel Website",
5+
"main": "gulpfile.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "",
10+
"license": "ISC",
11+
"devDependencies": {
12+
"gulp": "^3.8.11",
13+
"gulp-gh-pages": "^0.5.1",
14+
"wrench": "^1.5.8"
15+
}
16+
}

src/CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
www.jsisrael.com

src/favicon.ico

1.12 KB
Binary file not shown.

src/index.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!doctype html>
2+
<html>
3+
4+
<head>
5+
<title>JavaScript Israel - The Largest JavaScript Group In Israel</title>
6+
<meta charset="utf-8">
7+
<meta name="viewport" content="width=device-width">
8+
<meta name="description" content="JavaScript Israel is a Meetup and Facebook group
9+
with the main goal of sharing JavaScript knowledge in a fun way"/>
10+
11+
<link rel="icon" href="/favicon.ico" type="text/x-icon"/>
12+
<link rel="shortcut icon" href="/favicon.ico" type="text/x-icon"/>
13+
</head>
14+
15+
16+
<body>
17+
18+
JavaScript Israel
19+
20+
</body>
21+
22+
23+
24+
</html>

0 commit comments

Comments
 (0)