X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=scripts%2Fgenerate-download.py;h=ab513a61f186154bf0291c6e2b9b27867fef4a54;hb=6611837c5490f2f4b6d61967aa1ad658ed5f11d4;hp=2d2dd48645dbba383c0a4c81fec64d16300497dc;hpb=2ef8997fe939afdfd7c2c09c393a3073897633bd;p=dygraphs.git diff --git a/scripts/generate-download.py b/scripts/generate-download.py index 2d2dd48..ab513a6 100755 --- a/scripts/generate-download.py +++ b/scripts/generate-download.py @@ -51,27 +51,24 @@ print '''
There's a hosted version of dygraphs on cdnjs.com:
-<script src="//cdnjs.cloudflare.com/ajax/libs/dygraph/%(version)s/dygraph-combined.js"></script>+
<script href="//cdnjs.cloudflare.com/ajax/libs/dygraph/%(version)s/dygraph.min.js"></script> +<link rel="stylesheet" src="//cdnjs.cloudflare.com/ajax/libs/dygraph/%(version)s/dygraph.min.css" /> +-
You can install dygraphs using NPM or Bower.
+You can also install dygraphs using NPM:
-To install using NPM:
$ npm install dygraphs -# dygraphs is now in node_modules/dygraphs/dygraph-combined.js- -
To install using bower:
-$ bower install dygraphs -# dygraphs is now in bower_components/dygraphs/dygraph-combined.js+# dygraphs is now in node_modules/dygraphs/dygraph.js -
Most distributions include a source map. For non-concatenated JS, see dygraph-dev.js on github. +
Most distributions include a source map to facilitate debugging.
To generate your own minified JS, run:
git clone https://github.com/danvk/dygraphs.git -./generate-combined.sh +npm run build-
This will create a dygraph.min.js file in the dygraphs directory.
+This will create a dygraph.min.js file in the dist
directory.
You may also download files for previously-released versions: