GithubHelp home page GithubHelp logo

lineman-bower's People

Contributors

jandudulski avatar jasonkarns avatar jayharris avatar searls avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lineman-bower's Issues

wrench.js is deprecated

npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.

I'm not sure how it affects the functionality.

Read Clean directory from .bowerrc

To keep the Lineman configuration from getting out of sync with .bowerrc, read from .bowerrc to get the bower installation directory, and use this value for the Clean task.

lineman-bower does not copy dependencies by default

By default, lineman-bower will not copy new dependencies into the /vendor/bower. I'm not a Bower expert, but I thought that lineman-bower would let me specify JS dependencies and have them automatically included in my Lineman app...but it doesn't by default. Why? Am I overlooking some other use case for Bower?

https://github.com/linemanjs/lineman-bower/blob/master/config/plugins/bower.coffee#L18

bower:
   install:
     options:
       copy: false

To install dependencies with Bower, I had to override this config in /config/application.js.

At the very least, the documentation should be updated to mention this behavior and how to override it (and yes, I am volunteering to update the docs if this is an appropriate solution).

Using require() statements which refer to vendor/bower/ don't work. Possibly incompatibility with lineman-browserify?

I basically copied the example in the README and lineman build failed:

Running "browserify:common" (browserify) task
Verifying property browserify.common exists in config...OK
Files: app/js/entrypoint.coffee -> generated/js/browserify.js
>> Error: module "jquery" not found from "my_lineman_app/app/js/entrypoint.coffee"
Warning: Error running grunt-browserify. Use --force to continue.

app/js/entrypoint.coffee

window.$ = require('jquery')(window);
require("./hello")

config/files.js

module.exports = function(lineman) {
  return {
    //Override file patterns here
    js: {
      vendor: [
        "vendor/bower/jquery/dist/jquery.js",
        "vendor/js/**/*.js"
      ]
    }
  };
};

Issue with arge number of files + nested file structure in vendor/bower

With the introduction of the vendor/bower directory, we need to add "vendor/bower" to the watch ignore option.

Ref: testem/testem#301

Details:
I have tested this where I have lot of directories in the vendor/bower directory and if I run "lineman spec", then it fails with error watch: EMFILE. (see Ref)

It seems that testem + fireworm have addressed this issue and bumped the version up.

Solution:

  1. Add skipDirEntryPatterns:['node-modules', 'vendor/bower', '.*'] to fireworm config via this module
  2. Update testem+fireworm in lineman itself.
  3. Update the README to suggest the bower directory be created under the node_modules

Since this module creates 'vendor/bower', it would be nice that it would also handle the testem+firewom config directly.

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.