Neutron Polarization Manipulator

npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

famous-dist-generator

1.2.0 • Public • Published

famous-dist-generator

Build Status Dependency Status devDependency Status

This module allows you to convert Famo.us to the various ways it is consumed in production. It is generic enough that it should be able to work for any project that is architected in a similar

Usage

API

var distGenerator = require('famous-dist-generator');
var path = require('path');

var src = path.join(path-to-famous, 'src');
var dest = path.join(process.cwd(), 'famous.js');
distGenerator.standalone(src, dest, function (err) {
    if (err) { return console.error(new Error(err)); }
    //do something
});

var minify = true;

distGenerator.standalone(src, dest, minify, function (err) {
    if (err) { return console.error(new Error(err)); }
    //do something
});

CLI

Build a single JavaScript file that supports AMD, commonJS, and a global object version of famous

$ famous-dist-generator path-to-src path-to-output/famous-global.js

Build a single JavaScript file utilizing the AMD api supported by RequireJS

$ famous-dist-generator path-to-src path-to-output/famous.js --amd

Convert the entire src directory from AMD to common (output is a folder that is ready to publish to npm)

$ famous-dist-generator path-to-src path-to-output/ --common

Copy famous.css from the src folder to your output folder

$ famous-dist-generator path-to-src path-to-output --css

Keywords

none

install

npm i famous-dist-generator

Downloadsweekly downloads

0

version

1.2.0

license

MPLv2

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability