@jseeio/jsee 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/jsee +3 -5
- package/dist/jsee.js +1 -1
- package/dist/jsee.runtime.js +1 -1
- package/package.json +1 -1
package/bin/jsee
CHANGED
|
@@ -38,8 +38,6 @@ if (argv._.length > 0) {
|
|
|
38
38
|
argv.inputs = argv._[0]
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
console.log(argv)
|
|
42
|
-
|
|
43
41
|
gen(argv)
|
|
44
42
|
|
|
45
43
|
// Adding async here breaks express. TODO: investigate
|
|
@@ -174,16 +172,16 @@ async function gen (argv, returnHtml=false) {
|
|
|
174
172
|
const express = require('express')
|
|
175
173
|
const app = express()
|
|
176
174
|
app.get('/', async (req, res) => {
|
|
177
|
-
console.log('Serving
|
|
175
|
+
console.log('Serving index.html')
|
|
178
176
|
res.send(await gen(argv, true))
|
|
179
177
|
})
|
|
180
178
|
app.get('/dist/jsee.runtime.js', (req, res) => {
|
|
181
|
-
console.log('Serving jsee.runtime.js
|
|
179
|
+
console.log('Serving jsee.runtime.js')
|
|
182
180
|
res.sendFile(path.join(__dirname, '..', 'dist', 'jsee.runtime.js'))
|
|
183
181
|
})
|
|
184
182
|
app.use(express.static(cwd))
|
|
185
183
|
app.listen(argv.port, () => {
|
|
186
|
-
console.log(`JSEE app is running
|
|
184
|
+
console.log(`JSEE app is running: http://localhost:${argv.port}`)
|
|
187
185
|
})
|
|
188
186
|
}
|
|
189
187
|
}
|