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

  • 0.2.2
  • 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 clones the famous/famous repo and convert it to a npm compatible CommonJS format.

Usage

API

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

var ref = '6b2ad41b3c024a298d778e6344383d846ae7fa98';
var out = path.join(process.cwd(), 'famous-' + ref);


buildLib.writeCommonJS(ref, out, function(err) {
    if (err) { return console.error(err); }
    // do something here.
});

var minify = true;

buildLib.writeStandalone(ref, out, minify, function(err) {
    if (err) { return console.error(err); }
    // do something here.
});

CLI

Build a single JavaScript file that defines a famous property on window

$ famous-dist-generator --standalone --ref 0.2.1 --minify --out ./famous-standalone-0.2.1.js

Build a single JavaScript file that apes the legacy single file RequireJS version

$ famous-dist-generator --requirejs --ref 0.2.1 --minify --out ./famous-requirejs-0.2.1.js

dist-generator RequireJS-based Famous to CommonJS.

$ famous-dist-generator --commonjs --ref 0.2.1 --out ./famous-commonjs-0.2.1

Get the famous.css file for a specific version

$ famous-dist-generator --css --ref 0.2.1 --out ./famous-0.2.1.css

If you want to use a different Github repo URL to make Famo.us from, just set the FAMOUS_GITHUB_REPO_URL environment variable. The default value is 'git@github.com:Famous/famous.git'.

FAQs

Package last updated on 12 Nov 2014

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