Skip to content

Consolidate dependency management on npm #372

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

Conversation

dlabrecq
Copy link
Member

@dlabrecq dlabrecq commented Dec 10, 2016

This PR consolidates the angular-patternfly dependency management on npm for the pf 4 branch.

https://patternfly.atlassian.net/browse/PTNFLY-2035

Note that I'm using lodash-amd in package.json. The npm version of lodash is written for Node.js and uses require to load.

Also note that lodash no longer supports _.findWhere or _.remove. I had to replace functionality in filter-directive.js with _.find and _.filter.

@dlabrecq dlabrecq force-pushed the branch-4.0-npm-dependencies branch 3 times, most recently from 7cd3aff to 3d27b47 Compare December 11, 2016 02:35
@dlabrecq dlabrecq force-pushed the branch-4.0-npm-dependencies branch from 3d27b47 to 0666bda Compare December 11, 2016 02:43
@dtaylor113
Copy link
Member

Hi, LGTM. Our README.md needs to be updated, it still refers to:

<!-- Angular -->
<script src="bower_components/angular/angular.min.js"></script>

<!-- Angular-Bootstrap -->
<script src="bower_components/angular-bootstrap/ui-bootstrap.min.js"></script>
<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>

Thanks,

  • Dave

@dlabrecq
Copy link
Member Author

Thanks, Dave. I updated the readme as well.

@dtaylor113
Copy link
Member

I think you missing the 'd' in 'dependency' for this PR title 😄 thank

@dlabrecq dlabrecq changed the title Consolidate ependency management on npm Consolidate dependency management on npm Dec 12, 2016
@dlabrecq
Copy link
Member Author

Anyone else want to review? @bleathem @dgutride

@dlabrecq
Copy link
Member Author

Last chance to review. Going once, twice...

- 'git checkout -B $TRAVIS_BRANCH' # Reconcile detached HEAD
- 'npm install -g bower grunt-cli'
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
- npm install -g bower grunt-cli

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need to install bower here if we're no longer using it?

Copy link
Member Author

@dlabrecq dlabrecq Dec 19, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need bower to build, but Travis still needs to verify the bower install during the release process. (Still supporting both npm and bower installs.) In order for the Travis build to succeed, we still need this line -- for now.

FYI, the Travis build (i.e., the scripts from patternfly-eng-release) will still perform an npm and bower install for all our repos. That is, if there is a bower.json file available. During a release, the scripts will also perform an npm and bower install to verify.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@jeff-phillips-18 jeff-phillips-18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jeff-phillips-18 jeff-phillips-18 merged commit e04cea6 into patternfly:branch-4.0-dev Dec 20, 2016
@dlabrecq dlabrecq deleted the branch-4.0-npm-dependencies branch December 21, 2016 18:42
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.

4 participants