forked from pwa-builder/PWABuilder-CLI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
45 lines (42 loc) · 1.16 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* **NOTE**: Use of manifoldjs as a library is now DEPRECATED. Use manifoldjs-lib instead.
*
* The top-level API for `manifoldjs`. Provides access to the key libraries in
* manifoldjs so you can write your own tools using `manifoldjs` as a library.
*
* Usage
* -----
*
* var manifoldjs = require('manifoldjs');
*
*/
var lib = require('manifoldjs-lib');
var libValidationContants = lib.constants.validation;
// Maintain compatibility with original constant definitions
var validationConstants = {
levels: libValidationContants.levels,
codes: libValidationContants.codes,
manifestMembers: libValidationContants.manifestMembers,
platforms: {
all: 'all',
android: 'android',
chrome: 'chrome',
firefox: 'firefox',
ios: 'ios',
windows: 'windows'
},
platformDisplayNames: {
all: 'All Platforms',
android: 'Android',
chrome: 'Chrome',
firefox: 'Firefox',
ios: 'iOS',
windows: 'Windows'
}
};
module.exports = {
manifestTools: lib.manifestTools,
validationConstants: validationConstants,
projectBuilder: lib.projectBuilder,
projectTools: lib.projectTools
};