generated from nhsuk/nhsuk-prototype-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
executable file
·35 lines (29 loc) · 712 Bytes
/
app.js
File metadata and controls
executable file
·35 lines (29 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const NHSPrototypeKit = require('nhsuk-prototype-kit')
// Local dependencies
const config = require('./app/config')
const sessionDataDefaults = require('./app/data/session-data-defaults')
const filters = require('./app/filters')
const locals = require('./app/locals')
const routes = require('./app/routes')
const viewsPath = [
'app/views/'
]
const entryPoints = [
'app/assets/sass/main.scss',
'app/assets/javascript/*.js'
]
async function init() {
const prototype = await NHSPrototypeKit.init({
serviceName: config.serviceName,
buildOptions: {
entryPoints
},
viewsPath,
routes,
locals,
filters,
sessionDataDefaults
})
prototype.start(config.port)
}
init()