Preparing module for npm publishing.

Added index.js with module.export.
Updated the mainfile in package.json to point and the index.js file.
This commit is contained in:
Misha Wakerman 2015-06-15 21:36:44 +10:00
parent 80ef60d6cf
commit e3a82e5f6d
2 changed files with 2 additions and 1 deletions

1
index.js Normal file
View File

@ -0,0 +1 @@
module.exports = require('./dist/planetaryjs');

View File

@ -2,7 +2,7 @@
"name": "planetary.js",
"version": "1.1.1",
"description": "Awesome interactive globes for the web",
"main": "dist/planetaryjs",
"main": "index.js",
"scripts": {
"build": "rm -r dist/ ; gulp && cp dist/planetaryjs.min.js site/public/js/lib",
"jshint": "gulp jshint",