File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff 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
123131The 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
133147MIT
Original file line number Diff line number Diff line change 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" : {
6769 "ldnode" : " ./bin/ldnode.js"
You can’t perform that action at this time.
0 commit comments