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

[META] Where do our libraries live? #8

Closed
mrjmd opened this issue Apr 8, 2016 · 7 comments
Closed

[META] Where do our libraries live? #8

mrjmd opened this issue Apr 8, 2016 · 7 comments
Assignees

Comments

@mrjmd
Copy link
Owner

mrjmd commented Apr 8, 2016

As of this moment, React and Angular 2 are both included in our code base, inside their framework sub-modules under assets/vendor directories.

This is unsustainable for multiple reasons, and we need to figure out how these libraries will be included in projects.

@mark-casias
Copy link
Collaborator

Started refactoring these into npm package.json files. the node_modules layout is a little bit different than what we have put into our repo and I am not sure which packages to reference on a few. We'll talk about this on Tuesday (training all day Monday). See my branch 'features/markie/8-packaging'

@mark-casias
Copy link
Collaborator

and then there's this: https://www.drupal.org/developing/api/8/assets#external

angular.angularjs:
remote: https://github.com/angular/angular.js
version: 1.4.4
license:
name: MIT
url: https://github.com/angular/angular.js/blob/master/LICENSE
gpl-compatible: true
js:
https://ajax.googleapis.com/ajax/libs/angularjs/1.4.4/angular.min.js: { type: external, minified: true }

@mrjmd
Copy link
Owner Author

mrjmd commented Apr 21, 2016

Can you PR your branch with progress on this just so we can see the diff?

@mark-casias
Copy link
Collaborator

PR: #18 for your mocking goodness.

@mrjmd
Copy link
Owner Author

mrjmd commented Apr 27, 2016

On further consideration I think loading externally in our libraries might be the perfect way to handle this, at least for our POC. It will allow us to keep the libraries out of the filesystem without adding additional dependencies.

In any case, the PR above needs latest merged into it.

@mark-casias
Copy link
Collaborator

This can probably be closed per PR: #31 or we can continue the discussion. Both the react and NG2 libraries load from the externals.

@mark-casias mark-casias assigned mrjmd and unassigned mark-casias Apr 28, 2016
@mrjmd
Copy link
Owner Author

mrjmd commented May 27, 2016

For pdb_ng2 at least, I've accepted the value in an npm dependency (both the upgrade to RC1 and the latest developments on #52 pushed me in this direction). As such, I've moved most of the library sources to use node_module locations.

Ultimately I think where our libraries live will be a framework-level decision, for which individual tickets can be opened. Closing this.

@mrjmd mrjmd closed this as completed May 27, 2016
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

No branches or pull requests

2 participants