diff --git a/publish.js b/publish.js index 4171859..23db25d 100644 --- a/publish.js +++ b/publish.js @@ -1,3 +1,3 @@ -const { start: step1 } = require('./publish/copyAndAbstractLess') +const start = require('./publish/index') -step1() +start() diff --git a/publish/copyAndAbstractLess.js b/publish/copyAndAbstractLess.js deleted file mode 100644 index e257486..0000000 --- a/publish/copyAndAbstractLess.js +++ /dev/null @@ -1,36 +0,0 @@ -const { copyDir, fileForEach, readFile } = require('./plugin/fs') -const print = require('./plugin/print') -const path = require('path') - -const PACKAGE_SRC = './src' -const COMPILE_SRC = './lib' - -async function start () { - const copyPackage = await copyDir(PACKAGE_SRC, COMPILE_SRC) - - if (!copyPackage) { - print.error('Exception in copyPackage!') - - return false - } - - const abstract = await abstractLessFromVue() -} - -async function abstractLessFromVue () { - fileForEach(COMPILE_SRC, async src => { - if (path.extname(src) !== '.vue') return - - const data = await readFile(src).split('