Skip to content

Commit 904cfd9

Browse files
author
nicola
committed
Removing Makefile and add augmented package.json
1 parent d954384 commit 904cfd9

3 files changed

Lines changed: 19 additions & 34 deletions

File tree

‎Makefile‎

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

‎README.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ or simply
118118
$ ldnode -v
119119
```
120120

121+
### Package scripts
122+
123+
There are some scripts in the [package.json](https://github.com/linkeddata/ldnode/blob/master/package.json):
124+
125+
- `npm start`: starts a very basic ldnode with default configs
126+
- `npm run ldp-webid`: run ldnode with SSL and WebID+TLS enabled (remember it runs in HTTPS)
127+
- `npm run ldp-ssl`: same as the above without WebID+TLS support
128+
121129
## Tests
122130

123131
The tests assume that there is a running ldnode.
@@ -128,6 +136,12 @@ $ npm test
128136
$ DEBUG="ldnode:*" npm test
129137
```
130138

139+
In order to test a single component, you can run
140+
141+
```javascript
142+
npm run test-(acl|formats|params|patch)
143+
```
144+
131145
## License
132146

133147
MIT

‎package.json‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,17 @@
5555
},
5656
"main": "index.js",
5757
"scripts": {
58-
"start": "node bin/ldnode.js",
58+
"start": "node ./bin/ldnode.js",
5959
"test": "./node_modules/mocha/bin/mocha ./test/*.js",
6060
"test-debug": "DEBUG='ldnode:*' ./node_modules/mocha/bin/mocha ./test/*.js",
6161
"test-acl": "./node_modules/mocha/bin/mocha ./test/acl.js",
6262
"test-params": "./node_modules/mocha/bin/mocha ./test/params.js",
6363
"test-http": "./node_modules/mocha/bin/mocha ./test/http.js",
64-
"test-formats": "./node_modules/mocha/bin/mocha ./test/http.js"
64+
"test-formats": "./node_modules/mocha/bin/mocha ./test/http.js",
65+
"ldp-webid": "node ./bin/ldnode.js --webid --cert ./test/keys/cert.pem --key ./test/keys/key.pem -v",
66+
"ldp-ssl": "node ./bin/ldnode.js --cert ./test/keys/cert.pem --key ./test/keys/key.pem -v"
6567
},
6668
"bin": {
67-
"ldnode": "./bin/ldnode.js"
69+
"ldnode": "node ./bin/ldnode.js"
6870
}
6971
}

0 commit comments

Comments
 (0)