Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
feat: npm package for src
Browse files Browse the repository at this point in the history
  • Loading branch information
zachferland committed Apr 16, 2020
1 parent ab79a3a commit c6e6e39
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
public/index.js
lib
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
public
iframe
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@
"name": "3id-connect",
"version": "0.0.1",
"description": "Account management for 3Box",
"main": "lib/index.js",
"directories": {
"lib": "lib"
},
"scripts": {
"lint": "./node_modules/.bin/standard --verbose src/**",
"test": "jest --detectOpenHandles --coverage",
"build:es5": "rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib",
"build:dist": "./node_modules/.bin/webpack --config webpack.config.js --mode=development",
"build:dist:watch": "./node_modules/.bin/webpack --config webpack.config.js --mode=development --watch",
"build:dist:prod": "./node_modules/.bin/webpack --config webpack.config.js --mode=production --output-filename index.js",
"build": "npm run build:dist:prod",
"prepublishOnly": "npm run build",
"build": "npm run build:dist:prod; npm run build:es5;",
"prepublishOnly": "npm run build:es5",
"server:start": "http-server -c-1 -p 30001 public",
"start": "npm run build:dist:watch & npm run server:start"
},
Expand Down Expand Up @@ -37,7 +42,7 @@
"@walletconnect/web3-provider": "^1.0.0-beta.47",
"authereum": "0.0.4-beta.129",
"fortmatic": "^2.0.5",
"identity-wallet": "github:3box/identity-wallet-js#develop",
"identity-wallet": "^1.2.0",
"postmsg-rpc": "^2.4.0",
"store": "^2.0.12",
"url-parse": "^1.4.7",
Expand Down
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import ThreeIdProviderProxy from './threeIdProviderProxy.js'
import ThreeIdConnectService from './threeIdConnectService.js'
import ThreeIdConnect from './threeIdConnect.js'

export {
ThreeIdConnect,
ThreeIdConnectService,
ThreeIdProviderProxy
}

0 comments on commit c6e6e39

Please sign in to comment.