Socket
Book a DemoInstallSign in
Socket

acetone

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acetone

Handle your project's assets with style ! (and gulp)

0.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 07 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.