Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

Commit 197feee

Browse files
committed
Simplify browserify process.
1 parent b65f234 commit 197feee

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ npm run browserify
7272
```
7373
The browserified version will be written to `ldf-client-browser.js`.
7474

75-
The API is the same as that of the Node version, except that `ldf = require('ldf-client')` should be replaced by using `window.ldf`.
76-
An example is available in [a separate project](https://github.com/LinkedDataFragments/jQuery-Widget.js).
75+
The API is the same as that of the Node version, except that `ldf = require('ldf-client')` is no longer necessary, since `ldf` is exposed as `window.ldf`.
7776

7877
### From source
7978
To install from the latest GitHub sources, execute:

browser.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"docs": "jsdoc -c jsdoc.json README.md lib",
2222
"test": "mocha",
2323
"lint": "eslint bin/* lib test",
24-
"browserify": "browserify browser.js -u stream -o ldf-client-browser.js"
24+
"browserify": "browserify . -s ldf -u stream -o ldf-client-browser.js"
2525
},
2626
"dependencies": {
2727
"asynciterator": "^1.1.0",

0 commit comments

Comments
 (0)