Skip to content

Commit da17375

Browse files
authored
Merge pull request #11 from Download/upgrade-to-1.6.0
1.6.0: Upgrade to Polymer 1.6.0 Added Contribution Guide Updated README.md to refer to Contribution Guide
2 parents 4ecde42 + 6b0a6f0 commit da17375

File tree

648 files changed

+83744
-93435
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

648 files changed

+83744
-93435
lines changed

Diff for: CONTRIBUTING.md

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# Contributing to the development of Polymer CDN
2+
3+
If Polymer had a new release that you want to try and it's not here yet
4+
on Polymer CDN, you can help yourself and contribute to this project.
5+
Follow these steps to make a new version of Polymer available on Polymer CDN.
6+
7+
## Prerequisites
8+
Before you start, make sure you have installed [Node JS](https://nodejs.org/en/),
9+
[NPM](https://www.npmjs.com/) (comes with Node) and [Bower](https://bower.io/).
10+
Haven't used Node JS yet? See this as an excuse to try the water. You'll love it!
11+
As far as Git itself goes, I assume you already have it, but I can recommend
12+
installing the [TortoiseGit](https://tortoisegit.org/) client. It's great and
13+
it's what I'm using in this guide.
14+
15+
## Fork this project
16+
This is recommended even if you just use `polymer-cdn`, because it gives you full
17+
control over the contents of the CDN and is so easy to do. Just press that button
18+
on the top right and hit it!
19+
20+
![Fork polymer-cdn](https://cdn.rawgit.com/Download/polymer-cdn/1.6.0/doc/fork.png)
21+
22+
## Clone your fork
23+
Clone your fork to your local machine.
24+
25+
![Clone your fork](https://cdn.rawgit.com/Download/polymer-cdn/1.6.0/doc/clone.png)
26+
27+
## Create a branch and switch to it
28+
This is a very important step as it will make it much easier later on to create a
29+
Pull Request. Don't forget this step!
30+
31+
![Create a branch](https://cdn.rawgit.com/Download/polymer-cdn/1.6.0/doc/branch.png)
32+
33+
**(If you are like me and already started editing before realizing you need a new branch,
34+
the easiest thing to do in my experience is to Stash Save your changes. Git will store
35+
your changes out of sight and restore your workspace. You can then create the branch
36+
and Stash Pop your changes on top of that. Make sure you include untracked changes)**
37+
38+
## Edit bower.json
39+
40+
**This step is optional.** Normally all versions will be set to #latest so you only have
41+
to run `bower update` (next step), but sometimes (like for me today as I'm writing
42+
this) you want to upgrade to a specific version of Polymer or one of the components.
43+
In that case, just list that version in `bower.json` beforehand.
44+
45+
```json
46+
{
47+
..
48+
49+
"dependencies": {
50+
"polymer": "Polymer/polymer#1.6.0",
51+
"paper-elements": "polymerelements/paper-elements#latest",
52+
"iron-elements": "polymerelements/iron-elements#latest",
53+
"neon-elements": "polymerelements/neon-elements#latest",
54+
"gold-elements": "polymerelements/gold-elements#latest",
55+
"platinum-elements": "polymerelements/platinum-elements#latest",
56+
"app-elements": "polymerelements/app-elements#0.9.0",
57+
"google-web-components": "GoogleWebComponents/google-web-components#latest",
58+
"molecules": "polymerelements/molecules#latest"
59+
}
60+
}
61+
```
62+
63+
## Run bower update
64+
Open a command prompt in the root of the `polymer-cdn` project and run `bower update`.
65+
66+
```sh
67+
$ bower update
68+
```
69+
70+
## Copy the dependency tree to README.md
71+
In the root of the project, run
72+
```sh
73+
bower list
74+
````
75+
Copy the resulting dependency tree and paste it at the bottom of `README.md`
76+
77+
## Add your name to the contributors section in package.json
78+
Just copy-paste one of the existing contributor sections and fill in your info.
79+
80+
## Bump the version
81+
Change the version number in a few places. It should match the Polymer version,
82+
unless there is a second release with the same Polymer version, in which case
83+
we append a `.2`, or a `.3` for the third release etc. For example: `1.4.0.2`.
84+
85+
Use search/replace to change the old version to the new one in these files:
86+
* package.json
87+
* bower.json
88+
* README.md
89+
90+
## Commit your changes
91+
Commit your changes with a commit message that describes what changed.
92+
93+
## Push them to GitHub
94+
Like the title says :)
95+
96+
## Test them with rawgit
97+
You can test it by opening this [Codepen](http://codepen.io/StijnDeWitt/pen/EyPyyL)
98+
and replacing the url in the `<base href="..">` tag at the top with one that points
99+
to the new branch on your fork.
100+
101+
## Create a Pull Request
102+
After you've tested (and possibly committed and pushed fixes), you can create a
103+
Pull Request (PR). If you go to your fork on GitHub, you'll notice a bar at the
104+
top of the screen with a nice and shiny green button:
105+
106+
![Pull request](https://cdn.rawgit.com/Download/polymer-cdn/1.6.0/doc/pr.png)
107+
108+
I can't wait until you click that one!
109+
110+

0 commit comments

Comments
 (0)