Skip to content

Commit

Permalink
Remove app dir from git index
Browse files Browse the repository at this point in the history
So that all app files are generated from src files.
  • Loading branch information
r7kamura committed Aug 24, 2015
1 parent 46d823d commit 0ccffc9
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .gitignore
@@ -1,5 +1,4 @@
/app/**/*.css
/app/**/*.js
/app
/node_modules
/npm-debug.log
/packages
1 change: 0 additions & 1 deletion app/renderer/fonts

This file was deleted.

26 changes: 24 additions & 2 deletions gulpfile.js
Expand Up @@ -2,11 +2,17 @@ var babel = require('gulp-babel');
var gulp = require('gulp');
var plumber = require('gulp-plumber');
var sass = require('gulp-sass');
var sym = require('gulp-sym');
var watch = require('gulp-watch');

gulp.task(
'compile',
['compile-es6', 'compile-scss']
[
'compile-es6',
'compile-html',
'compile-scss',
'compile-symlink'
]
);

gulp.task(
Expand All @@ -19,6 +25,14 @@ gulp.task(
}
);

gulp.task(
'compile-html',
function () {
gulp.src('src/**/*.html')
.pipe(gulp.dest('app'));
}
);

gulp.task(
'compile-scss',
function () {
Expand All @@ -28,9 +42,17 @@ gulp.task(
}
);

gulp.task(
'compile-symlink',
function () {
gulp.src('node_modules/font-awesome/fonts')
.pipe(sym('app/renderer/fonts', { force: true }));
}
);

gulp.task(
'watch',
function () {
gulp.watch('src/**/*.{js,scss}', ['compile']);
gulp.watch('src/**/*', ['compile']);
}
);
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -26,6 +26,7 @@
"gulp-babel": "^5.2.1",
"gulp-plumber": "^1.0.1",
"gulp-sass": "^2.0.4",
"gulp-sym": "0.0.14",
"gulp-watch": "^4.3.5"
},
"dependencies": {
Expand Down
File renamed without changes.

0 comments on commit 0ccffc9

Please sign in to comment.