Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ximing/bale-cli
Copy a file and it's dependency tree to a directory and maintain a dependency
https://github.com/ximing/bale-cli
cli dependency nodejs
Last synced: 6 days ago
JSON representation
Copy a file and it's dependency tree to a directory and maintain a dependency
- Host: GitHub
- URL: https://github.com/ximing/bale-cli
- Owner: ximing
- Created: 2017-06-01T10:25:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-01T11:59:06.000Z (over 7 years ago)
- Last Synced: 2024-12-29T18:44:31.321Z (8 days ago)
- Topics: cli, dependency, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# bale-cli
### About
Copy a file and it's dependency tree to a directory and maintain a dependency### Install
```bash
npm i -g bale-cli
```### Usage
```bash
bale
```### config
Add bale.config.js in module root dir
```javascript
//bale.config.js example
var path = require('path');
module.exports = {
filePath: './index.js',
outPutDir: path.join(__dirname, '__pack__'),
progress: true,
filter: path => path.indexOf('node_modules') === -1,
pathStart: 8,
webpackConfig: null,//path to a webpack config for aliased modules
nonExistent: [],//array used for storing the list of partial paths that do not exist
requireConfig: null//path to a requirejs config for AMD modules (allows for the result of aliased module paths)
}
```