updated doc
This commit is contained in:
parent
ff3470022e
commit
65f989761a
42
README.md
42
README.md
|
@ -7,6 +7,10 @@ A Node.js library providing automatic site assets aggregation.
|
|||
|
||||
npm install node-ff-assets --save
|
||||
|
||||
## Example Application
|
||||
|
||||
There is a fully working bootstrap with angularjs example in the example folder.
|
||||
|
||||
## Usage
|
||||
|
||||
// note1: www_static/[js/css]/lib is version ignored.
|
||||
|
@ -113,8 +117,7 @@ A Node.js library providing automatic site assets aggregation.
|
|||
|
||||
## Config options
|
||||
|
||||
The config option templates can be found in code;
|
||||
todo: add link
|
||||
The config option of the objects are filled from config templates with defaults.
|
||||
|
||||
### Builder Config
|
||||
|
||||
|
@ -172,6 +175,17 @@ A Node.js library providing automatic site assets aggregation.
|
|||
assetSeperator: '\n/* '+name+': next */\n',
|
||||
};
|
||||
|
||||
### Assembler Download Force
|
||||
|
||||
Sometimes its needed for have forces downloads of a resource.
|
||||
This can be done by adding an extra @ sign.
|
||||
|
||||
'/static/js/lib/dynamic-generated.js@@http://localhost:8080/example-ui/include-js/generateModels;
|
||||
|
||||
note: if using localhost to download use the downloadStartDelay option so server is really up.
|
||||
|
||||
The downloadForce option will redownload all resources of asset group.
|
||||
|
||||
|
||||
## Target/Source locations
|
||||
|
||||
|
@ -195,7 +209,7 @@ A Node.js library providing automatic site assets aggregation.
|
|||
filesystem file: www_static/js/ffa/jquery-2.1.3/jquery.js
|
||||
.gitignore line: www_static/js/ffa
|
||||
|
||||
if buildConfig.linkTargetSingleResult = true render
|
||||
if buildConfig.linkTargetSingleResult = true then result
|
||||
static/js/ffa/assets.js
|
||||
else
|
||||
static/js/site.js
|
||||
|
@ -401,7 +415,7 @@ A Node.js library providing automatic site assets aggregation.
|
|||
|
||||
## Tests
|
||||
|
||||
npm test (TODO)
|
||||
npm test
|
||||
|
||||
## Contributing
|
||||
|
||||
|
@ -410,13 +424,17 @@ Add unit tests for any new or changed functionality. Lint and test your code.
|
|||
|
||||
## Release History
|
||||
|
||||
* 0.2.0
|
||||
* redone objs
|
||||
* added tests
|
||||
* made jslint pass
|
||||
### 0.2.1
|
||||
* added example
|
||||
* fixed buid callback
|
||||
* fixed buildOrder default
|
||||
|
||||
* 0.1.2 added objectAdd
|
||||
### 0.2.0
|
||||
* redone objs
|
||||
* added tests
|
||||
* made jslint pass
|
||||
|
||||
* 0.1.1 Doc updates
|
||||
|
||||
* 0.1.0 Initial release
|
||||
### 0.1.x
|
||||
* added objectAdd
|
||||
* Doc updates
|
||||
* Initial release
|
||||
|
|
Loading…
Reference in a new issue