0.4.1 • Published 6 years ago

weex-builder v0.4.1

Weekly downloads
314
License
-
Repository
github
Last release
6 years ago

weex-builder

Build Status dependcy dev dependcy

a weex compiler tool used by weex-toolkit (bind on "weex compile")

usage

$ npm install -g weex-builder

we suggest you use weex-toolkit

CLI

command

  1. compile all files in directory path/to/src and output to path/to/dist
weex-builder path/to/src  path/to/dist
  1. compile all vue files in directory path/to/src and output to path/to/dist
weex-builder path/to/src/\*.vue path/to.dist
  1. compile all vue/we files but except index.we in directory path/to/src and output to path/to/dist
weex-builder path/to/src/\*.vue,\*.we,^index.we path/to.dist

options

    -h, --help           output usage information
    -v,--version         show version
    --ext [ext]          set enabled extname for compiler default is vue|we
    --web                set web mode for h5 render
    -w,--watch           watch files and rebuild
    --devtool [devtool]  set webpack devtool mode
    --min                compress the output js (will disable inline-source-map)
    --filename           set filename template of webpack, like `[name].web.js`

Node

const weexBuilder = require('weex-builder');
const source = 'src';
const dest = 'dest';

weexBuilder(source, dest, {
    recursive, true
}, (err, output, json) => {
    if (err) {
        console.log(chalk.red('Build Failed!'))
        err.forEach(e => console.error(e))
    }
    else {
        console.log('Build completed!\nChild')
        console.log(output.toString())
    }
})

Lisence

MIT

0.3.1-8.youku.2

6 years ago

0.4.1

6 years ago

0.4.0

7 years ago

0.3.1-8.youku

7 years ago

0.3.19

7 years ago

0.3.18

7 years ago

0.3.17

7 years ago

0.3.16

7 years ago

0.3.15

7 years ago

0.3.14

7 years ago

0.3.13

7 years ago

0.3.12

7 years ago

0.3.11-beta.1

7 years ago

0.3.11

7 years ago

0.3.10

7 years ago

0.3.9

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.0

7 years ago

0.2.13-beta.7

7 years ago

0.2.13-beta.6

7 years ago

0.2.13-beta.5

7 years ago

0.2.13-beta.4

7 years ago

0.2.13-beta.3

7 years ago

0.2.13-beta.2

7 years ago

0.2.13-beta.1

7 years ago

0.2.12

7 years ago

0.2.11

7 years ago

0.2.10

7 years ago

0.2.9

7 years ago

0.2.8-beta6

7 years ago

0.2.8-beta5

7 years ago

0.2.8-beta4

7 years ago

0.2.8-beta3

7 years ago

0.2.8-beta2

7 years ago

0.2.8-beta1

7 years ago

0.2.7

7 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.18

8 years ago

0.1.17

8 years ago

0.1.16

8 years ago

0.1.15

8 years ago

0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago