mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix ordering e2e failing test (#4825)
* ordering fix use common method in datatable * ordering fix use common method in datatable * fix sorting ps e2e * fix ordering * move search page in testing and fix sorting boolean flag * fix import * fix moment * use common sort method in document list test * use common sort method in document list test * remove unnecesary sort control * remove duplicate test * remove e2e suspended removed status * documentation
This commit is contained in:
32
lib/cli/bin/doc/audit.js
Executable file
32
lib/cli/bin/doc/audit.js
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
var shell = require('shelljs');
|
||||
var cmd = "npm audit --json";
|
||||
var ejs = require('ejs');
|
||||
var path = require('path');
|
||||
var fs = require('fs');
|
||||
|
||||
var templatePath = path.resolve(__dirname, 'templates', 'auditPage.ejs');
|
||||
|
||||
|
||||
try {
|
||||
var jsonAudit = shell.exec(cmd, {silent:true});
|
||||
} catch(err) {
|
||||
console.error('error'+ err);
|
||||
}
|
||||
|
||||
var packageJson = JSON.parse(fs.readFileSync(path.resolve('./','package.json')));
|
||||
|
||||
ejs.renderFile(templatePath, {
|
||||
jsonAudit: JSON.parse(jsonAudit),
|
||||
projVersion: packageJson.version,
|
||||
projName: packageJson.description
|
||||
}, {}, (err, mdText) => {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
} else {
|
||||
fs.writeFileSync(`audit-info-${packageJson.version}.md`, mdText);
|
||||
console.log(`Wrote Audit`);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user