Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/n-a-m-e/js-joiner
Atom plugin for joining all JS files in a directory if a mark is present in the current open file
https://github.com/n-a-m-e/js-joiner
Last synced: 14 days ago
JSON representation
Atom plugin for joining all JS files in a directory if a mark is present in the current open file
- Host: GitHub
- URL: https://github.com/n-a-m-e/js-joiner
- Owner: n-a-m-e
- License: mit
- Created: 2016-01-13T23:28:53.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-29T08:40:46.000Z (over 9 years ago)
- Last Synced: 2023-02-27T12:37:04.857Z (almost 2 years ago)
- Language: CoffeeScript
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# js-joiner
js-joiner joins and optionally compresses any javascript files you need, according to a specially formatted comment that has to be present on the first line of your "trigger" JS file.
## Usage
In the first line of some javascript file that you want to use as "trigger" (this means that whenever this file is saved a new package is generated), add a comment like the following:
```
//js-joiner out: out/file.js, files: file-1.js file-2.js file-3.js, compress: true
```Where:
* ```out``` is the path to your "package" file, relative to the "trigger" file's directory
* ```files``` is a space-separated list of all the files you want packaged in the order they will appear in the package file
* ```compress``` is an entirely optional key that if added and set to true will uglify the file specified in ```out``` after generation.