在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:pile.js开源软件地址:https://gitee.com/didiopensource/pile.js开源软件介绍:PileA lightweight mobile components library build with React. DocsComponentsExisting components of pile 2.0
DependencesInstallationnpm i pile-ui@latest --save// import cssnpm i @pile-ui/theme-default import component // style1import {Button} from 'pile-ui'// single componentimport Button from '@pile-ui/button' import all css import '@pile-ui/theme-default/lib/index.min.css' import single css import '@pile-ui/theme-default/lib/button.min.css' ExampleWe have several examples on the documentation. Here is the first one to get you started: import * as React from 'react';import * as ReactDOM from 'react-dom';import { Button } from 'pile-ui'import '@pile-ui/theme-default/lib/index.min.css'class App extends Component { render() { return ( <Button>hello Pile</Button> ); }}ReactDOM.render(( <App/>), document.getElementById('container')); Developmentgit clone git@github.com:didi/pile.js.gitcd pile.jsnpm installnpm start create new module lerna create @pile-ui/xx packages css build cd packages/theme-defaultnpm run build npm run build Build single package by running the following: npm run build -- --scope "@pile-ui/button" Build multiple packages where scope is a glob expression: npm run build -- --scope "{@pile-ui/button,@pile-ui/icon}" Watch all filters (auto-rebuild upon src changes): npm run watch ContributingWelcome to contribute by creating issues or sending pull requests. See Contributing Guide for guidelines. Licensepile is licensed under the Apache License 2.0. See the LICENSE file. |
请发表评论