chore: prettier packages codes

This commit is contained in:
陈嘉涵
2020-01-19 14:09:32 +08:00
parent 389d68884d
commit 1575bea6f5
18 changed files with 113 additions and 80 deletions

View File

@@ -36,13 +36,13 @@ function font() {
targetPath: '../src/index.less',
normalize: true,
firstGlyph: 0xf000,
cssClass: fontName // this is a trick to pass fontName to template
cssClass: fontName, // this is a trick to pass fontName to template
})
)
.pipe(
iconfont({
fontName,
formats
formats,
})
)
.pipe(dest(srcDir));

View File

@@ -4,7 +4,8 @@ const shell = require('shelljs');
const svgDir = path.join(__dirname, '../assets/svg');
const sketch = path.join(__dirname, '../assets/icons.sketch');
const SKETCH_TOOL_DIR = '/Applications/Sketch.app/Contents/Resources/sketchtool/bin/sketchtool';
const SKETCH_TOOL_DIR =
'/Applications/Sketch.app/Contents/Resources/sketchtool/bin/sketchtool';
fs.removeSync(svgDir);

View File

@@ -8,7 +8,7 @@ module.exports = {
'arrow',
'arrow-left',
'arrow-up',
'arrow-down'
'arrow-down',
],
outline: [
// has corresponding filled icon
@@ -142,7 +142,7 @@ module.exports = {
'discount',
'idcard',
'replay',
'shrink'
'shrink',
],
filled: [
// has corresponding outline icon
@@ -235,6 +235,6 @@ module.exports = {
'ascending',
'descending',
'bars',
'wap-nav'
]
'wap-nav',
],
};