Files
ant-design/docs/react/install.en-US.md.js
T
2016-09-29 11:26:02 +08:00

1 line
4.1 KiB
JavaScript

webpackJsonp([87,197],{1738:function(t,n,e){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}var s=e(1),i=(a(s),e(2));a(i);t.exports={content:["article",["h2","Using npm to install"],["p",["strong","We recommend using npm to install"],"\uff0cit not only makes development easier\uff0cbut you can also take advantage of the whole ecosystem."],["p","If using npm to install, you could use ",["code","import"]," or ",["code","require"],"."],["p","Stable version\uff1a"],["p",["a",{title:null,href:"https://www.npmjs.org/package/antd"},["img",{title:null,src:"http://img.shields.io/npm/v/antd.svg?style=flat-square",alt:"npm package"}]]],["pre",{lang:"bash",highlighted:'$ npm <span class="token function" >install</span> antd --save'},["code","$ npm install antd --save"]],["p","You can Subscribe to this feed for new version notification: ",["a",{title:null,href:"https://github.com/ant-design/ant-design/releases.atom"},"https://github.com/ant-design/ant-design/releases.atom"]],["p","Beta version\uff1a"],["p",["a",{title:null,href:"https://www.npmjs.org/package/antd"},["img",{title:null,src:"https://cnpmjs.org/badge/v/antd.svg?&tag=beta&subject=npm",alt:null}]]],["pre",{lang:"bash",highlighted:'$ npm <span class="token function" >install</span> antd@beta --save'},["code","$ npm install antd@beta --save"]],["blockquote",["p",["strong","Past releases"],"\uff1a",["a",{title:null,href:"https://github.com/ant-design/ant-design/releases"},"https://github.com/ant-design/ant-design/releases"]]],["h2","Import in Browser"],["p","We provide ",["code","antd.js"]," ",["code","antd.css"]," and ",["code","antd.min.js"]," ",["code","antd.min.css"]," under ",["code","antd/dist"]," in antd's npm package, in order to import all the components of antd directly. Also, you can use ",["a",{title:null,href:"https://unpkg.com/"},"unpkg"],"."],["blockquote",["p","It's not recommended to use the already built files, as you cannot get bugfixes from the dependencies of antd."]],["h4","stable"],["ul",["li",["p",["a",{title:null,href:"https://unpkg.com/antd/dist/antd.js"},"https://unpkg.com/antd/dist/antd.js"]]],["li",["p",["a",{title:null,href:"https://unpkg.com/antd/dist/antd.css"},"https://unpkg.com/antd/dist/antd.css"]]],["li",["p",["a",{title:null,href:"https://unpkg.com/antd/dist/antd.min.js"},"https://unpkg.com/antd/dist/antd.min.js"]]],["li",["p",["a",{title:null,href:"https://unpkg.com/antd/dist/antd.min.css"},"https://unpkg.com/antd/dist/antd.min.css"]]]],["h4","beta"],["ul",["li",["p",["a",{title:null,href:"https://unpkg.com/antd@beta/dist/antd.js"},"https://unpkg.com/antd@beta/dist/antd.js"]]],["li",["p",["a",{title:null,href:"https://unpkg.com/antd@beta/dist/antd.css"},"https://unpkg.com/antd@beta/dist/antd.css"]]],["li",["p",["a",{title:null,href:"https://unpkg.com/antd@beta/dist/antd.min.js"},"https://unpkg.com/antd@beta/dist/antd.min.js"]]],["li",["p",["a",{title:null,href:"https://unpkg.com/antd@beta/dist/antd.min.css"},"https://unpkg.com/antd@beta/dist/antd.min.css"]]]],["blockquote",["p","Here is an ",["a",{title:null,href:"https://github.com/ant-design/antd-init/tree/master/examples/build-antd-standalone"},"example"]," of how to build your own antd.js if you are using antd@<1.0.0."]],["h2","Development tool"],["p","We provide React components ",["a",{title:null,href:"https://github.com/ant-design/antd-init"},"Scaffold tool"],"."],["pre",{lang:"bash",highlighted:'$ npm <span class="token function" >install</span> antd-init -g'},["code","$ npm install antd-init -g"]],["p","Inside an empty folder run ",["code","antd-init"]," to init."],["p","You can explore the latest structure of scaffold ",["a",{title:null,href:"https://github.com/ant-design/antd-init/tree/master/boilerplates"},"here"],", it is a good habit to watch this repo to get the latest features."],["blockquote",["p",["a",{title:null,href:"http://ant-tool.github.io/"},"More development tools"],"\u3002"]]],meta:{order:2,title:"Installation",filename:"docs/react/install.en-US.md"},toc:["ul",["li",["a",{href:"#Using-npm-to-install"},"Using npm to install"]],["li",["a",{href:"#Import-in-Browser"},"Import in Browser"]],["li",["a",{href:"#Development-tool"},"Development tool"]]]}}});