amble

2019-05-16 admin

amble是什么

什么是amble,a nice watcher for software development

amble使用教程帮助文档

amble

a clean way to ‘hot-reload’ a node.js script in the console.

npm i amble

then in your project

amble ./toRun.js

this will run file and watch all relevant files recursively.

i like to create a ./scratch.js file, with my current stuff in it, so i run put this in my package.json:

{
	"scripts":{
		"watch":"amble ./scratch.js"
	}
}

javascript access

var amble=require('amble')
amble({exec:'./scratch', watch:'./'})

if you want to pass arguments into node, put them after your filename:

amble scratch.mjs --experimental-modules

huge thanks to Kyle Robinson Young’s gaze library

MIT

你可能感兴趣的文章:

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-65049.html

文章标题:amble

回到顶部