Put s2s.config.js into your project's root. s2s requires you to set watch and plugins, templates.
s2s.config.js
watch
plugins
templates
module.exports = { watch: './**/*.js', // string plugins: [], templates: [], }
You can use Glob in this section to set targets.
Set the array of the objects. You have to set test and plugin.
test
plugin
.babelrc
type EventType = 'add' | 'change' | 'unlink' type Only = EventType[] type PluginOpts = PluginName | [PluginName, Object] type Plugin = {| test: RegExp, plugin: PluginOpts, only?: Only, input?: FileName, output?: FileName, |}
Copy a template from files. the template requires you to set test and input.
input
template
type Template = {| test: RegExp, input: Path, output?: Path, |}
There was an error while loading. Please reload this page.