Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move off bower #189

Open
wants to merge 3 commits into
base: v2
Choose a base branch
from
Open

Move off bower #189

wants to merge 3 commits into from

Conversation

bvanderlaan
Copy link

This change set removes 🔥 Bower as the dependancy package manager and
switches over to NPM. Bower requires all packages to be in git and pulls
them out of a public git repo. NPM on the other hand is a registry of
packages and it has become the go to for JS package dependancy for both
Node and Browser applications. The Bower website even suggests moving
off Bower in favour of NPM/Yarn.

I chose to go with NPM over Yarn as currently NPM offers more features then Yarn and is reported as being faster then Yarn now.

Brad van der Laan added 2 commits June 8, 2018 22:43
I just perfer to see the dependancies at the bottom as they can tend to grow
and it makes it easier to view the more important stuff like meta info about
the package and the scripts in a terminal editor if they are at the top
This change set removes 🔥 Bower as the dependancy package manager and
switches over to NPM. Bower requiers all packages to be in git and pulls
them out of a public git repo. NPM on the other hand is a registry of
packages and it has become the go to for JS package dependancy for both
Node and Browser applications. The Bower website even suggests moving
off Bower in favor of NPM/Yarn.
With the change to move off bower I had to update angular-smart-table  because
NPM did not have the very old version we were using. The oldest 1.x version it
had was 1.4.12.

In angular-smart-table  1.4.2 however they refactored their smart-table.module.js
file to no longer pass in the angular global but instead refernce the ng
variable directly. This caused an issue with the Karma config as ng  is unknown.

Looking at lorenzofox3/Smart-Table@13da8c9#diff-40dfb1c53004f1488cbe6eb300b286dd
I see what they did for their Karma test config so this change set is just
copying that to ensure that the angular-smart-table  module is imported
propertly in the tests. This does not seem to be an issue in prod.
@xoxefdp
Copy link

xoxefdp commented Sep 6, 2020

It is critical to have this PR merged in order to be able to build the image on your own, dependencies on bower repository are broken!

Here i show a build intent using branch v2

Development_003 Development_004

Here i show a build intent using branch v2-stable (a custom one i made with this PR and a couple more merged https://github.com/xoxefdp/docker-registry-frontend/tree/v2-stable)

Development_005 Development_006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants