rednose / rednose-ui
RedNoseUI JavaScript 框架。
v1.8.3
2017-08-16 07:40 UTC
README
RedNoseUI 是一个 JavaScript 框架,提供多个 RedNose 产品通用的核心功能。RedNoseUI 在 MIT 许可下提供。
用法
<html>
<head>
<link href="build/rednose-ui/rednose-ui-min.css" rel="stylesheet"/>
<script src="build/rednose-ui/rednose-ui-min.js"></script>
</head>
<body class="yui3-skin-sam">
<script>
YUI().use('rednose-dialog', function (Y) {
Y.Rednose.Dialog.alert({title: 'RedNoseUI', text: 'Hello world'});
});
</script>
</body>
</html>
开发
依赖项
-
如果您还没有安装,请安装 NodeJS。
-
安装全局依赖项
[sudo] npm install -g grunt-cli yogi recess
-
安装本地依赖项
npm install
构建
-
要构建整个库,CSS 和种子文件
grunt build
-
要从模块目录构建单个模块,运行
yogi build
在添加新模块或更新现有模块元数据后,需要重新构建 rednose-loader
模块。
测试
-
要测试整个库,CSS 和种子文件
grunt test
-
要从模块目录测试单个模块,运行
yogi test
关于
RedNoseUI 是 RedNose 的一个项目。