Michael Rawlings
0f5e639775
Format + lint ( #1016 )
...
* add prettierignore
* switch to eslint:recommended + eslint-config-prettier
* fix eslint violations
* remove more .jshintrc files
* better conditional structure
* add prettier and update prettier ignore
* add precommit hook to run prettier
* add lint check to precommit and format check to ci
* format all the things
* add generated files
* let npm do it's thing with package.json
2018-03-09 10:02:11 -08:00
Patrick Steele-Idem
9d14008d65
Additional fixes required for PR #834 (Fallback to regular require if module.parent.require is unavailable)
2017-09-19 13:38:00 -06:00
Simen Bekkhus
686037f1cf
Fallback to regular require if module.parent.require is unavailable
...
Some environments (like jest) don't implement it
2017-09-08 13:38:54 +02:00
Charlie Duong
e5e2e3cb03
Use parent module to require express patch ( #701 )
...
This fixes the issue with res.marko not getting properly patched
due to recent changes.
2017-05-24 20:16:45 -07:00
Patrick Steele-Idem
ecaa014004
node <v6 fixes
2017-05-19 19:33:40 -06:00
Patrick Steele-Idem
a602f3cd46
Introduced src/ and dist/ folders
2017-05-19 14:35:33 -06:00
Michael Rawlings
64679b419a
allow marko/express to be used as middleware
2017-03-08 16:58:48 -08:00
Patrick Steele-Idem
5baf472b81
Fixes #518 - [v4] Make sure Marko hot reloading is always enabled when app is launched with browser-refresh
2017-01-06 16:30:37 -07:00
Michael Rawlings
67521efbab
Ensure that we can add res.marko to multiple express instances, but it will not be applied multiple times to the same express instance.
2016-05-06 11:06:12 -07:00
Michael Rawlings
87c98f3f3a
Rather than having the user pass and express instance, we'll require it from the parent module's context.
2016-05-06 10:41:25 -07:00
Michael Rawlings
038c71dc1a
Fixes #286 - Automatically pass res.locals to template.render()
2016-05-05 15:19:58 -07:00