1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-10 00:37:34 +00:00

added more vs files to gitignore

This commit is contained in:
Bowden Kelly
2018-02-26 15:02:55 -08:00
parent f6d1b55a54
commit 0cd9aec88c
8 changed files with 19 additions and 9 deletions

8
.gitignore vendored
View File

@@ -42,4 +42,10 @@ env.cmd
coverage/**/*
# logs
debug.log
debug.log
# VS specific files
.vs
bin
obj

View File

@@ -19,8 +19,12 @@
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<StartWebBrowser>True</StartWebBrowser>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'" />
<PropertyGroup Condition="'$(Configuration)' == 'Release'" />
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<NODE_ENV>development</NODE_ENV>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<NODE_ENV>production</NODE_ENV>
</PropertyGroup>
<ItemGroup>
<Content Include="package-lock.json" />
<Content Include="package.json" />
@@ -137,8 +141,9 @@
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<Target Name="RunNpmScript">
<Target Name="BeforeBuild">
<Exec Command="(SET NODE_ENV=$(NODE_ENV)) &amp; npm run build" WorkingDirectory="$(MSBuildProjectDirectory)" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
</Target>
</Project>

View File

@@ -1 +0,0 @@
324ad010264b04b35e4f52396e697d21ae25d284

View File

@@ -10,7 +10,7 @@
"license": "MIT",
"scripts": {
"start": "npm run serve",
"build": "npm run build-sass && npm run build-ts && npm run tslint && npm run copy-static-assets",
"build": "npm run build-sass && npm run tslint && npm run copy-static-assets",
"serve": "node dist/server.js",
"watch-node": "nodemon dist/server.js",
"watch": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run watch-node\"",

View File

@@ -6,6 +6,6 @@ import { Request, Response } from "express";
*/
export let index = (req: Request, res: Response) => {
res.render("home", {
title: "Home"
title: "Hello world"
});
};