build 917 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env node
  2. /*
  3. Wrapper for JPM
  4. Part of Zombie Navigator
  5. Copyright © 2016 Zombie Navigator Developers
  6. */
  7. !function () {
  8. 'use strict';
  9. var xpi = require('jpm/lib/xpi');
  10. var dir = process.cwd();
  11. var packageJSON = require('../src/package.json');
  12. var addonID = packageJSON.name;
  13. var addonVersion = packageJSON.version;
  14. var jpmVersion = require('jpm/package.json').version;
  15. var esprimaVersion = require('esprima/package.json').version;
  16. var escodegenVersion = require('escodegen/package.json').version;
  17. var UglifyJSVersion = require('uglify-js/package.json').version;
  18. xpi(packageJSON, {
  19. xpiPath: dir
  20. }).then(function (xpi) {
  21. console.log('Version: JPM ' + jpmVersion);
  22. console.log('Version: Esprima ' + esprimaVersion);
  23. console.log('Version: Escodegen ' + escodegenVersion);
  24. console.log('Version: UglifyJS ' + UglifyJSVersion);
  25. });
  26. }();
  27. // vim: set ts=4 noet ai ft=javascript