{
	"name": "FireIde.API.Npm.Install",
	"Web.Endpoint": "GET /npm/install",
	"json": {
			"@scopeSet(nodeModulesDirExists)": {
				"@FireIde.Core.Fs.PathExists": "node_modules"
			},
			"@FireIde.Logging.Warn": {
				"@get(nodeModulesDirExists)": null
			},
			"@if(nodeModulesDirExists)": {
				"@scopeSet(exec)": {
					"@FireIde.Core.ChildProcess.Exec(rm)": {
						"args": {
							"@concat": ["-rf ", "node_modules"]
						}
					}
				},
				"@FireIde.Logging.Warn": {
					"@get(exec)": null
				}
			},
			"@FireIde.Core.ChildProcess.Exec(npm)": {
				"args":  {
					"@concat": ["install"]
				}
			}
	}
}