-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
40 lines (36 loc) · 1.25 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
//this script is only used for debugging. comment out or change the called script as needed.
const checkPackageJson = require('./scripts/checkPackageJson');
const run = require('./scripts/run');
const singleExport = require('./scripts/singleExport');
const hexColors = require('./scripts/hexColors');
const plugins = require('./scripts/plugins');
// run.go()
// const errorMsg = checkPackageJson.run({
// "enabled": false,
// "allowGithub": true,
// "requireGitCommit": false,
// "packagePath": "./testFiles/package.json"
// });
// const errorMsg = singleExport.run({
// 'enabled': true,
// 'rootPath': './testFiles/singleExport'
// });
// const errorMsg = hexColors.run( {
// "enabled": true,
// "colorsFilePath": "./testFiles/hexColors/colorFile.scss",
// "checkHTML": true,
// "checkForRGBA": true,
// "ignoreFiles": ["./testFiles/hexColors/ignoreThisFolder", "./testFiles/hexColors/ignoreThisFile.scss"],
// "rootPath": "./testFiles/hexColors"
// });
const errorMsg = plugins.run({
rootPath: './testfiles/plugins',
enabled: true,
pluginsArray: ['customPlugin/plugin']
});
errorMsg.forEach(msg => {
console.error(msg.red);
});
if (errorMsg.length > 0) {
console.error(`Total Errors: ${errorMsg.length}`.red);
}