weex-builder
[![Build Status](https://travis-ci.org/weexteam/weex-builder.svg?branch=master)](https://travis-ci.org/weexteam/weex-builder) [![dependcy](https://david-dm.org/weexteam/weex-builder.svg)](https://david-dm.org/weexteam/weex-builder) [![dev dependcy](https:
Last updated a year ago by erha19 .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install weex-builder 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.4.1                                ...           latest (a year ago)
  • 0.3.1-8.youku.2                                ...           youku (a year ago)

67 Versions

  • 0.3.1-8.youku.2                                ...           a year ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           2 years ago
  • 0.3.1-8.youku                                ...           2 years ago
  • 0.3.19                                ...           2 years ago
  • 0.3.18                                ...           2 years ago
  • 0.3.17                                ...           2 years ago
  • 0.3.16                                ...           2 years ago
  • 0.3.15                                ...           2 years ago
  • 0.3.14                                ...           2 years ago
  • 0.3.13                                ...           2 years ago
  • 0.3.12                                ...           2 years ago
  • 0.3.11-beta.1                                ...           2 years ago
  • 0.3.11                                ...           2 years ago
  • 0.3.10                                ...           2 years ago
  • 0.3.9                                ...           2 years ago
  • 0.3.8                                ...           2 years ago
  • 0.3.7                                ...           2 years ago
  • 0.3.5                                ...           2 years ago
  • 0.3.4                                ...           2 years ago
  • 0.3.3                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.13-beta.7                                ...           2 years ago
  • 0.2.13-beta.6                                ...           2 years ago
  • 0.2.13-beta.5                                ...           2 years ago
  • 0.2.13-beta.4                                ...           2 years ago
  • 0.2.13-beta.3                                ...           2 years ago
  • 0.2.13-beta.2                                ...           2 years ago
  • 0.2.13-beta.1                                ...           2 years ago
  • 0.2.12                                ...           2 years ago
  • 0.2.11                                ...           2 years ago
  • 0.2.10                                ...           2 years ago
  • 0.2.9                                ...           2 years ago
  • 0.2.8-beta6                                ...           2 years ago
  • 0.2.8-beta5                                ...           2 years ago
  • 0.2.8-beta4                                ...           2 years ago
  • 0.2.8-beta3                                ...           2 years ago
  • 0.2.8-beta2                                ...           2 years ago
  • 0.2.8-beta1                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.2.6                                ...           3 years ago
  • 0.2.5                                ...           3 years ago
  • 0.2.4                                ...           3 years ago
  • 0.2.3                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.18                                ...           3 years ago
  • 0.1.17                                ...           3 years ago
  • 0.1.16                                ...           3 years ago
  • 0.1.15                                ...           3 years ago
  • 0.1.14                                ...           3 years ago
  • 0.1.13                                ...           3 years ago
  • 0.1.12                                ...           3 years ago
  • 0.1.11                                ...           3 years ago
  • 0.1.10                                ...           3 years ago
  • 0.1.9                                ...           3 years ago
  • 0.1.8                                ...           3 years ago
  • 0.1.7                                ...           3 years ago
  • 0.1.6                                ...           3 years ago
  • 0.1.5                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Today 5
This Week 29
This Month 151
Last Day 8
Last Week 92
Last Month 721
Dependencies (21)
Dev Dependencies (5)

Copyright 2014 - 2016 © taobao.org |