diff --git a/Nodejs/Product/Nodejs/Nodejs.csproj b/Nodejs/Product/Nodejs/Nodejs.csproj index de5d96be1..a71dcf82c 100644 --- a/Nodejs/Product/Nodejs/Nodejs.csproj +++ b/Nodejs/Product/Nodejs/Nodejs.csproj @@ -344,13 +344,13 @@ - - - Form + + + Form - + NewFileNameForm.cs - + @@ -700,7 +700,7 @@ NodejsGeneralOptionsControl.cs - + SalsaLsIntellisenseOptionsControl.cs @@ -900,22 +900,7 @@ Designer - - Designer - - - Designer - - - Designer - - - Designer - - - - @@ -952,16 +937,7 @@ Designer - - - - - - - - - @@ -1050,7 +1026,6 @@ Designer - @@ -1184,28 +1159,6 @@ Designer - - Designer - - - Designer - - - - - - - - - - - - Designer - - - Designer - - true Microsoft.NodejsTools.Developer.targets @@ -1230,36 +1183,16 @@ - - Designer - - - - - - - - - - - - - - - - - - Designer diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/AddWebSiteAzureExpressApp.njsproj b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/AddWebSiteAzureExpressApp.njsproj deleted file mode 100644 index a0322b152..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/AddWebSiteAzureExpressApp.njsproj +++ /dev/null @@ -1,102 +0,0 @@ - - - 14.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - - - Debug - 2.0 - $guid1$ - . - app.js - - . - . - v4.0 - {3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{349c5851-65df-11da-9384-00065b846f21};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD} - ShowAllFiles - 1337 - true - - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - False - True - 0 - / - http://localhost:48022/ - False - True - http://localhost:1337 - False - - - - - - - CurrentPage - True - False - False - False - - - - - - - - - False - False - - - - - \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/AddWebSiteAzureExpressApp.vstemplate.base b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/AddWebSiteAzureExpressApp.vstemplate.base deleted file mode 100644 index 077da3101..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/AddWebSiteAzureExpressApp.vstemplate.base +++ /dev/null @@ -1,58 +0,0 @@ - - - Basic Azure Node.js Express 3 Application - A basic Node.js Express 3 application for Microsoft Azure. - - Web - JavaScript - Microsoft.JavaScript.AddWebSiteAzureExpressApp - 145 - true - ExpressApp - true - 1 - true - Preview.png - - - - - - - - style.styl - - - - index.js - user.js - - - index.jade - layout.jade - - app.js - package.json - typings.json - README.md - Web.config - Web.Debug.config - ChangeConfig.ps1 - download.ps1 - setup_web.cmd - node.cmd - - - - Microsoft.VisualStudio.Web, Version=_VSVERSION_.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Microsoft.VisualStudio.Web.Wizard.EmptyWebTemplateWizard - - - Microsoft.NodejsTools.ProjectWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Microsoft.NodejsTools.ProjectWizard.NpmWizardExtension - - - Microsoft.NodejsTools.ProjectWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Microsoft.NodejsTools.ProjectWizard.NodejsPackageParametersExtension - - diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/ChangeConfig.ps1 b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/ChangeConfig.ps1 deleted file mode 100644 index 044634574..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/ChangeConfig.ps1 +++ /dev/null @@ -1,15 +0,0 @@ -$configFile = $args[0] - -Write-Host "Adding iisnode section to config file '$configFile'" -$config = New-Object System.Xml.XmlDocument -$config.load($configFile) -$xpath = $config.CreateNavigator() -$parentElement = $xpath.SelectSingleNode("//configuration/configSections/sectionGroup[@name='system.webServer']") -$iisnodeElement = $parentElement.SelectSingleNode("//section[@name='iisnode']") -if ($iisnodeElement) { - Write-Host "Removing existing iisnode section from config file '$configFile'" - $iisnodeElement.DeleteSelf() -} - -$parentElement.AppendChild("
") -$config.Save($configFile) diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/Preview.png b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/Preview.png deleted file mode 100644 index 9d4e8584b..000000000 Binary files a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/Preview.png and /dev/null differ diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/README.md b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/README.md deleted file mode 100644 index 5b794fdc0..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# $projectname$ - - diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/Web.Debug.config b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/Web.Debug.config deleted file mode 100644 index 1b292c232..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/Web.Debug.config +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/Web.config b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/Web.config deleted file mode 100644 index f21f2b423..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/Web.config +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/app.js b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/app.js deleted file mode 100644 index 6ca6b222a..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/app.js +++ /dev/null @@ -1,37 +0,0 @@ - -/** - * Module dependencies. - */ - -var express = require('express'); -var routes = require('./routes'); -var user = require('./routes/user'); -var http = require('http'); -var path = require('path'); - -var app = express(); - -// all environments -app.set('port', process.env.PORT || 3000); -app.set('views', path.join(__dirname, 'views')); -app.set('view engine', 'jade'); -app.use(express.favicon()); -app.use(express.logger('dev')); -app.use(express.json()); -app.use(express.urlencoded()); -app.use(express.methodOverride()); -app.use(app.router); -app.use(require('stylus').middleware(path.join(__dirname, 'public'))); -app.use(express.static(path.join(__dirname, 'public'))); - -// development only -if ('development' == app.get('env')) { - app.use(express.errorHandler()); -} - -app.get('/', routes.index); -app.get('/users', user.list); - -http.createServer(app).listen(app.get('port'), function () { - console.log('Express server listening on port ' + app.get('port')); -}); diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/download.ps1 b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/download.ps1 deleted file mode 100644 index 9e46b09ad..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/download.ps1 +++ /dev/null @@ -1,87 +0,0 @@ -$runtimeUrl = $args[0] -$overrideUrl = $args[1] -$current = [string] (Get-Location -PSProvider FileSystem) -$client = New-Object System.Net.WebClient - -function downloadWithRetry { - param([string]$url, [string]$dest, [int]$retry) - Write-Host - Write-Host "Attempt: $retry" - Write-Host - trap { - Write-Host $_.Exception.ToString() - if ($retry -lt 5) { - $retry=$retry+1 - Write-Host - Write-Host "Waiting 5 seconds and retrying" - Write-Host - Start-Sleep -s 5 - downloadWithRetry $url $dest $retry $client - } - else { - Write-Host "Download failed" - throw "Max number of retries downloading [5] exceeded" - } - } - $client.downloadfile($url, $dest) -} - -function download($url, $dest) { - Write-Host "Downloading $url" - downloadWithRetry $url $dest 1 -} - -function copyOnVerify($file, $output) { - Write-Host "Verifying $file" - $verify = Get-AuthenticodeSignature $file - Out-Host -InputObject $verify - if ($verify.Status -ne "Valid") { - throw "Invalid signature for runtime package $file" - } - else { - mv $file $output - } -} - -if ($overrideUrl) { - Write-Host "Using override url: $overrideUrl" - $url = $overrideUrl -} -else { - $url = $runtimeUrl -} - -foreach($singleUrl in $url -split ";") -{ - $suffix = Get-Random - $downloaddir = $current + "\sandbox" + $suffix - mkdir $downloaddir - $dest = $downloaddir + "\sandbox.exe" - download $singleUrl $dest - $final = $downloaddir + "\runtime.exe" - copyOnVerify $dest $final - if (Test-Path -LiteralPath $final) - { - cd $downloaddir - if ($host.Version.Major -eq 3) - { - .\runtime.exe -y | Out-Null - .\setup.cmd - } - else - { - Start-Process -FilePath $final -ArgumentList -y -Wait - $cmd = $downloaddir + "\setup.cmd" - Start-Process -FilePath $cmd -Wait - } - } - else - { - throw "Unable to verify package" - } - cd $current - if (Test-Path -LiteralPath $downloaddir) - { - Remove-Item -LiteralPath $downloaddir -Force -Recurse - } -} diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/iisnode.yml b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/iisnode.yml deleted file mode 100644 index 85cc78139..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/iisnode.yml +++ /dev/null @@ -1,144 +0,0 @@ -# The optional iisnode.yml file provides overrides of the iisnode configuration settings specified in web.config. - -# node_env - determines the environment (production, development, staging, ...) in which -# child node processes run; if nonempty, is propagated to the child node processes as their NODE_ENV -# environment variable; the default is the value of the IIS worker process'es NODE_ENV -# environment variable - -node_env: - -# nodeProcessCommandLine - command line starting the node executable; in shared -# hosting environments this setting would typically be locked at the machine scope. - -# nodeProcessCommandLine: "C:\Program Files\nodejs\node.exe" - -# interceptor - fully qualified file name of a Node.js application that will run instead of an actual application -# the request targets; the fully qualified file name of the actual application file is provided as the first parameter -# to the interceptor application; default interceptor supports iisnode logging - -# interceptor: "c:\Program Files\iisnode\interceptor.js" - -# nodeProcessCountPerApplication - number of node.exe processes that IIS will start per application; -# setting this value to 0 results in creating one node.exe process per each processor on the machine - -nodeProcessCountPerApplication: 1 - -# maxConcurrentRequestsPerProcess - maximum number of reqeusts one node process can -# handle at a time - -maxConcurrentRequestsPerProcess: 1024 - -# maxNamedPipeConnectionRetry - number of times IIS will retry to establish a named pipe connection with a -# node process in order to send a new HTTP request - -maxNamedPipeConnectionRetry: 100 - -# namedPipeConnectionRetryDelay - delay in milliseconds between connection retries - -namedPipeConnectionRetryDelay: 250 - -# maxNamedPipeConnectionPoolSize - maximum number of named pipe connections that will be kept in a connection pool; -# connection pooling helps improve the performance of applications that process a large number of short lived HTTP requests - -maxNamedPipeConnectionPoolSize: 512 - -# maxNamedPipePooledConnectionAge - age of a pooled connection in milliseconds after which the connection is not reused for -# subsequent requests - -maxNamedPipePooledConnectionAge: 30000 - -# asyncCompletionThreadCount - size of the IO thread pool maintained by the IIS module to process asynchronous IO; setting it -# to 0 (default) results in creating one thread per each processor on the machine - -asyncCompletionThreadCount: 0 - -# initialRequestBufferSize - initial size in bytes of a memory buffer allocated for a new HTTP request - -initialRequestBufferSize: 4096 - -# maxRequestBufferSize - maximum size in bytes of a memory buffer allocated per request; this is a hard limit of -# the serialized form of HTTP request or response headers block - -maxRequestBufferSize: 65536 - -# watchedFiles - semi-colon separated list of files that will be watched for changes; a change to a file causes the application to recycle; -# each entry consists of an optional directory name plus required file name which are relative to the directory where the main application entry point -# is located; wild cards are allowed in the file name portion only; for example: "*.js;node_modules\foo\lib\options.json;app_data\*.config.json" - -watchedFiles: *.js;iisnode.yml - -# uncFileChangesPollingInterval - applications are recycled when the underlying *.js file is modified; if the file resides -# on a UNC share, the only reliable way to detect such modifications is to periodically poll for them; this setting -# controls the polling interval - -uncFileChangesPollingInterval: 5000 - -# gracefulShutdownTimeout - when a Node.js file is modified, all node processes handling running this application are recycled; -# this setting controls the time (in milliseconds) given for currently active requests to gracefully finish before the -# process is terminated; during this time, all new requests are already dispatched to a new node process based on the fresh version -# of the application - -gracefulShutdownTimeout: 60000 - -# loggingEnabled - controls whether stdout and stderr streams from node processes are captured and made available over HTTP - -loggingEnabled: true - -# logDirectory - directory name relative to the main application file that will store files with stdout and stderr captures; -# individual log file names have unique file names; log files are created lazily (i.e. when the process actually writes something -# to stdout or stderr); an HTML index of all log files is also maintained as index.html in that directory; -# by default, if your application is at http://foo.com/bar.js, logs will be accessible at http://foo.com/iisnode; -# SECURITY NOTE: if log files contain sensitive information, this setting should be modified to contain enough entropy to be considered -# cryptographically secure; in most situations, a GUID is sufficient - -logDirectory: iisnode - -# debuggingEnabled - controls whether the built-in debugger is available - -debuggingEnabled: true - -# debuggerPortRange - range of TCP ports that can be used for communication between the node-inspector debugger and the debugee; iisnode -# will round robin through this port range for subsequent debugging sessions and pick the next available (free) port to use from the range - -debuggerPortRange: 5058-6058 - -# debuggerPathSegment - URL path segment used to access the built-in node-inspector debugger; given a Node.js application at -http://foo.com/bar/baz.js, the debugger can be accessed at http://foo.com/bar/baz.js/{debuggerPathSegment}, by default -http://foo.com/bar/baz.js/debug - -debuggerPathSegment: debug - -# debugHeaderEnabled - boolean indicating whether iisnode should attach the iisnode-debug HTTP response header with -# diagnostics information to all responses - -debugHeaderEnabled: false - -# maxLogFileSizeInKB - maximum size of a single log file in KB; once a log file exceeds this limit a new log file is created - -maxLogFileSizeInKB: 128 - -# maxTotalLogFileSizeInKB - maximum total size of all log files in the logDirectory; once exceeded, old log files are removed - -maxTotalLogFileSizeInKB: 1024 - -# maxLogFiles - maximum number of log files in the logDirectory; once exceeded, old log files are removed - -maxLogFiles: 20 - -devErrorsEnabled: true - -# flushResponse - controls whether each HTTP response body chunk is immediately flushed by iisnode; flushing each body chunk incurs -# CPU cost but may improve latency in streaming scenarios - -flushResponse: false - -# enableXFF - controls whether iisnode adds or modifies the X-Forwarded-For request HTTP header with the IP address of the remote host - -enableXFF: false - -# promoteServerVars - comma delimited list of IIS server variables that will be propagated to the node.exe process in the form of -# x-iisnode- -# HTTP request headers; for a list of IIS server variables available see -# http://msdn.microsoft.com/en-us/library/ms524602(v=vs.90).aspx; for example "AUTH_USER,AUTH_TYPE" - -promoteServerVars: diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/index.jade b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/index.jade deleted file mode 100644 index 9f38c795e..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/index.jade +++ /dev/null @@ -1,5 +0,0 @@ -extends layout - -block content - h1= title - p Welcome to #{title} diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/index.js b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/index.js deleted file mode 100644 index 5035513df..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/index.js +++ /dev/null @@ -1,8 +0,0 @@ - -/* - * GET home page. - */ - -exports.index = function (req, res) { - res.render('index', { title: 'Express' }); -}; \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/layout.jade b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/layout.jade deleted file mode 100644 index caf3aaeb5..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/layout.jade +++ /dev/null @@ -1,7 +0,0 @@ -doctype html -html - head - title= title - link(rel='stylesheet', href='/stylesheets/style.css') - body - block content \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/node.cmd b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/node.cmd deleted file mode 100644 index c69a72af9..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/node.cmd +++ /dev/null @@ -1 +0,0 @@ -node.exe %1 %2 %3 \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/package.json b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/package.json deleted file mode 100644 index da7f16366..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "$npmsafeprojectname$", - "version": "0.0.0", - "description": "$projectname$", - "main": "app.js", - "author": { - "name": "$username$" - }, - "dependencies": { - "express": "3.4.4", - "jade": "*", - "stylus": "*" - } -} \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/setup_web.cmd b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/setup_web.cmd deleted file mode 100644 index f02e6d5c4..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/setup_web.cmd +++ /dev/null @@ -1,57 +0,0 @@ -@echo on - -cd /d "%~dp0" - -if "%EMULATED%"=="true" if DEFINED APPCMD goto emulator_setup -if "%EMULATED%"== "true" exit /b 0 - -echo Granting permissions for Network Service to the web root directory... -icacls ..\ /grant "Network Service":(OI)(CI)W -if %ERRORLEVEL% neq 0 goto error -echo OK - -echo Configuring powershell permissions -powershell -c "set-executionpolicy unrestricted" - -echo Downloading and installing runtime components -powershell .\download.ps1 '%RUNTIMEURL%' '%RUNTIMEURLOVERRIDE%' -if %ERRORLEVEL% neq 0 goto error - -echo SUCCESS -exit /b 0 - -:error -echo FAILED -exit /b -1 - -:emulator_setup -echo Running in emulator adding iisnode to application host config -FOR /F "tokens=1,2 delims=/" %%a in ("%APPCMD%") DO set FN=%%a&set OPN=%%b -if "%OPN%"=="%OPN:apphostconfig:=%" ( - echo "Could not parse appcmd '%appcmd% for configuration file, exiting" - goto error -) - -set IISNODE_BINARY_DIRECTORY=%programfiles(x86)%\iisnode-dev\release\x64 -set IISNODE_SCHEMA=%programfiles(x86)%\iisnode-dev\release\x64\iisnode_schema.xml - -if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto start -set IISNODE_BINARY_DIRECTORY=%programfiles%\iisnode-dev\release\x86 -set IISNODE_SCHEMA=%programfiles%\iisnode-dev\release\x86\iisnode_schema_x86.xml - - -:start -set - -echo Using iisnode binaries location '%IISNODE_BINARY_DIRECTORY%' -echo installing iisnode module using AppCMD alias %appcmd% -%appcmd% install module /name:"iisnode" /image:"%IISNODE_BINARY_DIRECTORY%\iisnode.dll" - -set apphostconfigfile=%OPN:apphostconfig:=% -powershell -c "set-executionpolicy unrestricted" -powershell .\ChangeConfig.ps1 %apphostconfigfile% -if %ERRORLEVEL% neq 0 goto error - -copy /y "%IISNODE_SCHEMA%" "%programfiles%\IIS Express\config\schema\iisnode_schema.xml" -if %ERRORLEVEL% neq 0 goto error -exit /b 0 diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/style.styl b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/style.styl deleted file mode 100644 index 1377e2f08..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/style.styl +++ /dev/null @@ -1,5 +0,0 @@ -body - padding: 50px - font: 14px "Lucida Grande", Helvetica, Arial, sans-serif -a - color: #00B7FF \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/typings.json b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/typings.json deleted file mode 100644 index f37ea1f5e..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/typings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "globalDependencies": { - "express": "registry:dt/express#3.1.0+20140618213111", - "jade": "registry:dt/jade#0.0.0+20160316155526" - } -} diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/user.js b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/user.js deleted file mode 100644 index c2cd018c2..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureExpressApp/user.js +++ /dev/null @@ -1,8 +0,0 @@ - -/* - * GET users listing. - */ - -exports.list = function (req, res) { - res.send("respond with a resource"); -}; \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/AddWebSiteAzureNodejsApp.njsproj b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/AddWebSiteAzureNodejsApp.njsproj deleted file mode 100644 index e49b479ef..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/AddWebSiteAzureNodejsApp.njsproj +++ /dev/null @@ -1,86 +0,0 @@ - - - 14.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - - - Debug - 2.0 - $guid1$ - . - server.js - - . - . - v4.0 - {3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{349c5851-65df-11da-9384-00065b846f21};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD} - ShowAllFiles - 1337 - true - - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - False - True - 0 - / - http://localhost:48022/ - False - True - http://localhost:1337 - False - - - - - - - CurrentPage - True - False - False - False - - - - - - - - - False - False - - - - - \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/AddWebSiteAzureNodejsApp.vstemplate.base b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/AddWebSiteAzureNodejsApp.vstemplate.base deleted file mode 100644 index 7504f9233..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/AddWebSiteAzureNodejsApp.vstemplate.base +++ /dev/null @@ -1,38 +0,0 @@ - - - Blank Azure Node.js Web Application - An empty Node.js application for Microsoft Azure. - - Web - JavaScript - Microsoft.Web.JavaScript.AddWebSiteAzureNodejsApp - 140 - true - NodejsWebApp - true - 1 - true - Preview.png - - - - server.js - Web.config - Web.Debug.config - ChangeConfig.ps1 - download.ps1 - setup_web.cmd - package.json - README.md - node.cmd - - - - Microsoft.VisualStudio.Web, Version=_VSVERSION_.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Microsoft.VisualStudio.Web.Wizard.EmptyWebTemplateWizard - - - Microsoft.NodejsTools.ProjectWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Microsoft.NodejsTools.ProjectWizard.NodejsPackageParametersExtension - - diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/ChangeConfig.ps1 b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/ChangeConfig.ps1 deleted file mode 100644 index 044634574..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/ChangeConfig.ps1 +++ /dev/null @@ -1,15 +0,0 @@ -$configFile = $args[0] - -Write-Host "Adding iisnode section to config file '$configFile'" -$config = New-Object System.Xml.XmlDocument -$config.load($configFile) -$xpath = $config.CreateNavigator() -$parentElement = $xpath.SelectSingleNode("//configuration/configSections/sectionGroup[@name='system.webServer']") -$iisnodeElement = $parentElement.SelectSingleNode("//section[@name='iisnode']") -if ($iisnodeElement) { - Write-Host "Removing existing iisnode section from config file '$configFile'" - $iisnodeElement.DeleteSelf() -} - -$parentElement.AppendChild("
") -$config.Save($configFile) diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/Preview.png b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/Preview.png deleted file mode 100644 index 02c95caf6..000000000 Binary files a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/Preview.png and /dev/null differ diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/README.md b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/README.md deleted file mode 100644 index 5b794fdc0..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# $projectname$ - - diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/Web.Debug.config b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/Web.Debug.config deleted file mode 100644 index 1b292c232..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/Web.Debug.config +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/Web.config b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/Web.config deleted file mode 100644 index 6218a52e8..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/Web.config +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/download.ps1 b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/download.ps1 deleted file mode 100644 index 9e46b09ad..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/download.ps1 +++ /dev/null @@ -1,87 +0,0 @@ -$runtimeUrl = $args[0] -$overrideUrl = $args[1] -$current = [string] (Get-Location -PSProvider FileSystem) -$client = New-Object System.Net.WebClient - -function downloadWithRetry { - param([string]$url, [string]$dest, [int]$retry) - Write-Host - Write-Host "Attempt: $retry" - Write-Host - trap { - Write-Host $_.Exception.ToString() - if ($retry -lt 5) { - $retry=$retry+1 - Write-Host - Write-Host "Waiting 5 seconds and retrying" - Write-Host - Start-Sleep -s 5 - downloadWithRetry $url $dest $retry $client - } - else { - Write-Host "Download failed" - throw "Max number of retries downloading [5] exceeded" - } - } - $client.downloadfile($url, $dest) -} - -function download($url, $dest) { - Write-Host "Downloading $url" - downloadWithRetry $url $dest 1 -} - -function copyOnVerify($file, $output) { - Write-Host "Verifying $file" - $verify = Get-AuthenticodeSignature $file - Out-Host -InputObject $verify - if ($verify.Status -ne "Valid") { - throw "Invalid signature for runtime package $file" - } - else { - mv $file $output - } -} - -if ($overrideUrl) { - Write-Host "Using override url: $overrideUrl" - $url = $overrideUrl -} -else { - $url = $runtimeUrl -} - -foreach($singleUrl in $url -split ";") -{ - $suffix = Get-Random - $downloaddir = $current + "\sandbox" + $suffix - mkdir $downloaddir - $dest = $downloaddir + "\sandbox.exe" - download $singleUrl $dest - $final = $downloaddir + "\runtime.exe" - copyOnVerify $dest $final - if (Test-Path -LiteralPath $final) - { - cd $downloaddir - if ($host.Version.Major -eq 3) - { - .\runtime.exe -y | Out-Null - .\setup.cmd - } - else - { - Start-Process -FilePath $final -ArgumentList -y -Wait - $cmd = $downloaddir + "\setup.cmd" - Start-Process -FilePath $cmd -Wait - } - } - else - { - throw "Unable to verify package" - } - cd $current - if (Test-Path -LiteralPath $downloaddir) - { - Remove-Item -LiteralPath $downloaddir -Force -Recurse - } -} diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/iisnode.yml b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/iisnode.yml deleted file mode 100644 index 85cc78139..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/iisnode.yml +++ /dev/null @@ -1,144 +0,0 @@ -# The optional iisnode.yml file provides overrides of the iisnode configuration settings specified in web.config. - -# node_env - determines the environment (production, development, staging, ...) in which -# child node processes run; if nonempty, is propagated to the child node processes as their NODE_ENV -# environment variable; the default is the value of the IIS worker process'es NODE_ENV -# environment variable - -node_env: - -# nodeProcessCommandLine - command line starting the node executable; in shared -# hosting environments this setting would typically be locked at the machine scope. - -# nodeProcessCommandLine: "C:\Program Files\nodejs\node.exe" - -# interceptor - fully qualified file name of a Node.js application that will run instead of an actual application -# the request targets; the fully qualified file name of the actual application file is provided as the first parameter -# to the interceptor application; default interceptor supports iisnode logging - -# interceptor: "c:\Program Files\iisnode\interceptor.js" - -# nodeProcessCountPerApplication - number of node.exe processes that IIS will start per application; -# setting this value to 0 results in creating one node.exe process per each processor on the machine - -nodeProcessCountPerApplication: 1 - -# maxConcurrentRequestsPerProcess - maximum number of reqeusts one node process can -# handle at a time - -maxConcurrentRequestsPerProcess: 1024 - -# maxNamedPipeConnectionRetry - number of times IIS will retry to establish a named pipe connection with a -# node process in order to send a new HTTP request - -maxNamedPipeConnectionRetry: 100 - -# namedPipeConnectionRetryDelay - delay in milliseconds between connection retries - -namedPipeConnectionRetryDelay: 250 - -# maxNamedPipeConnectionPoolSize - maximum number of named pipe connections that will be kept in a connection pool; -# connection pooling helps improve the performance of applications that process a large number of short lived HTTP requests - -maxNamedPipeConnectionPoolSize: 512 - -# maxNamedPipePooledConnectionAge - age of a pooled connection in milliseconds after which the connection is not reused for -# subsequent requests - -maxNamedPipePooledConnectionAge: 30000 - -# asyncCompletionThreadCount - size of the IO thread pool maintained by the IIS module to process asynchronous IO; setting it -# to 0 (default) results in creating one thread per each processor on the machine - -asyncCompletionThreadCount: 0 - -# initialRequestBufferSize - initial size in bytes of a memory buffer allocated for a new HTTP request - -initialRequestBufferSize: 4096 - -# maxRequestBufferSize - maximum size in bytes of a memory buffer allocated per request; this is a hard limit of -# the serialized form of HTTP request or response headers block - -maxRequestBufferSize: 65536 - -# watchedFiles - semi-colon separated list of files that will be watched for changes; a change to a file causes the application to recycle; -# each entry consists of an optional directory name plus required file name which are relative to the directory where the main application entry point -# is located; wild cards are allowed in the file name portion only; for example: "*.js;node_modules\foo\lib\options.json;app_data\*.config.json" - -watchedFiles: *.js;iisnode.yml - -# uncFileChangesPollingInterval - applications are recycled when the underlying *.js file is modified; if the file resides -# on a UNC share, the only reliable way to detect such modifications is to periodically poll for them; this setting -# controls the polling interval - -uncFileChangesPollingInterval: 5000 - -# gracefulShutdownTimeout - when a Node.js file is modified, all node processes handling running this application are recycled; -# this setting controls the time (in milliseconds) given for currently active requests to gracefully finish before the -# process is terminated; during this time, all new requests are already dispatched to a new node process based on the fresh version -# of the application - -gracefulShutdownTimeout: 60000 - -# loggingEnabled - controls whether stdout and stderr streams from node processes are captured and made available over HTTP - -loggingEnabled: true - -# logDirectory - directory name relative to the main application file that will store files with stdout and stderr captures; -# individual log file names have unique file names; log files are created lazily (i.e. when the process actually writes something -# to stdout or stderr); an HTML index of all log files is also maintained as index.html in that directory; -# by default, if your application is at http://foo.com/bar.js, logs will be accessible at http://foo.com/iisnode; -# SECURITY NOTE: if log files contain sensitive information, this setting should be modified to contain enough entropy to be considered -# cryptographically secure; in most situations, a GUID is sufficient - -logDirectory: iisnode - -# debuggingEnabled - controls whether the built-in debugger is available - -debuggingEnabled: true - -# debuggerPortRange - range of TCP ports that can be used for communication between the node-inspector debugger and the debugee; iisnode -# will round robin through this port range for subsequent debugging sessions and pick the next available (free) port to use from the range - -debuggerPortRange: 5058-6058 - -# debuggerPathSegment - URL path segment used to access the built-in node-inspector debugger; given a Node.js application at -http://foo.com/bar/baz.js, the debugger can be accessed at http://foo.com/bar/baz.js/{debuggerPathSegment}, by default -http://foo.com/bar/baz.js/debug - -debuggerPathSegment: debug - -# debugHeaderEnabled - boolean indicating whether iisnode should attach the iisnode-debug HTTP response header with -# diagnostics information to all responses - -debugHeaderEnabled: false - -# maxLogFileSizeInKB - maximum size of a single log file in KB; once a log file exceeds this limit a new log file is created - -maxLogFileSizeInKB: 128 - -# maxTotalLogFileSizeInKB - maximum total size of all log files in the logDirectory; once exceeded, old log files are removed - -maxTotalLogFileSizeInKB: 1024 - -# maxLogFiles - maximum number of log files in the logDirectory; once exceeded, old log files are removed - -maxLogFiles: 20 - -devErrorsEnabled: true - -# flushResponse - controls whether each HTTP response body chunk is immediately flushed by iisnode; flushing each body chunk incurs -# CPU cost but may improve latency in streaming scenarios - -flushResponse: false - -# enableXFF - controls whether iisnode adds or modifies the X-Forwarded-For request HTTP header with the IP address of the remote host - -enableXFF: false - -# promoteServerVars - comma delimited list of IIS server variables that will be propagated to the node.exe process in the form of -# x-iisnode- -# HTTP request headers; for a list of IIS server variables available see -# http://msdn.microsoft.com/en-us/library/ms524602(v=vs.90).aspx; for example "AUTH_USER,AUTH_TYPE" - -promoteServerVars: diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/node.cmd b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/node.cmd deleted file mode 100644 index c69a72af9..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/node.cmd +++ /dev/null @@ -1 +0,0 @@ -node.exe %1 %2 %3 \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/package.json b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/package.json deleted file mode 100644 index 09139b9b6..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "$npmsafeprojectname$", - "version": "0.0.0", - "description": "$projectname$", - "main": "server.js", - "author": { - "name": "$username$" - } -} diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/server.js b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/server.js deleted file mode 100644 index 988e26aee..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/server.js +++ /dev/null @@ -1,6 +0,0 @@ -var http = require('http'); -var port = process.env.port || 1337; -http.createServer(function (req, res) { - res.writeHead(200, { 'Content-Type': 'text/plain' }); - res.end('Hello World\n'); -}).listen(port); \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/setup_web.cmd b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/setup_web.cmd deleted file mode 100644 index f02e6d5c4..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureNodejsApp/setup_web.cmd +++ /dev/null @@ -1,57 +0,0 @@ -@echo on - -cd /d "%~dp0" - -if "%EMULATED%"=="true" if DEFINED APPCMD goto emulator_setup -if "%EMULATED%"== "true" exit /b 0 - -echo Granting permissions for Network Service to the web root directory... -icacls ..\ /grant "Network Service":(OI)(CI)W -if %ERRORLEVEL% neq 0 goto error -echo OK - -echo Configuring powershell permissions -powershell -c "set-executionpolicy unrestricted" - -echo Downloading and installing runtime components -powershell .\download.ps1 '%RUNTIMEURL%' '%RUNTIMEURLOVERRIDE%' -if %ERRORLEVEL% neq 0 goto error - -echo SUCCESS -exit /b 0 - -:error -echo FAILED -exit /b -1 - -:emulator_setup -echo Running in emulator adding iisnode to application host config -FOR /F "tokens=1,2 delims=/" %%a in ("%APPCMD%") DO set FN=%%a&set OPN=%%b -if "%OPN%"=="%OPN:apphostconfig:=%" ( - echo "Could not parse appcmd '%appcmd% for configuration file, exiting" - goto error -) - -set IISNODE_BINARY_DIRECTORY=%programfiles(x86)%\iisnode-dev\release\x64 -set IISNODE_SCHEMA=%programfiles(x86)%\iisnode-dev\release\x64\iisnode_schema.xml - -if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto start -set IISNODE_BINARY_DIRECTORY=%programfiles%\iisnode-dev\release\x86 -set IISNODE_SCHEMA=%programfiles%\iisnode-dev\release\x86\iisnode_schema_x86.xml - - -:start -set - -echo Using iisnode binaries location '%IISNODE_BINARY_DIRECTORY%' -echo installing iisnode module using AppCMD alias %appcmd% -%appcmd% install module /name:"iisnode" /image:"%IISNODE_BINARY_DIRECTORY%\iisnode.dll" - -set apphostconfigfile=%OPN:apphostconfig:=% -powershell -c "set-executionpolicy unrestricted" -powershell .\ChangeConfig.ps1 %apphostconfigfile% -if %ERRORLEVEL% neq 0 goto error - -copy /y "%IISNODE_SCHEMA%" "%programfiles%\IIS Express\config\schema\iisnode_schema.xml" -if %ERRORLEVEL% neq 0 goto error -exit /b 0 diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/AddWebSiteExpressApp.njsproj b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/AddWebSiteExpressApp.njsproj deleted file mode 100644 index cc97f296d..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/AddWebSiteExpressApp.njsproj +++ /dev/null @@ -1,92 +0,0 @@ - - - 14.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - - - Debug - 2.0 - $guid1$ - . - app.js - - . - . - v4.0 - {3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{349c5851-65df-11da-9384-00065b846f21};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD} - ShowAllFiles - 1337 - true - - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - False - True - 0 - / - http://localhost:48022/ - False - True - http://localhost:1337 - False - - - - - - - CurrentPage - True - False - False - False - - - - - - - - - False - False - - - - - \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/AddWebSiteExpressApp.vstemplate.base b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/AddWebSiteExpressApp.vstemplate.base deleted file mode 100644 index 1368a6472..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/AddWebSiteExpressApp.vstemplate.base +++ /dev/null @@ -1,52 +0,0 @@ - - - Basic Node.js Express 3 Application - A basic Node.js Express 3 application. - - Web - JavaScript - Microsoft.JavaScript.AddWebSiteExpressApp - 135 - true - ExpressApp - true - 1 - true - Preview.png - - - - - - - - style.styl - - - - index.js - user.js - - - index.jade - layout.jade - - app.js - package.json - README.md - typings.json - - - - Microsoft.VisualStudio.Web, Version=_VSVERSION_.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Microsoft.VisualStudio.Web.Wizard.EmptyWebTemplateWizard - - - Microsoft.NodejsTools.ProjectWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Microsoft.NodejsTools.ProjectWizard.NpmWizardExtension - - - Microsoft.NodejsTools.ProjectWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Microsoft.NodejsTools.ProjectWizard.NodejsPackageParametersExtension - - diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/Preview.png b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/Preview.png deleted file mode 100644 index 9d4e8584b..000000000 Binary files a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/Preview.png and /dev/null differ diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/README.md b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/README.md deleted file mode 100644 index 5b794fdc0..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# $projectname$ - - diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/app.js b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/app.js deleted file mode 100644 index 6ca6b222a..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/app.js +++ /dev/null @@ -1,37 +0,0 @@ - -/** - * Module dependencies. - */ - -var express = require('express'); -var routes = require('./routes'); -var user = require('./routes/user'); -var http = require('http'); -var path = require('path'); - -var app = express(); - -// all environments -app.set('port', process.env.PORT || 3000); -app.set('views', path.join(__dirname, 'views')); -app.set('view engine', 'jade'); -app.use(express.favicon()); -app.use(express.logger('dev')); -app.use(express.json()); -app.use(express.urlencoded()); -app.use(express.methodOverride()); -app.use(app.router); -app.use(require('stylus').middleware(path.join(__dirname, 'public'))); -app.use(express.static(path.join(__dirname, 'public'))); - -// development only -if ('development' == app.get('env')) { - app.use(express.errorHandler()); -} - -app.get('/', routes.index); -app.get('/users', user.list); - -http.createServer(app).listen(app.get('port'), function () { - console.log('Express server listening on port ' + app.get('port')); -}); diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/index.jade b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/index.jade deleted file mode 100644 index 5608b2842..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/index.jade +++ /dev/null @@ -1,5 +0,0 @@ -extends layout - -block content - h1= title - p Welcome to #{title} \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/index.js b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/index.js deleted file mode 100644 index 5035513df..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/index.js +++ /dev/null @@ -1,8 +0,0 @@ - -/* - * GET home page. - */ - -exports.index = function (req, res) { - res.render('index', { title: 'Express' }); -}; \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/layout.jade b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/layout.jade deleted file mode 100644 index caf3aaeb5..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/layout.jade +++ /dev/null @@ -1,7 +0,0 @@ -doctype html -html - head - title= title - link(rel='stylesheet', href='/stylesheets/style.css') - body - block content \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/package.json b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/package.json deleted file mode 100644 index da7f16366..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "$npmsafeprojectname$", - "version": "0.0.0", - "description": "$projectname$", - "main": "app.js", - "author": { - "name": "$username$" - }, - "dependencies": { - "express": "3.4.4", - "jade": "*", - "stylus": "*" - } -} \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/server.js b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/server.js deleted file mode 100644 index 45460b529..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/server.js +++ /dev/null @@ -1,12 +0,0 @@ -var express = require('express'); -var app = express(); - -app.get('/', function (req, res) { - res.send('Hello World'); -}); - - -var port = process.env.port || 1337; - -app.listen(port); -console.log('Listening on port ' + port); \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/style.styl b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/style.styl deleted file mode 100644 index 7010b10dd..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/style.styl +++ /dev/null @@ -1,5 +0,0 @@ -body - padding: 50px - font: 14px "Lucida Grande", Helvetica, Arial, sans-serif -a - color: #00B7FF \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/typings.json b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/typings.json deleted file mode 100644 index f37ea1f5e..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/typings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "globalDependencies": { - "express": "registry:dt/express#3.1.0+20140618213111", - "jade": "registry:dt/jade#0.0.0+20160316155526" - } -} diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/user.js b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/user.js deleted file mode 100644 index c2cd018c2..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteExpressApp/user.js +++ /dev/null @@ -1,8 +0,0 @@ - -/* - * GET users listing. - */ - -exports.list = function (req, res) { - res.send("respond with a resource"); -}; \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/AddWebSiteNodejsWebApp.njsproj b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/AddWebSiteNodejsWebApp.njsproj deleted file mode 100644 index a070f67ee..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/AddWebSiteNodejsWebApp.njsproj +++ /dev/null @@ -1,80 +0,0 @@ - - - 14.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - - - Debug - 2.0 - $guid1$ - . - server.js - - . - . - v4.0 - {3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{349c5851-65df-11da-9384-00065b846f21};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD} - ShowAllFiles - 1337 - true - - - - true - - - true - - - - - - - - - - - - - - - - - False - True - 0 - / - http://localhost:48022/ - False - True - http://localhost:1337 - False - - - - - - - CurrentPage - True - False - False - False - - - - - - - - - False - False - - - - - \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/AddWebSiteNodejsWebApp.vstemplate.base b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/AddWebSiteNodejsWebApp.vstemplate.base deleted file mode 100644 index d66ad6c1f..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/AddWebSiteNodejsWebApp.vstemplate.base +++ /dev/null @@ -1,32 +0,0 @@ - - - Blank Node.js Web Application - An empty Node.js web application. - - Web - JavaScript - Microsoft.Web.JavaScript.AddWebSiteNodejsWebApp - 130 - true - NodejsWebApp - true - 1 - true - Preview.png - - - - server.js - package.json - README.md - - - - Microsoft.VisualStudio.Web, Version=_VSVERSION_.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Microsoft.VisualStudio.Web.Wizard.EmptyWebTemplateWizard - - - Microsoft.NodejsTools.ProjectWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Microsoft.NodejsTools.ProjectWizard.NodejsPackageParametersExtension - - diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/Preview.png b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/Preview.png deleted file mode 100644 index 02c95caf6..000000000 Binary files a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/Preview.png and /dev/null differ diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/README.md b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/README.md deleted file mode 100644 index 5b794fdc0..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# $projectname$ - - diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/WebApplication.webproj b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/WebApplication.webproj deleted file mode 100644 index 1ea23ee7b..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/WebApplication.webproj +++ /dev/null @@ -1,2 +0,0 @@ -JavaScript -$targetframeworkversion$ \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/package.json b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/package.json deleted file mode 100644 index 09139b9b6..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "$npmsafeprojectname$", - "version": "0.0.0", - "description": "$projectname$", - "main": "server.js", - "author": { - "name": "$username$" - } -} diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/server.js b/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/server.js deleted file mode 100644 index 988e26aee..000000000 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteNodejsWebApp/server.js +++ /dev/null @@ -1,6 +0,0 @@ -var http = require('http'); -var port = process.env.port || 1337; -http.createServer(function (req, res) { - res.writeHead(200, { 'Content-Type': 'text/plain' }); - res.end('Hello World\n'); -}).listen(port); \ No newline at end of file diff --git a/Nodejs/Setup/NodejsTools/NodejsToolsFiles.proj b/Nodejs/Setup/NodejsTools/NodejsToolsFiles.proj index f7cbb9ce8..095959f73 100644 --- a/Nodejs/Setup/NodejsTools/NodejsToolsFiles.proj +++ b/Nodejs/Setup/NodejsTools/NodejsToolsFiles.proj @@ -70,10 +70,6 @@ ProjectTemplates\JavaScript\Node.js\1033\NodejsWebApp.zip; ProjectTemplates\JavaScript\Node.js\1033\NodejsConsoleApp.zip; ProjectTemplates\JavaScript\Node.js\1033\AzureNodejsWorker.zip; - ProjectTemplates\JavaScript\Node.js\1033\AddWebSiteAzureExpressApp.zip; - ProjectTemplates\JavaScript\Node.js\1033\AddWebSiteAzureNodejsApp.zip; - ProjectTemplates\JavaScript\Node.js\1033\AddWebSiteExpressApp.zip; - ProjectTemplates\JavaScript\Node.js\1033\AddWebSiteNodejsWebApp.zip; ProjectTemplates\TypeScript\Node.js\1033\TypeScriptAzureExpressApp.zip; ProjectTemplates\JavaScript\Node.js\1033\TypeScriptAzureExpressWebRole.zip; ProjectTemplates\TypeScript\Node.js\1033\TypeScriptAzureStarterExpressApp.zip;