Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Build task for Autotune is broken #24

Open
cbertelegni opened this issue Jan 9, 2018 · 0 comments
Open

The Build task for Autotune is broken #24

cbertelegni opened this issue Jan 9, 2018 · 0 comments
Assignees
Labels

Comments

@cbertelegni
Copy link
Contributor

This is an example for fix it.

gulpfile.js

// Cancha formaciones equipos generated on 2017-12-07 using https://github.com/LNtools/generator-lntool 0.6.0

var gulp = require('gulp');
var shell = require('gulp-shell');

var requireDir = require('require-dir');
requireDir('./gulp-tasks'),
runSequence = require('run-sequence')
;

var conf = require('./gulp_opts').conf;

gulp.task('default', ['browser-sync']);


gulp.task('build-autotune', ['build'], function(){
    var manifest = getManifest();

    return gulp.src('tmp', { read: false})
        .pipe(shell([
        'rm ./build -rf', // remove build folder
        'cp ./tmp build -rf', // create build folder
        'cp ./tmp build/preview -rf',
        'rm ./tmp -rf'
        ]))
});


gulp.task('build', ['make_manifest'], function(cb) { // build para Especiales

    runSequence(
       
        ['build_js', 'sass'],
        ['copy'],
        function(){
            // console.log("El Build de la aplicación se creó en  ----> %s <---- ok!", conf.dest);
            cb();
        });
});


function getManifest(){
    var fs = require('fs');
    try{
        var manifest = JSON.parse(fs.readFileSync('manifest.json', 'utf8'));
    }catch(e){
        console.warn("No se encontro el manifiest.json");
        var manifest = {};
        manifest.conf = {};
    }
    return manifest;
    
}
@cbertelegni cbertelegni added the bug label Jan 9, 2018
@cbertelegni cbertelegni self-assigned this Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant