Skip to content

Commit

Permalink
feat:发布0.7.3版本
Browse files Browse the repository at this point in the history
  • Loading branch information
7insummer committed Feb 23, 2020
2 parents 2a233ac + 9c1af0f commit a5197eb
Show file tree
Hide file tree
Showing 294 changed files with 2,194 additions and 7,641 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build/*.js
config/*.js
example/*.js
dist
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ module.exports = {
allow: ["info", "warn", "error"]
}], // 不建议使用console.log
"no-undef": [2], // 禁用未声明的变量
'no-useless-escape': 'off', //关闭不必要转义字符的检测
}
}
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<p align="center">
<!-- <a href="http://doc.mini.7yue.pro/"> -->
<img
class="QR-img" src="https://img-gzb.oss-cn-shanghai.aliyuncs.com/lala/2bdab36cc138813e87fe60000f474b67.jpg">
class="QR-img" src="https://raw.githubusercontent.com/zhc525349965/fisher_book/master/app/image/lin-ui小程序.jpg">
<!-- </a> -->
</p>

Expand All @@ -11,7 +11,7 @@
<div class="row" />

<div align="center">
<span class="desc" >Fantastic native based Mini-Program components</span>
<span class="desc" >Fantastic native based Mini-Programe components</span>
</div>

<div align="center">
Expand Down Expand Up @@ -39,13 +39,13 @@ Lin UI 是基于 **微信小程序原生语法** 实现的组件库。遵循简

<table>
<tbody>
<tr >
<td align="center" valign="middle" style="border-style:none">
<img class="QR-img" style="height: 60px; width:60px" src="https://img-gzb.oss-cn-shanghai.aliyuncs.com/lala/40D46DF4ED2D741369A4B186738D1534.png">
<tr>
<td align="center" valign="middle">
<img class="QR-img" style="height: 60px; width:60px" src="https://raw.githubusercontent.com/zhc525349965/fisher_book/master/app/image/qq群新.png">
<p style="font-size:12px;">QQ群号:643205479</p>
</td>
<td align="center" valign="middle" style="border-style:none">
<img class="QR-img" style="height: 60px; width:60px" src="https://img-gzb.oss-cn-shanghai.aliyuncs.com/lala/5b4dad8dc5cda58e26922fde2471308f.jpg">
<td align="center" valign="middle">
<img class="QR-img" style="height: 60px; width:60px" src="https://raw.githubusercontent.com/zhc525349965/fisher_book/master/app/image/公众号.jpg">
<p style="font-size:12px;">微信公众号:林间有风</p>
</td>
</tr>
Expand All @@ -57,8 +57,8 @@ Lin UI 是基于 **微信小程序原生语法** 实现的组件库。遵循简
<table>
<tbody>
<tr>
<td align="center" valign="middle" style="border-style:none">
<img class="QR-img" style="height: 60px; width:60px" src="https://img-gzb.oss-cn-shanghai.aliyuncs.com/lala/b3aa01f2a1c00573757d3d42248177bf.jpg" alt="风袖">
<td align="center" valign="middle">
<img class="QR-img" style="height: 60px; width:60px" src="https://raw.githubusercontent.com/zhc525349965/fisher_book/master/app/image/风袖.jpg" alt="风袖">
<p style="font-size:12px;">风袖</p>
</td>
</tr>
Expand Down
43 changes: 0 additions & 43 deletions build/build.js

This file was deleted.

28 changes: 25 additions & 3 deletions build/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
const {
buildWxss,
buildWxml,
buildImage,
buildJson,
buildJs,
copyStatic,
clean,
copy
} = require('./build');
} = require('./task');
const {
series,
parallel,
Expand All @@ -30,6 +34,23 @@ module.exports = {
`!${srcProPath}/_*.less`,
distPath
),
buildWxml(
`${srcProPath}/*.wxml`,
`!${srcProPath}/_*.wxml`,
distPath
),
buildImage(
`${srcProPath}/*.png`,
distPath
),
buildJson(
`${srcProPath}/*.json`,
distPath
),
buildJs(
`${srcProPath}/*.js`,
distPath
),
copyStatic(
srcProPath,
distPath
Expand All @@ -46,7 +67,8 @@ module.exports = {
),
copyStatic(
srcDevPath,
examplePath
examplePath,
'dev'
)
)
),
Expand All @@ -59,4 +81,4 @@ module.exports = {
watch(`${srcDevPath}/*.js`, copy(srcDevPath, examplePath, 'js'));
}
)
};
};
83 changes: 83 additions & 0 deletions build/task.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
const {
src,
dest,
parallel
} = require('gulp');
const less = require('gulp-less');
const imagemin = require('gulp-imagemin');
const cssmin = require('gulp-clean-css');
const jsonmin = require('gulp-jsonminify');
const jsmin = require('gulp-uglify-es').default;
const wxmlmin = require('gulp-htmlmin');
const rename = require('gulp-rename');
const del = require('del');

const buildWxss = (srcPath, remainPath, distPath) => () =>
src([srcPath, remainPath])
.pipe(less())
.pipe(cssmin())
.pipe(rename(srcPath => {
srcPath.extname = '.wxss';
}))
.pipe(dest(distPath));

const copy = (srcPath, distPath, ext) => () =>
src(`${srcPath}/*.${ext}`)
.pipe(dest(distPath));

const buildWxml = (srcPath, remainPath, distPath) => () =>
src([srcPath, remainPath])
.pipe(wxmlmin({
removeComments: true,
// collapseWhitespace: true,
keepClosingSlash: true,
caseSensitive: true
}))
.pipe(dest(distPath));

const buildJson = (srcPath, distPath) => () =>
src(srcPath)
.pipe(jsonmin())
.pipe(dest(distPath));

const buildJs = (srcPath, distPath) => () =>
src(srcPath)
.pipe(jsmin())
.pipe(dest(distPath));

const buildImage = (srcPath, distPath) => () =>
src(srcPath)
.pipe(imagemin())
.pipe(dest(distPath));

const copyStatic = (srcPath, distPath, env = 'build') => {
if (env === 'build') {
return parallel(
copy(srcPath, distPath, 'wxs')
);
} else {
return parallel(
copy(srcPath, distPath, 'wxml'),
copy(srcPath, distPath, 'wxs'),
copy(srcPath, distPath, 'json'),
copy(srcPath, distPath, 'js'),
copy(srcPath, distPath, 'png')
);
}
}

const clean = (cleanPath) => () =>
del([cleanPath], {
force: true
});

module.exports = {
buildWxss,
buildWxml,
buildImage,
buildJson,
buildJs,
copyStatic,
clean,
copy
};
125 changes: 1 addition & 124 deletions dist/action-sheet/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions dist/action-sheet/index.json
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
{
"component": true,
"usingComponents": {
"l-icon":"../icon/index",
"l-popup":"../popup/index",
"l-button":"../button/index"
}
}
{"component":true,"usingComponents":{"l-icon":"../icon/index","l-popup":"../popup/index","l-button":"../button/index"} }
Loading

0 comments on commit a5197eb

Please sign in to comment.