This repository has been archived by the owner on Apr 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config option to add custom concat tasks (#87)
This also includes docs, using xtend for concat.
- Loading branch information
Showing
4 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[« back to Table of Contents](TOC.md) | ||
|
||
# Concatenate files with INIT | ||
|
||
INIT supports concatenation out of the box through | ||
[`grunt-contrib-concat`](https://github.com/gruntjs/grunt-contrib-concat). | ||
This is used by default for concatenating your template partials into a working | ||
prototype / HTML page. | ||
|
||
## Add custom concat tasks | ||
|
||
You can add custom tasks to concatenate files. Add your custom concatenations to | ||
the config object in `config.js`. | ||
|
||
A sample custom config object could look like: | ||
|
||
concat: { | ||
concatFirst: { | ||
src: [ | ||
'js/part1.js', | ||
'js/part2.js' | ||
], | ||
dest: 'concatenatedfile.js' | ||
} | ||
}, | ||
|
||
The `src` key references your partials that you want to concatenate. The `dest` | ||
key describes the relative path to the result. The path is set relative from | ||
INIT’s root. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters