1 | # hadron-compile-cache [![][travis_img]][travis_url] [![][npm_img]][npm_url]
|
2 |
|
3 | > Hadron Compile Cache
|
4 |
|
5 | ## Installation
|
6 |
|
7 | ```
|
8 | npm install --save hadron-compile-cache
|
9 | ```
|
10 |
|
11 | ## Usage
|
12 |
|
13 | ```javascript
|
14 | 'use strict';
|
15 |
|
16 | const path = require('path');
|
17 | const CompileCache = require('hadron-compile-cache');
|
18 | const home = path.join('path', 'to', 'my', 'root');
|
19 |
|
20 | CompileCache.setHomeDirectory(home);
|
21 |
|
22 | require('mysource.jsx'); // Will be hooked into the cache.
|
23 | ```
|
24 |
|
25 | ## License
|
26 |
|
27 | Apache 2.0
|
28 |
|
29 | [travis_img]: https://img.shields.io/travis/mongodb-js/hadron-compile-cache.svg?style=flat-square
|
30 | [travis_url]: https://travis-ci.org/mongodb-js/hadron-compile-cache
|
31 | [npm_img]: https://img.shields.io/npm/v/hadron-compile-cache.svg?style=flat-square
|
32 | [npm_url]: https://www.npmjs.org/package/hadron-compile-cache
|