<commit_before>var gulp = require('gulp');
var rename = require('gulp-rename');
var pump = require('pump')
var lec = require('gulp-line-ending-corrector');

/////////////////////
////////PATHS////////
/////////////////////

var mainScss = './src/scss/ceres.scss';

var scssInput = './src/scss/**/*.scss';
var scssOutput = './dist/css';

var jsInput = './src/js/**/*.js';
var jsOutput = './dist/js/';

var testOutput = './test';

var jadeInput = './src/jade/*.jade';
var jadeOutput = './doc/';

/////////////////////
/////////CSS/////////
/////////////////////
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var cleanCss = require('gulp-clean-css');
var sourcemaps = require('gulp-sourcemaps');

gulp.task('sass', function (cb) {
   pump([
      gulp.src(mainScss),
      lec(),
      sourcemaps.init(),
      sass().on('error', onError),
      autoprefixer(),
      gulp.dest(scssOutput),
      sourcemaps.write(),
      gulp.dest(testOutput),
      cleanCss(),
      rename("ceres.min.css"),
      gulp.dest(scssOutput),
   ],cb);
});

/////////////////////
/////////JS//////////
/////////////////////
var uglify = require('gulp-uglify');
var concatJS = require('gulp-concat');

gulp.task('js', function (cb) {
   pump([
      gulp.src(jsInput),
      concatJS('ceres.js'),
      gulp.dest(jsOutput),
      gulp.dest(testOutput),
      uglify().on('error', onError),
      rename("ceres.min.js"),
      gulp.dest(jsOutput),
   ],cb);
});

/////////////////////
////////JADE/////////
/////////////////////
// var jade = require('gulp-file-include');

// gulp.task('jade', function (cb) {
//    var YOUR_LOCALS = { }
//    pump([
//       gulp.src('./src/jade/*.jade'),
//       jade({
//          locals: YOUR_LOCALS
//       }),
//       gulp.dest('./doc/')
//    ],cb);
// });

/////////////////////
////////WATCH////////
/////////////////////

gulp.task('watchCSS', function() {
   return gulp
   .watch(scssInput, ['sass']);
});

gulp.task('watchJS', function() {
   return gulp
   .watch(jsInput, ['js']);
});

// gulp.task('watchJade', function() {
//    return gulp
//    .watch(jadeInput, ['jade']);
// });

/////////////////////
///////DEFAULT///////
/////////////////////

// gulp.task('default', ['js', 'sass', 'jade', 'watchCSS', 'watchJS', 'watchJade']);
gulp.task('default', ['js', 'sass', 'jade', 'watchCSS', 'watchJS']);

function onError(err) {
   console.log(err);
   this.emit('end');
}<commit_msg>Setting things up with gulp (removed stuff from other project)<commit_after>var gulp = require('gulp');
var rename = require('gulp-rename');
var pump = require('pump')
var lec = require('gulp-line-ending-corrector');

/////////////////////
////////PATHS////////
/////////////////////

var mainScss = './src/scss/mstepper.scss';

var scssInput = './src/scss/**/*.scss';
var scssOutput = './dist/css';

var jsInput = './src/js/**/*.js';
var jsOutput = './dist/js/';

var docsInput = './src/html_docs/index.html';
var docsOutput = './docs/';

/////////////////////
/////////CSS/////////
/////////////////////
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var cleanCss = require('gulp-clean-css');
var sourcemaps = require('gulp-sourcemaps');

gulp.task('sass', function (cb) {
   pump([
      gulp.src(mainScss),
      lec(),
      sourcemaps.init(),
      sass().on('error', onError),
      autoprefixer(),
      gulp.dest(scssOutput),
      sourcemaps.write(),
      cleanCss(),
      rename("mstepper.min.css"),
      gulp.dest(scssOutput),
   ], cb);
});

/////////////////////
/////////JS//////////
/////////////////////
var uglify = require('gulp-uglify');
var concatJS = require('gulp-concat');

gulp.task('js', function (cb) {
   pump([
      gulp.src(jsInput),
      concatJS('mstepper.js'),
      gulp.dest(jsOutput),
      gulp.dest(testOutput),
      uglify().on('error', onError),
      rename("mstepper.min.js"),
      gulp.dest(jsOutput),
   ], cb);
});

/////////////////////
////////HTML/////////
/////////////////////
var fileInclude = require('gulp-file-include');

gulp.task('html', function (cb) {
   pump([
      gulp.src(docsInput),
      fileinclude({
         prefix: '@@',
         basepath: '@file'
      }),
      gulp.dest(docsOutput)
   ], cb);
});

/////////////////////
////////WATCH////////
/////////////////////

gulp.task('watchCSS', function () {
   return gulp.watch(scssInput, ['sass']);
});

gulp.task('watchJS', function () {
   return gulp.watch(jsInput, ['js']);
});

gulp.task('watchHTML', function () {
   return gulp.watch(jadeInput, ['html']);
});

/////////////////////
///////DEFAULT///////
/////////////////////

gulp.task('default', ['js', 'sass', 'jade', 'watchCSS', 'watchJS', 'watchHTML']);

function onError(err) {
   console.log(err);
   this.emit('end');
}
{'fraction_non_alphanumeric': 0.33041484260996457, 'fraction_numerical': 0.0, 'mean_word_length': 1.8407341622261693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1138959', 'n_tokens_mistral': 1605, 'n_tokens_neox': 1611, 'n_words': 275}