Comments (12)
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.
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.
No further comments? Then we are going to close this...
from novicell-frontend.
from novicell-frontend.
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 withgulp
, for backenders - Document how to use npm instead of bower. What is changed and how should i do now.
from novicell-frontend.
@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.
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.
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.
@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.
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.
Lets push forward on this
from novicell-frontend.
This i now merged and we have now skipped bower.
from novicell-frontend.
Related Issues (20)
- Best practice code examples
- Refactor existing patterns HOT 1
- Don't render cookie info in _preview.hbs HOT 2
- Test slack integration HOT 1
- Make intelligent import function HOT 1
- Support for screens on bigger resolutions HOT 7
- Search field in Fractal HOT 1
- Logo download page in Fractal under "Design Guidelines" HOT 1
- @ sign is no recognized as path HOT 1
- CreateComponent failing with mkdir HOT 5
- Suggestion: Code styling HOT 3
- Feature request: sprites script to handle multi coloured, multi layered svgs HOT 4
- Sprites task Linux is returning only first file in the GLOB HOT 2
- Create component: Add class to CSS file HOT 14
- CSS for backoffice HOT 11
- Use production Vue HOT 1
- Fix security vulnerabilities
- Duplicated config key
- Video: Autoplay not playing with fullscreen video HOT 1
- Replace uglify with terser HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from novicell-frontend.