feat: add sncrypto client side packages

This commit is contained in:
Karol Sójko
2022-07-06 12:21:21 +02:00
parent 9d1f7043e5
commit 6ec66795d2
71 changed files with 9786 additions and 34 deletions

View File

@@ -0,0 +1,17 @@
/* Used for running mocha tests */
const connect = require('connect')
const serveStatic = require('serve-static')
const port = 9003
connect()
.use(serveStatic(__dirname))
.listen(port, () => {
const url = `http://localhost:${port}/test/test.html`
console.log(`Open browser to ${url}`)
const start =
process.platform === 'darwin'
? 'open'
: process.platform === 'win32'
? 'start'
: 'xdg-open'
require('child_process').exec(start + ' ' + url)
})