Skip to content

Commit 57cb901

Browse files
committed
Export and start of Connect to Peer
1 parent e3a158f commit 57cb901

30 files changed

+34734
-1789
lines changed

build/compile-vue-templates.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const fs = require("fs")
2+
const browserify = require('browserify')
3+
const vueify = require('vueify')
4+
const path = require('path')
5+
const viewPath = './src/electron/views'
6+
fs.readdir(viewPath, (err, content) => {
7+
if (err) {
8+
throw err
9+
}
10+
for (let dir of content) {
11+
browserify(path.join(viewPath, dir,'main.js'))
12+
.transform(vueify)
13+
.bundle()
14+
.pipe(fs.createWriteStream(path.join(viewPath, dir,'index.js')))
15+
}
16+
})

0 commit comments

Comments
 (0)