Closed
Issue #90 · created by Jim Sproch ·


grunt build:package

grunt build:package should create a directory called package, the contents of which could be published to NPM (npm publish) or installed locally (eg. npm install /path/to/JavaPoly/package/). The package directory should contain a package.json (name=javapoly, license=BSD-3-Clause, etc) and also a built copy of JavaPoly. The version in the package.json should be the current GMT date accurate to second precision (eg. 0.0.20160227154127).

Related to #89 and #91

A couple files for the generated package directory:

package.json:

{
  "name": "javapoly",
  "version": "0.0.201602271542",
  "description": "JavaPoly.js is a library that polyfills native JVM support. It allows you to import Java code and invoke the code directly from Javascript, even if the user doesn't have Java installed on their computer.",
  "main": "index.js",
  "author": "",
  "homepage": "https://www.javapoly.com",
  "license": "BSD-3-Clause"
}

README.md:

```javascript
var JavaPoly = require('javapoly');
JavaPoly.addClass('/path/to/MyClass.java');
JavaPoly.addClass('/path/to/MyClass2.class');
JavaPoly.type('MyClass').then(function(MyClass){MyClass.doSomething();});
JavaPoly.type('MyClass2').then(function(MyClass2){MyClass2.doSomething();});
```

JavaPoly will work in nodejs and/or in the web browser, even if the user doesn't have Java installed!

For more details: https://www.javapoly.com

2 participants
jimsproch/JavaPoly#90

Assignee: none

Milestone: none


Votes
0 up
0 down