()
| 8 | } |
| 9 | |
| 10 | async function task() { |
| 11 | const dir = 'devui/style/theme/'; |
| 12 | const content = (await readFile([ |
| 13 | '_basic.scss', |
| 14 | '_color.scss', |
| 15 | '_font.scss', |
| 16 | '_shadow.scss', |
| 17 | '_corner.scss', |
| 18 | '_animation.scss', |
| 19 | '_z-index.scss', |
| 20 | '_export-var.scss' |
| 21 | ], dir)).join('\n'); |
| 22 | const targetDir = "publish/styles-var/"; |
| 23 | const contentWithoutImport = content.replace(/@import[ 'a-z;./]*/ig, '') |
| 24 | await fs.writeFile(targetDir + 'devui-var.scss', contentWithoutImport, 'utf8'); |
| 25 | await fs.writeFile(targetDir + 'devui-var.less', contentWithoutImport.replace(/\$/g, '@'), 'utf8'); |
| 26 | } |
| 27 | |
| 28 | module.exports = function runTask() { |
| 29 | task().then(() => { |
no test coverage detected