NUEVA BUSQUEDA DE DATOS SRI
This commit is contained in:
38
node_modules/ejs/jakefile.js
generated
vendored
38
node_modules/ejs/jakefile.js
generated
vendored
@@ -1,4 +1,5 @@
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var execSync = require('child_process').execSync;
|
||||
var exec = function (cmd) {
|
||||
execSync(cmd, {stdio: 'inherit'});
|
||||
@@ -19,39 +20,51 @@ task('clean', ['clobber'], function () {
|
||||
|
||||
desc('Lints the source code');
|
||||
task('lint', ['clean'], function () {
|
||||
exec('./node_modules/.bin/eslint "**/*.js"');
|
||||
var epath = path.join('./node_modules/.bin/eslint');
|
||||
exec(epath+' "**/*.js"');
|
||||
console.log('Linting completed.');
|
||||
});
|
||||
|
||||
task('browserify', function () {
|
||||
exec('./node_modules/browserify/bin/cmd.js --standalone ejs lib/ejs.js > ejs.js');
|
||||
var epath = path.join('./node_modules/browserify/bin/cmd.js');
|
||||
exec(epath+' --standalone ejs lib/ejs.js > ejs.js');
|
||||
console.log('Browserification completed.');
|
||||
});
|
||||
|
||||
task('minify', function () {
|
||||
exec('./node_modules/uglify-js/bin/uglifyjs ejs.js > ejs.min.js');
|
||||
var epath = path.join('./node_modules/uglify-js/bin/uglifyjs');
|
||||
exec(epath+' ejs.js > ejs.min.js');
|
||||
console.log('Minification completed.');
|
||||
});
|
||||
|
||||
desc('Generates the EJS API docs');
|
||||
task('doc', function (dev) {
|
||||
desc('Generates the EJS API docs for the public API');
|
||||
task('doc', function () {
|
||||
jake.rmRf('out');
|
||||
var p = dev ? '-p' : '';
|
||||
exec('./node_modules/.bin/jsdoc ' + p + ' -c jsdoc.json lib/* docs/jsdoc/*');
|
||||
console.log('Documentation generated.');
|
||||
var epath = path.join('./node_modules/.bin/jsdoc');
|
||||
exec(epath+' --verbose -c jsdoc.json lib/* docs/jsdoc/*');
|
||||
console.log('Documentation generated in ./out.');
|
||||
});
|
||||
|
||||
desc('Generates the EJS API docs for the public and private API');
|
||||
task('devdoc', function () {
|
||||
jake.rmRf('out');
|
||||
var epath = path.join('./node_modules/.bin/jsdoc');
|
||||
exec(epath+' --verbose -p -c jsdoc.json lib/* docs/jsdoc/*');
|
||||
console.log('Documentation generated in ./out.');
|
||||
});
|
||||
|
||||
desc('Publishes the EJS API docs');
|
||||
task('docPublish', ['doc'], function () {
|
||||
fs.writeFileSync('out/CNAME', 'api.ejs.co');
|
||||
console.log('Pushing docs to gh-pages...');
|
||||
exec('./node_modules/.bin/git-directory-deploy --directory out/');
|
||||
var epath = path.join('./node_modules/.bin/git-directory-deploy');
|
||||
exec(epath+' --directory out/');
|
||||
console.log('Docs published to gh-pages.');
|
||||
});
|
||||
|
||||
desc('Runs the EJS test suite');
|
||||
task('test', ['lint'], function () {
|
||||
exec('./node_modules/.bin/mocha');
|
||||
exec(path.join('./node_modules/.bin/mocha'));
|
||||
});
|
||||
|
||||
publishTask('ejs', ['build'], function () {
|
||||
@@ -60,10 +73,11 @@ publishTask('ejs', ['build'], function () {
|
||||
'README.md',
|
||||
'LICENSE',
|
||||
'package.json',
|
||||
'postinstall.js',
|
||||
'ejs.js',
|
||||
'ejs.min.js',
|
||||
'lib/**'
|
||||
'lib/**',
|
||||
'bin/**',
|
||||
'usage.txt'
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user