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

15 lines
459 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
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');