From a27e4043a1ac21f1cab5f606523431b8f1deeab6 Mon Sep 17 00:00:00 2001 From: Dmitry Baranovskiy Date: Wed, 25 Sep 2013 15:52:57 +1000 Subject: [PATCH] Change name to Snap.svg. Added dr.js to grunt via grunt-exec --- Gruntfile.js | 8 +- NOTICE | 6 +- README.md | 16 +- demojs.html | 166 +-- demojs2.html | 10 +- dist/css/topcoat-desktop-light.css | 831 +++++++++++- dist/reference.html | 1558 +++++++++++------------ dist/savage-min.js | 34 - dist/snap.svg-min.js | 20 + dist/{savage.js => snap.svg.js} | 638 +++++----- dr.json | 4 +- package.json | 9 +- src/amd-banner.js | 2 +- src/amd-footer.js | 2 +- src/copy.js | 16 +- src/equal.js | 16 +- src/filter.js | 104 +- src/mouse.js | 34 +- src/path.js | 92 +- src/set.js | 6 +- src/svg.js | 350 ++--- test/attrs.js | 4 +- test/colors.js | 68 +- test/element.js | 6 +- test/filter.js | 78 +- test/matrix.js | 36 +- test/mina.js | 2 +- test/paper.js | 12 +- test/path.js | 128 +- test/primitives.js | 2 +- test/set.js | 16 +- test/{savage-tests.js => snap-tests.js} | 270 ++-- test/system.js | 4 +- test/test.html | 4 +- 34 files changed, 2676 insertions(+), 1876 deletions(-) delete mode 100644 dist/savage-min.js create mode 100644 dist/snap.svg-min.js rename dist/{savage.js => snap.svg.js} (93%) rename test/{savage-tests.js => snap-tests.js} (51%) diff --git a/Gruntfile.js b/Gruntfile.js index bba6006..6f1584b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -40,11 +40,17 @@ module.exports = function(grunt) { "./src/amd-footer.js", ] } + }, + exec: { + dr: { + command: "node node_modules/dr.js/dr dr.json" + } } }); grunt.loadNpmTasks("grunt-contrib-concat"); grunt.loadNpmTasks("grunt-contrib-uglify"); + grunt.loadNpmTasks("grunt-exec"); - grunt.registerTask("default", ["concat", "uglify"]); + grunt.registerTask("default", ["concat", "uglify", "exec"]); }; \ No newline at end of file diff --git a/NOTICE b/NOTICE index c9036ab..91db1bc 100644 --- a/NOTICE +++ b/NOTICE @@ -1,7 +1,7 @@ -Savage is licensed under the Apache license version 2.0, January 2004 (see LICENSE file). +Snap.svg is licensed under the Apache license version 2.0, January 2004 (see LICENSE file). -Savage uses the following third party libraries that may have licenses -differing from that of Savage itself. You can find the libraries and their +Snap.svg uses the following third party libraries that may have licenses +differing from that of Snap.svg itself. You can find the libraries and their respective licenses below. - eve ./node_modules/eve diff --git a/README.md b/README.md index 4b4aec0..7c43551 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -savage +Snap.svg ====== JavaScript library for SVG. @@ -7,9 +7,9 @@ API Reference is in `dist/reference.html` ### Building -Savage uses [Grunt](http://gruntjs.com/) to build +Snap.svg uses [Grunt](http://gruntjs.com/) to build -* Open the terminal from the Savage directory +* Open the terminal from the Snap.svg directory cd savage @@ -22,14 +22,8 @@ Savage uses [Grunt](http://gruntjs.com/) to build npm install -_*Savage uses Grunt 0.4.0. You might want to [read](http://gruntjs.com/getting-started) more on their website if you haven’t upgraded since a lot has changed._ +_*Snap.svg uses Grunt 0.4.0. You might want to [read](http://gruntjs.com/getting-started) more on their website if you haven’t upgraded since a lot has changed._ * Type `grunt` in the command line to build the files. * The results will be built into the release folder. -* Alternatively type `grunt watch` to have the build run automatically when you make changes to source files. - -* For documentation generation use this command - - cd node_modules/dr.js/; node dr ../../dr.json; cd ../../ - -_It’s ugly at the moment. Somebody should port it to grunt. May be even me :)_ +* Alternatively type `grunt watch` to have the build run automatically when you make changes to source files. \ No newline at end of file diff --git a/demojs.html b/demojs.html index e687dc6..205142a 100644 --- a/demojs.html +++ b/demojs.html @@ -15,97 +15,97 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."> - Savage + Snap - + diff --git a/demojs2.html b/demojs2.html index aa397f9..5a73fcc 100644 --- a/demojs2.html +++ b/demojs2.html @@ -15,22 +15,22 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."> - Savage + Snap - + - + +
@@ -33,7 +33,7 @@ - +