NodeJS Feature
NodeJS / Yarn support.
This feature is experimental and as though it may work for you, that’s not a guarantee. Please use with care.
Usage
To use the NodeJS Feature, make sure your Projectfile contains the following:
from medikit import require
nodejs = require('nodejs')
The nodejs handle is a NodeJSConfig
instance, and can be used to customize the feature.
Configuration
-
class
medikit.feature.nodejs.
NodeJSConfig
[source]
Configuration API for the «nodejs» feature.
-
add_dependencies
(deps=None, **kwargs)[source]
-
get_dependencies
()[source]
-
setup
(*, base_dir=None)[source]
Implementation
-
class
medikit.feature.nodejs.
NodeJSFeature
(dispatcher)[source]
-
Config
alias of NodeJSConfig
-
on_end
(event)[source]
Listens to medikit.on_end
event (priority: 100)
-
on_make_generate
(event)[source]
Listens to medikit.feature.make.on_generate
event (priority: 0)
-
on_start
(event)[source]
Listens to medikit.on_start
event (priority: 0)
-
requires
= {'make', 'python'}