Numerous Pulls Merged

    acetone

    0.0.1 • Public • Published

    Acetone Build Status

    Wear gloves!

    Acetone is not a nth task based build tool ! It's a set of classes, exposed by a fluent api, allowing to structure your assets in an elegant manner, and offering a bridge to gulp tasks.

    Blocking :(

    No more blocking :)

    Todo

    • Fix tests
    • Refactor AcetoneIntrospector
    • Handle watchify --ignore-watch (to vendor libraries such as npm_modules or bower_components)
    • Same with sass

    Concepts

    Source

    Library

    Pool

    Api

    Plugins

    Installation

    $ npm install
    

    Usage

    var
        gulp    = require('gulp'),
        acetone = require('acetone')();
    
    /* ****** */
    /* Layout */
    /* ****** */
    
    acetone
        .layout('symfony')
        .layout('components')
        .layout('npm');
    
    /* ******* */
    /* Plugins */
    /* ******* */
    
    acetone.plugin('info');
    acetone.plugin('clean');
    acetone.plugin('sass')
        .pools
            .addSourcePool({src: 'sass/**/[!_]*.scss', dest: 'css'})
            .addLibraryPool({src: 'aaa/**/[!_]*.scss', dest: 'css/popo'})
            .addPool({src: 'lib/ccc/**/[!_]*.scss', dest: 'css/pupu'});
    acetone.plugin('fonts', 'copy')
        .pools
            .addSourcePool({src: 'fonts/**/*.*', dest: 'fonts'});
    acetone.plugin('images')
        .pools
            .addSourcePool({src: 'images/**/*.*', dest: 'images'});
    
    /* **** */
    /* Gulp */
    /* **** */
    
    gulp.task('default', ['build', 'watch']);
    
    gulp.task('build', ['sass', 'fonts', 'images']);
    gulp.task('watch', ['watch:sass']);
    
    gulp.task('info',  acetone.tasks('info').all());
    gulp.task('clean', acetone.tasks('clean').clean());
    
    // Sass
    gulp.task('sass', acetone.tasks('sass').build({
        sourcemaps:   acetone.options.is('dev'),
        minify:       !acetone.options.is('dev'),
        autoprefixer: true
    }));
    gulp.task('watch:sass', acetone.tasks('sass').watch({
        sourcemaps: true,
        autoprefixer: true
    }));
    
    // Fonts
    gulp.task('fonts', acetone.tasks('fonts').build());
    
    // Images
    gulp.task('images', acetone.tasks('images').build());
    

    Test

    $ npm test
    

    Keywords

    none

    Install

    npm i acetone

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • nervo