summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorSaivan <savian@me.com>2018-02-27 17:36:08 +1100
committerSaivan <savian@me.com>2018-02-27 17:36:08 +1100
commit13cf84b716cd3e06330fa0ea6f077bbe7de0eb88 (patch)
treec139bb2c83a84608cde623a03b3ed4597eef2df0 /README.md
parent1cb509f863b17af90827012e6f6ae81cb694f654 (diff)
downloadsvg.js-13cf84b716cd3e06330fa0ea6f077bbe7de0eb88.tar.gz
svg.js-13cf84b716cd3e06330fa0ea6f077bbe7de0eb88.zip
Updated the README to welcome new users better!
This commit updates the README with up to date instructions about how to run and build the library, as well as how to run the tests, playgrounds and performance tests
Diffstat (limited to 'README.md')
-rw-r--r--README.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/README.md b/README.md
index b88c5a5..d0d7fdf 100644
--- a/README.md
+++ b/README.md
@@ -27,3 +27,41 @@ SVG.js is licensed under the terms of the MIT License.
Check [https://svgdotjs.github.io](https://svgdotjs.github.io/) to learn more.
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=pay%40woutfierens.com&lc=US&item_name=SVG.JS&currency_code=EUR&bn=PP-DonationsBF%3Abtn_donate_74x21.png%3ANonHostedGuest)
+
+## Development
+
+To develop svg.js, you have a few commands available to you. Firstly, you should clone this repo, then cd into the folder with this README and run:
+
+ npm install
+
+You'll now have all the dev dependencies installed, and you'll be ready to build the bundle. Once you've made your changes just run:
+
+ npm run build
+
+This will build svg.js and make a distribution in the `/dist` folder. While developing, this may not be so convenient as the build will fail if you have any linting errors, refer to the [standard coding styleguide](https://standardjs.com/) for style we use, linters are available for most popular text editors as well.
+
+However, because we were too nice to put you through the pain of always having to work with a linter, we added a gentle mode that you can use by running:
+
+ npm run build:dev
+
+This will only warn you about linting errors and give you useful feedback about possible errors you may have in your code (but this is no substitute for tests). Please make sure that **before making any pull requests**, you pass all of our tests and can build with `npm run build` first.
+
+### Testing
+
+This will set up everything. While you are working, you should make sure your changes pass all of our tests, so just run:
+
+ npm run test
+
+Or just launch the jasmine test runner from `/spec/SpecRunner.html`. Its good to try the spec runner on a few different browsers.
+
+### Performance
+
+You can run performance tests by making a new benchmarks, look in the `/bench` folder and just add a new js file with the test you want to make. We include a few examples in the repo to make it easy for you to make your own.
+
+### Playgrounds
+
+If you would like a simple sandbox that you can use
+
+## Pull Requests
+
+We welcome any pull requests and will try our hardest to review them as soon as possible. If you need any help or would like to chat, check out our [gitter group](https://gitter.im/svgdotjs/svg.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge), we are always happy to see new users!