commit 85508ec6133a6af787231e394b8c1672f089ac59 Author: Dmitry Shulyak Date: Mon Mar 26 13:29:22 2018 +0300 Add dependencies diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a737654 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +web3.js \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..baf4137 --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +default: + npm install + cp ./node_modules/web3/dist/web3.min.js web3.js + go run cmd/bundler.go --src web3.js -dst web3js.go + rm web3.js diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..9b98cb9 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,53 @@ +{ + "name": "status-js", + "version": "0.0.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "bignumber.js": { + "version": "github:status-im/bignumber.js#cc066a0a3d6bfe0c436c9957f4ea8344bf963c89", + "dev": true + }, + "crypto-js": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.1.8.tgz", + "integrity": "sha1-cV8HC/YBTyrpkqmLOSkli3E/CNU=", + "dev": true + }, + "requirejs": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.5.tgz", + "integrity": "sha512-svnO+aNcR/an9Dpi44C7KSAy5fFGLtmPbaaCeQaklUz8BQhS64tWWIIlvEA5jrWICzlO/X9KSzSeXFnZdBu8nw==", + "dev": true + }, + "utf8": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/utf8/-/utf8-2.1.2.tgz", + "integrity": "sha1-H6DZJw6b6FDZsFAn9jUZv0ZFfZY=", + "dev": true + }, + "web3": { + "version": "git+https://github.com/status-im/web3.js.git#aca66029d7ffac8ed2803b2fc7f0fec01e335ca3", + "dev": true, + "requires": { + "bignumber.js": "github:status-im/bignumber.js#cc066a0a3d6bfe0c436c9957f4ea8344bf963c89", + "crypto-js": "3.1.8", + "utf8": "2.1.2", + "xhr2": "0.1.4", + "xmlhttprequest": "1.8.0" + } + }, + "xhr2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/xhr2/-/xhr2-0.1.4.tgz", + "integrity": "sha1-f4dliEdxbbUCYyOBL4GMras4el8=", + "dev": true + }, + "xmlhttprequest": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", + "integrity": "sha1-Z/4HXFwk/vOfnWX197f+dRcZaPw=", + "dev": true + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..0c9f072 --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "status-js", + "version": "0.0.1", + "description": "Package file for NPM packages required by make generate, to be included in Go static assets", + "engines": { + "node": ">=8.9.0" + }, + "dependencies": {}, + "devDependencies": { + "requirejs": "^2.3.4", + "web3": "https://github.com/status-im/web3.js#status-develop" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/status-im/status-go.git" + }, + "author": "Pedro Pombeiro", + "license": "ISC", + "bugs": { + "url": "https://github.com/status-im/status-go/issues" + }, + "homepage": "https://github.com/status-im/status-go#readme" +}