bebop
所属分类:工具库
开发工具:CoffeeScript
文件大小:0KB
下载次数:0
上传日期:2021-02-11 04:27:26
上 传 者:
sh-1993
说明: 贝博普,
(bebop,)
文件列表:
.npmignore (15, 2021-02-10)
.travis.yml (108, 2021-02-10)
LICENSE (1061, 2021-02-10)
Sakefile (884, 2021-02-10)
assets/ (0, 2021-02-10)
assets/favicon-16x16.png (21445, 2021-02-10)
assets/favicon-32x32.png (21445, 2021-02-10)
assets/favicon.ico (21445, 2021-02-10)
assets/github-markdown.css (0, 2021-02-10)
assets/logo.svg (2655, 2021-02-10)
bebop.min.js (19519, 2021-02-10)
package-lock.json (270848, 2021-02-10)
package.json (1834, 2021-02-10)
src/ (0, 2021-02-10)
src/bebop.coffee (848, 2021-02-10)
src/cli.coffee (6939, 2021-02-10)
src/client/ (0, 2021-02-10)
src/client/assets/ (0, 2021-02-10)
src/client/assets/fonts/ (0, 2021-02-10)
src/client/assets/fonts/icomoon.eot (3764, 2021-02-10)
src/client/assets/fonts/icomoon.svg (10326, 2021-02-10)
src/client/assets/fonts/icomoon.ttf (3600, 2021-02-10)
src/client/assets/fonts/icomoon.woff (3676, 2021-02-10)
src/client/assets/style.css (1074, 2021-02-10)
src/client/bebop.coffee (5066, 2021-02-10)
src/client/dir.coffee (652, 2021-02-10)
src/client/dump.coffee (2257, 2021-02-10)
src/client/event-emitter.coffee (926, 2021-02-10)
src/client/index.coffee (103, 2021-02-10)
src/client/log.coffee (530, 2021-02-10)
src/client/node.coffee (1465, 2021-02-10)
src/client/nodejs.coffee (912, 2021-02-10)
src/client/stacktrace.coffee (1843, 2021-02-10)
src/client/tags.coffee (155, 2021-02-10)
src/client/utils.coffee (559, 2021-02-10)
src/client/websocket.coffee (635, 2021-02-10)
src/compilers/ (0, 2021-02-10)
src/compilers/index.coffee (1960, 2021-02-10)
... ...
# bebop [![NPM version][npm-img]][npm-url] [![Build Status][travis-img]][travis-url] [![Gitter chat][gitter-img]][gitter-url]
##### Jazzy build tool for sophisticated front-end development.
Bebop is a rapid web development tool with a built-in http server, preprocessing
workflow support and intelligent browser reloading, freeing you to hit the keys
like an undead techno-zombie Charlie Parker.
### Installation
```sh
$ npm install -g bebop-cli
```
If you use bebop's static file serving feature it will automatically inject the
Javascript required. If you want to enable something similar for your own
connec/express apps you can use `bebop.middleware`, or link directly to
`bebop-client/bebop.js`.
### Usage
Change to the directory in which your application resides and run `bebop`.
```sh
$ cd ~/myapp
$ bebop
```
### CLI
```sh
bebop --help
bebop [options] [file]
Options:
--compile, -c Compile files and exit
--compilers, Specify compiler to use for a given extension
--config, Specify bebop.coffee to use
--exclude, -x Exclude files for watching, compiling
--force-reload Force reload when file is compiled
--host, -h Hostname to bind to
--include, -i Include files for watching, compiling
--no-compile Do not compile files automatically
--no-server Do not run static file server
--no-watch Do not watch files for changes
--open, -o Open browser automatically
--port, -p Port to listen on
--pre Command to execute first
--secure, -s Require authentication
--static-dir Directory used as root for static file server
--work-dir Directory used as root for compiling, watching
--help Display this message
--version, -v Display version
```
### Configuration
You can configure Bebop by creating a `.bebop` file in either your home
directory or the root of your project. If you use an extension of `.coffee` it
will be imported as a coffeescript module. Properties exported in this module
will be used to override the defaults used.
### Example `.bebop` configuration file
```coffeescript
fs = require 'fs'
path = require 'path'
requisite = require 'requisite'
module.exports =
port: 3000
compilers:
jade: (src) ->
# only compile index.jade file
if /index.jade$/.test src
"jade --pretty #{src} --out #{path.dirname src}"
# use requisite to bundle client-side coffee script files
coffee: (src, dst, cb) ->
requisite.bundle {entry: src}, (err, bundle) ->
return cb err if err?
fs.writeFileSync dst, bundle.toString()
cb null, true
```
### Editor integration
Integration with vim is provided by
[vim-bebop](http://github.com/zeekay/vim-bebop). You can do all sorts of fancy
stuff like evaluate Javascript, Coffeescript, get completions, etc.
[travis-img]: https://img.shields.io/travis/zeekay/bebop.svg
[travis-url]: https://travis-ci.org/zeekay/bebop
[coveralls-img]: https://coveralls.io/repos/zeekay/bebop/badge.svg?branch=master&service=github
[coveralls-url]: https://coveralls.io/github/zeekay/bebop?branch=master
[dependency-url]: https://david-dm.org/zeekay/bebop
[dependency-img]: https://david-dm.org/zeekay/bebop.svg
[npm-img]: https://img.shields.io/npm/v/bebop-cli.svg
[npm-url]: https://www.npmjs.com/package/bebop-cli
[gitter-img]: https://badges.gitter.im/join-chat.svg
[gitter-url]: https://gitter.im/zeekay/hi
[downloads-img]: https://img.shields.io/npm/dm/bebop.svg
[downloads-url]: http://badge.fury.io/js/bebop
[devdependency-img]: https://david-dm.org/zeekay/bebop/dev-status.svg
[devdependency-url]: https://david-dm.org/zeekay/bebop#info=devDependencies
近期下载者:
相关文件:
收藏者: