Code Monkey home page Code Monkey logo

Comments (12)

Dan9boi avatar Dan9boi commented on May 29, 2024

I see what you are saying, but in my world it is a question of seperation of concerns.
NPM is modules for the build tool, where bower is for frontend dependencies.
This helps the developer know where to look for frontend dependencies and doesn't have to look in the node_modules folder, as it is just for the build tool.

We already have gulp running bower, with the gulp-bower module, as for keeping it simple.

from novicell-frontend.

camaya avatar camaya commented on May 29, 2024

Hi Dani,

I understand your point, but I don't completely agree.
I'm all in for separation of concerns, but as I see it, the concern with bower is install frontend packages which npm is 100% capable of doing.
Also, I see that having just one tool is simpler than having two tools which means more configuration and dependencies, but I get that replacing bower with npm now means more work taking into account that everything is already configured so feel free to close this.

Cheers,
Cristhian.

from novicell-frontend.

Dan9boi avatar Dan9boi commented on May 29, 2024

No further comments? Then we are going to close this...

from novicell-frontend.

Dan9boi avatar Dan9boi commented on May 29, 2024

@marklonquist

from novicell-frontend.

Dan9boi avatar Dan9boi commented on May 29, 2024

Bower is losing it's take as the package manager for frontend libraries. This is getting more clear as the angular team has stated that angular 2, will never be available through bower (angular/angular#4018).

This means a lot, as the winning argument for keeping bower is separation of concerns. This is not any longer a valid argument, as angular 2 will only be available through npm.

We have some things to fix before removing bower completely, but I'm convinced that it is the way to go.
By using gulp-bower we can make gulp run bower install and help backenders only run one command, for building the frontend.

Things we need to fix:

  • Find a way to run npm install together with gulp, for backenders
  • Document how to use npm instead of bower. What is changed and how should i do now.

from novicell-frontend.

hesselberg avatar hesselberg commented on May 29, 2024

@Dan9boi Find a way to run npm install together with gulp, for backenders doesn't really make sense? You have to run npm install to get gulp up and running. I guess the "1 line to rule them all" would just be to chain the commands.
npm install && gulp

from novicell-frontend.

marklonquist avatar marklonquist commented on May 29, 2024

I understand what @Dan9boi means - In case new dependencies are added to the project, how will someone who updates through the repository know that these dependencies has been added.. With bower, they were installed automatically when running gulp.

from novicell-frontend.

hesselberg avatar hesselberg commented on May 29, 2024

Chaining the commands would solve that issue, but I see your point.
Another thing comes to mind; if the developer running the command isn't administrator, the npm install might not have access to writing new folders. I.e. runas/sudo commands might be needed.

from novicell-frontend.

Dan9boi avatar Dan9boi commented on May 29, 2024

@soreng did you have some input about yarn, and what it does.
Maybe we should look at that, if we are already making changes to our package manager setup...

from novicell-frontend.

hesselberg avatar hesselberg commented on May 29, 2024

I think we should stick to npm, and don't look at Yarn. Yarn is what... 3 weeks old? We don't know if they will abandon the project in a year or two.

Regarding bower, I agree, lets remove it, and replace everything with npm.

from novicell-frontend.

hesselberg avatar hesselberg commented on May 29, 2024

Lets push forward on this

from novicell-frontend.

Dan9boi avatar Dan9boi commented on May 29, 2024

This i now merged and we have now skipped bower.

from novicell-frontend.

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.