Durandal.js .NET VS2012 How to use Weyland in build process -


i'm using vsix durandal template (version 2.0). previous version (1.2) had optimizer.exe run part of build process. think weyland has replaced i'm not sure how can running build step in release mode.

here's how it:

if $(configurationname) == release (   cd "$(projectdir)"   attrib -r app\main-built.js   weyland build ) 

i clear read-only flag in case main-built.js put in source control, may not need line.

note: if build fails (or don't have node , weyland installed), refer following page more info: https://github.com/bluespire/durandal/issues/254

update:

to setup npm use authenticated proxy, try these commands in elevated command prompt (last 2 may not necessary, useful other tools):

npm config set proxy http://username:password@proxy:8080  npm config set https-proxy http://username:password@proxy:8080 setx http_proxy http://username:password@proxy:8080 /m setx https_proxy http://username:password@proxy:8080 /m 

then restart visual studio (or reboot). think might need use https in urls. if username or password contains @, surround quotes this: http://"username:p@assword"@proxy:8080


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -