Commit d0b53ac7 authored by Philipp Nowinski's avatar Philipp Nowinski

[FEATURE] reorganization

parent f5742cb5
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
charset = utf-8
# Get rid of whitespace to avoid diffs with a bunch of EOL changes
trim_trailing_whitespace = true
# Unix-style newlines with a newline ending every file
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
# CSS-Files
[*.css]
indent_style = tab
indent_size = 4
# HTML-Files
[*.html]
indent_style = tab
indent_size = 4
# TMPL-Files
[*.tmpl]
indent_style = tab
indent_size = 4
# LESS-Files
[*.less]
indent_style = tab
indent_size = 4
# JS-Files
[*.js]
indent_style = tab
indent_size = 4
# JSON-Files
[*.json]
indent_style = tab
indent_size = 4
# PHP-Files
[*.php]
indent_style = tab
indent_size = 4
# ReST-Files
[*.rst]
indent_style = space
indent_size = 3
# MD-Files
[*.md]
indent_style = space
indent_size = 4
# package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
# TypoScript
[*.ts]
indent_style = tab
indent_size = 4
# XLF-Files
[*.xlf]
indent_style = tab
indent_size = 4
# SQL-Files
[*.sql]
indent_style = tab
indent_size = 2
const SassTask = require('./tasks/sass');
const arguments = require('yargs').argv;
if (arguments._.indexOf('css') >= 0) {
new SassTask('../web/typo3conf/ext/project_theme/Resources/Public/Sass/main.scss', './res.css').run();
}
module.exports = class task {
constructor(_input, _output, _configuration = {}) {
this._input = _input;
this._output = _output;
this._configuration = _configuration;
}
run() {
this.logError('Task is not implemented');
}
logError(_error) {
console.log(_error);
}
}
const Task = require('../task');
const sass = require('node-sass');
const fs = require('fs');
module.exports = class Sass extends Task {
run() {
sass.render({
file: this._input,
outputStyle: 'compressed'
}, (_error, _result) => {
if (!_error) {
fs.writeFile(this._output, _result.css, _error => {
if (_error) {
return this.logError(_error);
}
console.log('done');
});
} else {
this.logError(_error);
}
});
}
}
This diff is collapsed.
......@@ -8,56 +8,14 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "3.0.0-dev",
"license": "SEE LICENSE IN LICENSE.md",
"devDependencies": {},
"engines": {
"node": "~8.0.0"
"node": "~10.9.0"
},
"dependencies": {
"babel-preset-es2015": "^6.24.1",
"babelify": "^7.3.0",
"browser-sync": "^2.18.12",
"browserify": "^14.3.0",
"browsersync": "^0.0.1-security",
"eslint-formatter-pretty": "^1.1.0",
"event-stream": "^3.3.4",
"gulp": "github:gulpjs/gulp#4.0",
"gulp-autoprefixer": "^4.0.0",
"gulp-check-filesize": "^2.0.1",
"gulp-clean-css": "^3.3.1",
"gulp-css-image-dimensions": "^1.1.5",
"gulp-eslint": "^3.0.1",
"gulp-filter": "^5.0.0",
"gulp-hub": "^0.8.0",
"gulp-if": "^2.0.2",
"gulp-imagemin": "^3.2.0",
"gulp-inline-source": "^3.1.0",
"gulp-inline-svg": "^1.1.1",
"gulp-load-plugins": "^1.5.0",
"gulp-postcss": "^7.0.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^3.1.0",
"gulp-sourcemaps": "^2.6.0",
"gulp-svgmin": "^1.2.4",
"gulp-uglify": "^3.0.0",
"gulp-util": "^3.0.8",
"gulp.spritesmith": "^6.5.0",
"inquirer": "^3.0.6",
"json-format": "^1.0.1",
"lazypipe": "^1.0.1",
"lighthouse": "^2.0.0",
"merge-stream": "^1.0.1",
"opn": "^5.1.0",
"postcss-reporter": "^3.0.0",
"postcss-scss": "^1.0.0",
"replace-in-file": "^2.5.0",
"stylelint": "^7.10.1",
"stylelint-config-sgalinski": "^1.1.0",
"tsify": "^3.0.1",
"typescript": "^2.0.3",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0",
"yargs": "^8.0.1",
"yarn": "^0.27.5"
"node-sass": "^4.9.3",
"yargs": "^12.0.1"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
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