Commit 55e00a6d authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] add gulp task for compass + handle specification of extension name

parent 89e22364
'use strict';
var gulp = require('gulp'),
path = require('path'),
compass = require('gulp-compass'),
argv = require('yargs').argv,
extension = (function() {
if (typeof argv.ext === 'undefined') {
throw new Error('You have to specify the extension you want to work on with the --ext option.');
}
return argv.ext;
}()),
extensionPath = path.join('typo3conf', 'ext', extension),
sassPath = path.join(extensionPath, 'Resources', 'Public', 'Sass'),
cssPath = path.join(extensionPath, 'Resources', 'Public', 'StyleSheets');
gulp.task('css', function() {
return gulp.src(sassPath + './**/*.scss')
.pipe(compass({
config_file: path.join(extensionPath, 'config.rb'),
css: cssPath,
sass: sassPath
}))
.pipe(gulp.dest(cssPath));
});
{
"name": "package",
"version": "0.0.0",
"dependencies": {}
"name": "<%= projectName %>",
"description": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"gulp": "^3.8.10",
"gulp-compass": "^2.0.3",
"yargs": "^1.3.3"
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment