Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
Merge pull request #739 from LiskHQ/724-remove-postinstall-script
Browse files Browse the repository at this point in the history
Remove postinstall script - closes #724
  • Loading branch information
willclarktech authored Jul 23, 2018
2 parents 4ba6e63 + c7e3bd7 commit 3a0788a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ jspm_packages
tmp

# Distribution folders
dist-browser/*.js
dist-browser/*.json
dist-node
dist-browser/
dist-node/

# Built test files
browsertest/package.json
Expand Down
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Lisk Elements is a JavaScript library for [Lisk][Lisk Core GitHub], the blockcha

## Installation

## Installation via npm
### Installation via npm

Add Lisk Elements as a dependency of your project:

Expand Down Expand Up @@ -37,6 +37,13 @@ import { APIClient, transactions } from 'lisk-elements';
const { APIClient, transactions } = require('lisk-elements');
```

**Note:** If you are installing Lisk Elements as an npm dependency via a GitHub reference, you will need to manually build the distribution files by running the following commands from the root directory of your project:

```
cd node_modules/lisk-elements
npm run build
```

### Installation via CDN

Include the following script using the following HTML. The `lisk` variable will be exposed.
Expand All @@ -51,6 +58,17 @@ Or minified:
<script src="https://js.lisk.io/lisk-elements-1.0.0.min.js"></script>
```

### Installation from source

Our source code is hosted on GitHub. You can build the distribution yourself by cloning the repository, installing the relevant dependencies and running our build script as follows:

```
git clone https://github.com/LiskHQ/lisk-elements.git
cd lisk-elements
npm install
npm run build
```

## Usage

Access functionality via the relevant namespace. For example, the following will create and (locally) sign a transfer (type 0) transaction, and then broadcast it to the Lisk Testnet.
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"build:check": "node -e \"require('./dist-node')\"",
"precommit": "lint-staged && npm run lint",
"prepush": "npm run lint && npm test",
"postinstall": "if [ ! -f ./dist-node/index.js ]; then npm run build; fi",
"prepublishOnly": "rm -r ./node_modules && npm install && npm run prepush && npm run build"
},
"dependencies": {
Expand Down

0 comments on commit 3a0788a

Please sign in to comment.