Code Monkey home page Code Monkey logo

Comments (3)

oori avatar oori commented on June 23, 2024

bower-install is already in there.. see Gruntfile.js ---- @diegonetto is right..
https://github.com/diegonetto/generator-ionic/blob/master/templates/common/Gruntfile.js#L138

from generator-ionic.

diegonetto avatar diegonetto commented on June 23, 2024

The grunt bower-install task doesn't actually run bower install. It injects dependencies managed by bower into your index.html files so you don't have to. Here's the plugin - https://github.com/stephenplusplus/grunt-bower-install

There are two schools of thought when it comes to managing the bower_components and node_modules directories. There are arguments that support both excluding them from version control and having the final build system pull them in, or packaging them with your repository.

This issue got more coverage when the NPM registry went down for a bit last year, causing many build systems to hang. Here's a great post by @addyosmani on checking in front end dependencies.

For now, I think we should leave it up to the user's discretion. Tapping into githooks and having it run npm install && bower install on the post-merge hook would probably be the way I'd handle it.

from generator-ionic.

jeromerg avatar jeromerg commented on June 23, 2024

Thank you for the detailed response! That's exactly the dilemma I was confronted to. But I understand your decision.

Githooks are outside the build-process and everyone has to configure it on his own... I am currently aiming at simplifying the build process, so that the other programmers can easily build and run an app and its server. So it is not an alternative for my current issue.

from generator-ionic.

Related Issues (20)

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.