Giter Site home page Giter Site logo

buddy's People

Contributors

mariuslundgard avatar popeindustries avatar tolu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

buddy's Issues

add -t --test

Add flag for running a test command as specified in config.settings (similar to npm)

Error in module names when building on PC

On the Mac we get:

require.register('views/tiler/TilerView', function(module, exports, require) {

On the PC we get:

require.register('views/tiler\TilerView', function(module, exports, require) {

Notice the "" on second level in the paths in the PC build. When run the code still requires "views/tiler/TilerView" and fails.

Dependency install

  • need to address deeply nested dependencies
  • need to improve resource resolution: follow index.js require redirects

Builder.js callback reference error when using --test flag

My tests are running fine by them selves but I get an error when I run them using the --test flag:

ReferenceError: fn is not defined
    at /node_modules/buddy/lib/builder.js:258:4
    at ChildProcess.exithandler (child_process.js:630:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:730:16)
    at Socket.<anonymous> (child_process.js:943:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:451:12)

Should not fn() be passed in to the _executeScript function?

# builder.js line 246
Builder.prototype._executeScript = function() {
    var script;
    if (this.config.runtimeOptions.test && (script = this.config.settings.test)) {
        print('executing test script...', 2);
        debug("execute: " + (strong(this.config.settings.test)), 3);
        exec(script, function(err, stdout, stderr) {
            if (err) return fn(err);
            if (stdout) console.log(stdout);
            if (stderr) console.log(stderr);
            fn();
        });
    }
};

Error when installing Backbone as dependency

Manually removed all node_modules and everything installed by buddy. Then ran npm install followed by buddy install. Backbone specified as "[email protected]". Removing the Backbone dependency makes install run fine. Buddy clean also fails.

$ buddy install
loaded config /Users/oyvind/code/XXX/package.json
installing dependencies...
installed browser-require to lib/vendor
installed nib to lib/stylus
installed fastclick to lib/vendor
installed jquery to lib/vendor
installed backbone to lib/vendor
error: TypeError: Object # has no method 'sort'

/Users/oyvind/code/XXX/node_modules/buddy/node_modules/buddy-cli/index.js:14
throw err;
^
TypeError: Object # has no method 'sort'
at Request._callback (/Users/oyvind/code/XXX/node_modules/buddy-dependencies/lib/dependency.js:158:11)
at Request.self.callback

add 'bootstrap' option

Add 'bootstrap' option to config in order to enable a module to bootstrap itself:

{
  "input": "src/js",
  "output": "www/js",
  "bootstrap": true
}
require.register('foo', function(module, exports, require) {
...
});
// Boot me
require('foo');

Crashes while watching temp files

When using Netbeans (on Windows 7), Buddy can occasionally crash because it's watching temp files with the extension .0.nblh~ .. I think the ignored files pattern should add files ending with ~ ...

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.