guy 8 years ago
parent
commit
19427e1a1d
  1. 30
      Gruntfile.js
  2. 20
      demo.html
  3. 20
      docs/index.html

30
Gruntfile.js

@ -28,7 +28,7 @@ module.exports = function (grunt) {
'src/data/**/*.js', 'src/data/**/*.js',
'src/config.js' 'src/config.js'
], ],
dest: 'dist/core.js' dest: 'docs/core.js'
}, },
biCoreJs: { biCoreJs: {
src: [ src: [
@ -83,7 +83,7 @@ module.exports = function (grunt) {
'src/base/tree/parttree.js', 'src/base/tree/parttree.js',
'src/base/**/*.js' 'src/base/**/*.js'
], ],
dest: 'dist/base.js' dest: 'docs/base.js'
}, },
//实现好的一些基础实例 //实现好的一些基础实例
caseJs: { caseJs: {
@ -91,7 +91,7 @@ module.exports = function (grunt) {
'src/case/combo/popup.bubble.js', 'src/case/combo/popup.bubble.js',
'src/case/**/*.js' 'src/case/**/*.js'
], ],
dest: 'dist/case.js' dest: 'docs/case.js'
}, },
widgetJs: { widgetJs: {
src: [ src: [
@ -100,32 +100,32 @@ module.exports = function (grunt) {
'src/widget/**/*.js', 'src/widget/**/*.js',
'src/component/**/*.js' 'src/component/**/*.js'
], ],
dest: "dist/widget.js" dest: "docs/widget.js"
}, },
coreCss: { coreCss: {
src: ['src/css/core/**/*.css', 'src/css/theme/**/*.css'], src: ['src/css/core/**/*.css', 'src/css/theme/**/*.css'],
dest: 'dist/core.css' dest: 'docs/core.css'
}, },
baseCss: { baseCss: {
src: ['src/css/base/**/*.css'], src: ['src/css/base/**/*.css'],
dest: 'dist/base.css' dest: 'docs/base.css'
}, },
widgetCss: { widgetCss: {
src: ['src/css/widget/**/*.css'], src: ['src/css/widget/**/*.css'],
dest: 'dist/widget.css' dest: 'docs/widget.css'
}, },
resourceCss: { resourceCss: {
src: ['src/css/resource/**/*.css'], src: ['src/css/resource/**/*.css'],
dest: 'dist/resource.css' dest: 'docs/resource.css'
}, },
demoJs: { demoJs: {
src: ['demo/version.js', 'demo/app.js', 'demo/js/**/*.js', 'demo/config.js'], src: ['demo/version.js', 'demo/app.js', 'demo/js/**/*.js', 'demo/config.js'],
dest: 'demo/dist/demo.js' dest: 'docs/demo.js'
}, },
demoCss: { demoCss: {
src: ['demo/css/**/*.css'], src: ['demo/css/**/*.css'],
dest: 'demo/dist/demo.css' dest: 'docs/demo.css'
}, },
bi_coreJs: { bi_coreJs: {
@ -237,9 +237,9 @@ module.exports = function (grunt) {
}, },
dist: { dist: {
files: { files: {
'dist/core.min.js': ['<%= concat.coreJs.dest %>'], 'docs/core.min.js': ['<%= concat.coreJs.dest %>'],
'dist/base.min.js': ['<%= concat.baseJs.dest %>'], 'docs/base.min.js': ['<%= concat.baseJs.dest %>'],
'dist/case.min.js': ['<%= concat.caseJs.dest %>'] 'docs/case.min.js': ['<%= concat.caseJs.dest %>']
} }
} }
}, },
@ -250,14 +250,14 @@ module.exports = function (grunt) {
src: '<%= concat.coreCss.dest %>', src: '<%= concat.coreCss.dest %>',
dest: 'dist/core.min.css' dest: 'docs/core.min.css'
}, },
baseCss: { baseCss: {
src: '<%= concat.baseCss.dest %>', src: '<%= concat.baseCss.dest %>',
dest: 'dist/base.min.css' dest: 'docs/base.min.css'
} }

20
demo.html

@ -5,21 +5,21 @@
<title></title> <title></title>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="./dist/core.css"/> href="docs/core.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="./dist/base.css"/> href="docs/base.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="./dist/widget.css"/> href="docs/widget.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="./dist/resource.css"/> href="docs/resource.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="demo/dist/demo.css"/> href="docs/demo.css"/>
<script src="./dist/core.js"></script> <script src="docs/core.js"></script>
<script src="./dist/base.js"></script> <script src="docs/base.js"></script>
<script src="./dist/case.js"></script> <script src="docs/case.js"></script>
<script src="./dist/widget.js"></script> <script src="docs/widget.js"></script>
<script src="demo/dist/demo.js"></script> <script src="docs/demo.js"></script>
</head> </head>
<body> <body>
<div id="wrapper" class="bi-theme-dark"></div> <div id="wrapper" class="bi-theme-dark"></div>

20
docs/index.html

@ -5,21 +5,21 @@
<title></title> <title></title>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="../dist/core.css"/> href="core.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="../dist/base.css"/> href="base.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="../dist/widget.css"/> href="widget.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="../dist/resource.css"/> href="resource.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="../demo/dist/demo.css"/> href="demo.css"/>
<script src="../dist/core.js"></script> <script src="core.js"></script>
<script src="../dist/base.js"></script> <script src="base.js"></script>
<script src="../dist/case.js"></script> <script src="case.js"></script>
<script src="../dist/widget.js"></script> <script src="widget.js"></script>
<script src="../demo/dist/demo.js"></script> <script src="demo.js"></script>
</head> </head>
<body> <body>
<div id="wrapper" class="bi-theme-dark"></div> <div id="wrapper" class="bi-theme-dark"></div>

Loading…
Cancel
Save