Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-band/dool
d-band tool & dev tool
https://github.com/d-band/dool
babel build-tool devtool es6 frontend javascript javascript-modules less webpack
Last synced: about 1 month ago
JSON representation
d-band tool & dev tool
- Host: GitHub
- URL: https://github.com/d-band/dool
- Owner: d-band
- Created: 2016-01-13T05:35:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T19:25:59.000Z (7 months ago)
- Last Synced: 2024-05-29T10:26:29.676Z (7 months ago)
- Topics: babel, build-tool, devtool, es6, frontend, javascript, javascript-modules, less, webpack
- Language: JavaScript
- Size: 807 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dool
===> d-band tool & dev tool based on webpack, changed from [atool](https://github.com/ant-tool)
```
________ ______
___ __ \______ ______ ___ /
__ / / /_ __ \_ __ \__ /
_ /_/ / / /_/ // /_/ /_ /
/_____/ \____/ \____/ /_/```
[![NPM version](https://img.shields.io/npm/v/dool.svg)](https://www.npmjs.com/package/dool)
[![NPM downloads](https://img.shields.io/npm/dm/dool.svg)](https://www.npmjs.com/package/dool)
[![Build Status](https://travis-ci.com/d-band/dool.svg?branch=master)](https://travis-ci.com/d-band/dool)
[![Coverage Status](https://coveralls.io/repos/github/d-band/dool/badge.svg?branch=master)](https://coveralls.io/github/d-band/dool?branch=master)
[![Dependency Status](https://david-dm.org/d-band/dool.svg)](https://david-dm.org/d-band/dool)
[![Greenkeeper badge](https://badges.greenkeeper.io/d-band/dool.svg)](https://greenkeeper.io/)---
## Install
```bash
$ npm install dool -g
```## Usage
- Examples: https://github.com/d-band/dool-examples
```
$ dool -hUsage: dool [options]
Commands:
init Initialize project
build Build project
server Serve projectOptions:
--version, -v Show version number
--help, -h Show help
$ dool build -hUsage: dool build [options]
Options:
--version, -v Show version number [boolean]
--help, -h Show help [boolean]
--compress Build with compress [default: true]
--extract Build with extract CSS [default: true]
--config Custom config path [default: "webpack.config.js"]
--hash Build with hash and output map.json [default: false]
--watch, -w Watch and rebuild [default: false]
--cluster Run build with cluster [default: false]
--output-path, -o Output path [default: "./dist"]
--public-path, -P Public path [string]
--devtool SourceMap generate method [string]
--verbose Show more details [default: false]
```[![asciicast](https://asciinema.org/a/34125.png)](https://asciinema.org/a/34125)
## Configuration
- configuration file: `.doolrc` or `.doolrc.js`
- `.doolrc` is JSON file
- `.doolrc.js` support export Object or Function```javascript
// .doolrc
{
entry: Object,
files: String | Array,
filesBase: String,
publicPath: String,
outputPath: String,
babelPlugins: Array,
babelProposals: Object,
babelEnvOptions: Object,
postcssPlugins: Object | Array,
autoprefixer: false | Object,
define: Object,
externals: Object,
extract: Boolean,
cssModules: true | Array,
cssSourceMap: Boolean,
commons: true | Object | Array,
compress: Boolean,
manifest: Boolean | Object,
hash: Boolean,
devtool: String,
devServer: Object
}
```## Report a issue
* [All issues](https://github.com/d-band/dool/issues)
* [New issue](https://github.com/d-band/dool/issues/new)## License
dool is available under the terms of the MIT License.