I am trying to use NPM as my ASP.NET 5 (Vnext) build tool as well as use to build my js/cs files but i do not want to duplicate configuration values in my npm and asp.net 5 config files.
in my project i have the following files
package.json
"scripts": {
"build:js": "browserify assets/scripts/main.js > $npm_package_config_aspnet5_webroot/main.js"
}
project.json
{
"version": "1.0.0-*",
"webroot": "wwwroot",
}
And I want to be able to extract the webroot value from the ASP.NET 5 json file and use it in npm scripts commands like the following