Allow ignore specific bower components
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- angularjs, javascript
- Domain
- tooling
Research direction
Start in index.js around the module configuration and the moduleName check referenced in the issue. Review how debowerify is invoked as a browserify transform, then verify that an ignoreModules option can exclude a named Bower component such as angular while other components continue to load.
Written by the indexing model from the issue text.
Description
Hello , currently i am developing angular.js application with browserify . I am using both NPM + Bower, but i am facing problem that i have installed angular both in bower and npm , but i want to force load it from npm, because bower repo is broken for browserify. Also some modules has newer version in npm repos than bower (but some other modules has its dependecy so it is force loaded via bower)
Currently i made this changes to debowerify
https://github.com/eugeneware/debowerify/blob/master/index.js#L8
module.exports = function (file, options, module_options) {
var defaultConfig = {
ignoreModules : []
};
var bowerModules;
if (!options) options = {};
module_options = module_options || defaultConfig;
i made new function parameter to set debowerify options , so i can pass my new ignoreModules parameter.
Then i skipped this module here
https://github.com/eugeneware/debowerify/blob/master/index.js#L100
//break if module should be ignored
if(module_options.ignoreModules.indexOf(moduleName) !== -1) return;
then i adjusted my browserify build to :
bundler.transform(function(file,options) {
var config = { ignoreModules : [
'angular'
]};
return debowerify(file,options,config)
});
Let me know if this is worth of PR or i should make own forked version of debowerify. Thanks.
- Dominant language
- JavaScript
- Stars
- 491
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eugeneware/debowerify
-
Difficulty 2/5 1-3 hours Newbie friendliness 18/100
eugeneware/debowerify#89 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
eugeneware/debowerify#87 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
eugeneware/debowerify#86 · 1 comment · 2 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
eugeneware/debowerify#84 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
eugeneware/debowerify#83 · 2 comments · 1 reaction ·
All issues in eugeneware/debowerify
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
AOSSIE-Org/BabyNest#284 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
seek4science/seek#2762 ·
Maintainers usually reply within 5 days
-
feedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
githubnext/gh-aw-workshop#5009 ·
Maintainers usually reply within 1 day
-
Clinic sharing: fast sync refusal message suggests Delete Data, which only developer builds haveOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
avniproject/avni-client#2228 ·
-
Add: K+ Sport 2 LogoOpencheck:passed logos:add
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 6 days