moved scripts to bin/, added gulp tasks
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
@import "scss/setup.scss";
|
@import "setup.scss";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computation
|
* Computation
|
||||||
@@ -242,4 +242,4 @@ p {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@import "scss/custom.scss";
|
@import "custom.scss";
|
||||||
|
|||||||
Executable
@@ -24,11 +24,11 @@ do
|
|||||||
if [ -d $folder/$repo.git ];
|
if [ -d $folder/$repo.git ];
|
||||||
then
|
then
|
||||||
# if repos exists, pull
|
# if repos exists, pull
|
||||||
echo 'Pull $repo'
|
echo "Pull $repo"
|
||||||
git -C $folder/$repo.git pull origin master
|
git -C $folder/$repo.git pull origin master
|
||||||
else
|
else
|
||||||
# if repos does not exists, clone
|
# if repos does not exists, clone
|
||||||
echo 'clone $repo'
|
echo "clone $repo"
|
||||||
git clone $host/$repo.git $folder/$repo.git
|
git clone $host/$repo.git $folder/$repo.git
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
+25
@@ -0,0 +1,25 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
var gulp = require('gulp');
|
||||||
|
var wrap = require('gulp-wrap');
|
||||||
|
var sass = require('gulp-sass');
|
||||||
|
var rename = require('gulp-rename');
|
||||||
|
var shell = require('gulp-shell')
|
||||||
|
var watch = require('gulp-watch');
|
||||||
|
|
||||||
|
gulp.task('scss', function () {
|
||||||
|
gulp.src('./assets/css/styles.scss')
|
||||||
|
.pipe(sass().on('error', sass.logError))
|
||||||
|
.pipe(wrap('<style type="text/css">\n<%= contents %>\n</style>'))
|
||||||
|
.pipe(gulp.dest('./assets/css/dist'));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('build', shell.task([
|
||||||
|
'./bin/build.py'
|
||||||
|
]));
|
||||||
|
|
||||||
|
// default gulp task
|
||||||
|
gulp.task('default', ['scss'], function() {
|
||||||
|
gulp.watch('./assets/css/**/*.scss', ['scss']);
|
||||||
|
gulp.watch(['bin/build.py', './assets/css/**/*.scss', './assets/js/**/*.js', './templates/*.tpl.html'], ['build']);
|
||||||
|
});
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"name": "TDSM",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "html2print TDSM",
|
||||||
|
"main": "gulpfile.js",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"author": "Bachir Soussi Chiadmi",
|
||||||
|
"license": "MIT",
|
||||||
|
"homepage": "",
|
||||||
|
"devDependencies": {
|
||||||
|
"gulp": "",
|
||||||
|
"gulp-rename": "^1.2.2",
|
||||||
|
"gulp-sass": "^2.0.1",
|
||||||
|
"gulp-shell": "^0.5.2",
|
||||||
|
"gulp-watch": "^4.2.4",
|
||||||
|
"gulp-wrap": "^0.11.0"
|
||||||
|
},
|
||||||
|
"dependencies": {}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user