add git repo and fix codestyle issues

This commit is contained in:
David Dias
2016-03-05 21:54:18 +00:00
parent f518ced776
commit bbeb6fc0f6
3 changed files with 13 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ module.exports = (config) => {
webpack: {
output: {
path: __dirname + '/dist',
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
resolve: {

View File

@@ -1,6 +1,6 @@
{
"name": "peer-id",
"version": "0.5.1",
"version": "0.5.2",
"description": "IPFS Peer Id implementation in Node.js",
"main": "src/index.js",
"scripts": {
@@ -11,6 +11,11 @@
"coverage": "istanbul cover --print both -- _mocha tests/test.js",
"build": "webpack"
},
"standard": {
"ignore": [
"dist"
]
},
"keywords": [
"IPFS"
],

View File

@@ -1,15 +1,14 @@
var webpack = require("webpack")
var path = require("path")
var path = require('path')
module.exports = {
name: 'peerid',
context: __dirname,
entry: "./src/index.js",
entry: './src/index.js',
output: {
path: __dirname + '/dist',
path: path.join(__dirname, 'dist'),
filename: 'peer-id.js',
libraryTarget: "var",
library: "PeerId"
libraryTarget: 'var',
library: 'PeerId'
},
resolve: {
extensions: ['', '.js', '.json'],
@@ -27,4 +26,4 @@ module.exports = {
],
noParse: []
}
}
}