Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hokaccha/bagman
https://github.com/hokaccha/bagman
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hokaccha/bagman
- Owner: hokaccha
- Created: 2014-08-09T09:57:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-09T09:58:13.000Z (over 10 years ago)
- Last Synced: 2024-04-14T09:25:30.342Z (9 months ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bagman
frontend develpment system.
## Feature
* convention over configuration
* Provides develpment server and static file builder
* Asset Pipeline using [mincer](https://github.com/nodeca/mincer)## usage
See examples directory.
```
$ cd $BAGMAN_ROOT
$ npm install
$ cd examples/basic
$ ../../bin/bagman server
# or
$ ../../bin/bagman build
```## custom config
You can customize configuration using `bagman.js`. See also `examples/custom`.
```javascript
var bagman = require('bagman');bagman.set('src_dir', 'source');
bagman.set('js_dir', 'assets/scripts');
bagman.set('css_dir', 'assets/styles');bagman.configure('server', function() {
bagman.set('port', 3000);
});bagman.configure('build', function() {
bagman.set('build_assets', ['main.js', 'main.css']);
bagman.set('build_dir', 'dist');
});
```