| OLD | NEW |
| (Empty) | |
| 1 This folder contains the logic for building the shadow_dom package's |
| 2 concatenated and minified JS files. |
| 3 |
| 4 ## Prerequisites |
| 5 |
| 6 Install nodejs and npm. On Debian based systems this is typically: |
| 7 |
| 8 ```bash |
| 9 sudo apt-get install nodejs |
| 10 sudo apt-get install npm |
| 11 ``` |
| 12 - Install grunt-cli: |
| 13 |
| 14 ```bash |
| 15 npm install -g grunt-cli |
| 16 ``` |
| 17 |
| 18 See the Grunt [getting started](http://gruntjs.com/getting-started) page |
| 19 for more information. |
| 20 |
| 21 ## Building |
| 22 |
| 23 Run shadow_dom/tool/build.sh (from any directory): |
| 24 |
| 25 ```bash |
| 26 ./build.sh |
| 27 ``` |
| 28 |
| 29 ## (optional) How to integrate Polymer upstream changes |
| 30 |
| 31 One time setup: |
| 32 |
| 33 ```bash |
| 34 # Note: this requires commit access to dart-lang/ShadowDOM. |
| 35 # You can use your own fork instead if you like. |
| 36 # Just use that URL here and edit build.sh to pull from there. |
| 37 git clone -b shadowdom_patches https://github.com/dart-lang/ShadowDOM.git |
| 38 cd ShadowDOM |
| 39 git remote add upstream https://github.com/Polymer/ShadowDOM.git |
| 40 ``` |
| 41 |
| 42 You can merge upstream changes by doing: |
| 43 |
| 44 ```bash |
| 45 # Check that we are in shadowdom_patches branch and don't have |
| 46 # any pending changes. |
| 47 git status |
| 48 |
| 49 git fetch upstream |
| 50 git merge upstream/master |
| 51 git push origin shadowdom_patches |
| 52 ``` |
| OLD | NEW |