Tiler
Pack up static resources.
Install
npm install @ucar/tiler --registry=http://10.104.10.68:7001
Usage
const path = ;const Tiler = ;const CLIENT_DIR = path;const BUILD_DIR = path; // create instanceconst tiler = cwd: CLIENT_DIR base: CLIENT_DIR entries: 'views/**/*.hbs' commons: script: // virtual file path: path includes: path path path path style: path dest: BUILD_DIR paths: componentsDir: path viewsDir: path scriptsDir: path stylesDir: path imagesDir: path ; // listen `dep` event to update view resource mapconst viewMap = {};tiler; // start to bundletiler;
Contribute
# clone repo $ git clone git@10.3.4.127:ucarfe/tiler.git$ cd tiler # install $ npm install # change something, then run test cases $ npm test