123456789101112131415161718192021222324252627282930313233343536 |
- #!/usr/bin/env node
- /*
- Wrapper for JPM
-
- Part of Zombie Navigator
- Copyright © 2016 Zombie Navigator Developers
- */
- !function () {
- 'use strict';
-
- var xpi = require('jpm/lib/xpi');
-
- var dir = process.cwd();
- var packageJSON = require('../src/package.json');
- var addonID = packageJSON.name;
- var addonVersion = packageJSON.version;
-
- var jpmVersion = require('jpm/package.json').version;
- var esprimaVersion = require('esprima/package.json').version;
- var escodegenVersion = require('escodegen/package.json').version;
- var UglifyJSVersion = require('uglify-js/package.json').version;
-
- xpi(packageJSON, {
- xpiPath: dir
- }).then(function (xpi) {
- console.log('Version: JPM ' + jpmVersion);
- console.log('Version: Esprima ' + esprimaVersion);
- console.log('Version: Escodegen ' + escodegenVersion);
- console.log('Version: UglifyJS ' + UglifyJSVersion);
- });
- }();
- // vim: set ts=4 noet ai ft=javascript
|