0.0.4 • Published 6 years ago

tue v0.0.4

Weekly downloads
18
License
-
Repository
-
Last release
6 years ago

Translate vue single file to js

use as a lib

var tue = require('tue')

// single file
tue.compact(sourFilePath, targetfilePath)

// compile Director
tue.compileDir(flags.dir)

use in client command

npm install tue -g

## get helper
tue --help

## compile single vue to js file
tue -s ./App.vue -t ./App.js

## compile folders
tue -d ./source

project config

config in ${projectDir}/package.json

{
  "buildConf": {
    "output": "./output",
    "source": "./test",
    "main": "index.js",
    "bundle": "bundle.js",
    "minify": true
  }
}