-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
19 lines (17 loc) · 613 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* Asset Catalog Generator
*
* Asset Catalog Format Reference:
* https://developer.apple.com/library/archive/documentation/Xcode/Reference/xcode_ref-Asset_Catalog_Format/index.html#//apple_ref/doc/uid/TP40015170-CH18-SW1
*/
const config = require("./config");
const Generator = require("xc-assetcat-gen");
// Create a config object that can be accessed from the generator.
this.config = {
source_images_root: config.source_images_root,
asset_catalog_root: config.asset_catalog_root,
author: config.author
};
// Parse the assets.
const parser = new Generator.Parser(config.assets);
parser.parse();