Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

No more third party directory #54

Merged
merged 4 commits into from
Dec 23, 2014

Conversation

jeffposnick
Copy link
Contributor

@ebidel @crhym3 & co:

The overall goal of this PR is to get rid of the third_party directory and pull in all dependencies from their authoritative sources.

Some of the dependencies could be pulled in via either npm or bower, and I went with bower. If we know for some reason that we should prefer npm then I could switch that around.

Since it currently doesn't sound like the SimpleDB code is going to be published anywhere else publicly, I moved it from third_party to helper, and cleaned it up to match our JS style. If SimpleDB does get published, or if the author prefers we don't use it, then we'll adjust at that time (tracking bug: #48).

The only bower-installed dependency that we were previously copying over to dist was webcomponents.min.js. There are a few more things that we need in dist now, I created a new task, copy-bower-dependencies, to handle copying all of them. (The way I listed all of the paths to copy over might not be the most efficient approach.)

While I was investigating some of the JS gulp tasks, I also realized that the sw.js script wasn't getting copied over to dist, so I took care of that.

"paper-tabs": "Polymer/paper-tabs#^0.5.2",
"paper-toast": "Polymer/paper-toast#^0.5.2",
"polymer": "Polymer/polymer#^0.5.2",
"requestAnimationFrame": "darius/requestAnimationFrame#master",
Copy link
Contributor

Choose a reason for hiding this comment

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

we should ditch this polyfil. everyone supports raf

"paper-item": "Polymer/paper-item#^0.5.2",
"paper-button": "Polymer/paper-button#552f5bbc1796207ebff82171316d639c0d5b7afd",
"paper-toast": "Polymer/paper-toast#^0.5.2",
"closure-compiler": "https://dl.google.com/closure-compiler/compiler-latest.zip",
Copy link
Contributor

Choose a reason for hiding this comment

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

Closure compiler doesn't seem to be used in gulpfile, or maybe I'm missing something?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's not, but we may in the future. We used it for 🎅 i18n stuff. Among other things. Let's keep it for now.

@ebidel
Copy link
Contributor

ebidel commented Dec 22, 2014

Reviewed

@x1ddos
Copy link
Contributor

x1ddos commented Dec 22, 2014

LGTM! if you want one from me :)
copy-bower-dependencies actually looks great.

jeffposnick added a commit that referenced this pull request Dec 23, 2014
@jeffposnick jeffposnick merged commit 17008e4 into google:master Dec 23, 2014
@jeffposnick jeffposnick deleted the no-more-third-party-directory branch December 23, 2014 01:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants