Giter Club home page Giter Club logo

componenter's Introduction

componenter

Install and build components programatically

install

$ npm install componenter

usage

Componenter will install and build components for you in one hit

var Componenter = require('componenter')
var project = Componenter('/my/project')

// this will remove existing components/build folder for a fresh install
project(true, function(err){

	// /my/project/components and /my/project/build now exists
})

You can use the 'install' and 'build' functions seperately:

// this will not remove the old components folder
project.install(function(err){

	// this will remove the old build folder
	project.build(true, function(err){

	})
})

api

var project = Componenter(folderPath)

Create a new project by passing a folder path and the folder contains a component.json

project(autoRemove)

Run project.install then project.build - autoRemove will delete folders before each step

project.install(autoRemove)

Run component install in the project folder - autoRemove will remove the components folder and result in a fresh install (i.e. pulling the latest components from github)

project.build(autoRemove)

Run component build in the project folder - autoRemove will remove the build folder

licence

MIT

componenter's People

Contributors

binocarlos avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.