GT2/GT2-Android/node_modules/auth0/scripts/jsdocs.js

15 lines
459 B
JavaScript
Raw Normal View History

if (process.platform === 'win32') {
console.error('Must be run on a Unix OS');
process.exit(1);
}
var library = require('../package.json');
var execSync = require('child_process').execSync;
var fs = require('fs');
execSync('npm run jsdoc:generate', {stdio: 'inherit'});
if (fs.existsSync('docs')) {
execSync('rm -r docs', {stdio: 'inherit'});
}
execSync(`mv out/${library.name}/${library.version}/ docs`, {stdio: 'inherit'});
execSync('git add docs');