Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

feature: specify .cson file at command line #13

Closed
mikesmullin opened this Issue · 3 comments

3 participants

@mikesmullin

because i want to combine to two files: production.js and development.js
so i would like to have two buildr instances for that
but i guess for now i can just run builder from two different directories, each containing their own buildr.cson

@balupton
Owner
# Requires
buildr = require 'buildr'

# Configs
configs =
    # Bundled
    bundled:
        # Paths
        srcPath: __dirname+'/src'

        # Order
        scriptsOrder: [
            'production.js'
            'development.js'
        ]

        # Bundling
        bundleScriptPath: __dirname+'/out/bundled.js'

# Buildrs
buildrs =
    bundled: buildr.createInstance configs.bundled

# Process
buildrs.bundled.process()

should be what you're after

@brandonramirez
Collaborator

@ mikesmullin: This is now available in my fork. I haven't released a build on github yet, but if you checkout master and build it yourself, you should be able to do a $ ./bin/buildr -f production.json.

Note that I switched from cson to json because the cson module was buggy and I didn't care to fix it.

I also don't publish to the npm registry yet.

@brandonramirez
Collaborator

Implemented in commit 4384c5e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.