Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jedi4ever/grunt-bashpack
Grunt task to create bashpacks from your nodejs project (self-executable bash scripts)
https://github.com/jedi4ever/grunt-bashpack
Last synced: about 1 month ago
JSON representation
Grunt task to create bashpacks from your nodejs project (self-executable bash scripts)
- Host: GitHub
- URL: https://github.com/jedi4ever/grunt-bashpack
- Owner: jedi4ever
- License: mit
- Created: 2013-08-21T12:20:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-26T07:44:33.000Z (over 11 years ago)
- Last Synced: 2024-11-07T17:50:31.566Z (about 2 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# Grunt-bashpack
> Create a bash executable (bashpack) from your node project
This makes is easy to create single-file executables for your projects
## Getting Started
This plugin requires Grunt `~0.4.1````shell
npm install grunt-bashpack --save-dev
```Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
```js
grunt.loadNpmTasks('bashpack');
```## The "bashpack" task
### Overview
In your project's Gruntfile, add a section named `bashpack` to the data object passed into `grunt.initConfig()`.```js
grunt.initConfig({
bashpack: {
startFile: './bin/yourstartfile',
options: {
// Task-specific options go here.
},
},
})
```### Options
For the options see the documentation of bashpack
### Usage Examples
```js
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
'bashpack': {
startScript: 'bin/hello.js',
darwin: {
options: {
outputFile: 'darwin.run',
node: {
version: 'latest',
arch: 'x86'
}
},
},
linux: {
options: {
outputFile: 'linux.run',
node: {
version: '0.10.4',
platform: 'linux',
arch: 'x86'
}
},
}
}
});
```