Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

famous-dist-generator

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

famous-dist-generator

Build various dist versions of famous/famous. RequireJS, CommonJS, or standalone window.famous object

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-63.64%
Maintainers
2
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 09 Mar 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc