Update templates for Yarn compatibility

This commit is contained in:
SteveSandersonMS
2016-10-28 17:36:55 +01:00
parent 6259b7b938
commit 54f222e88f
11 changed files with 20 additions and 2 deletions

1
.gitignore vendored
View File

@@ -37,4 +37,5 @@ npm-debug.log
/templates/*/node_modules/ /templates/*/node_modules/
/templates/*/wwwroot/dist/ /templates/*/wwwroot/dist/
/templates/*/ClientApp/dist/ /templates/*/ClientApp/dist/
/templates/*/yarn.lock
.vscode/ .vscode/

View File

@@ -196,6 +196,8 @@ orleans.codegen.cs
/node_modules/** /node_modules/**
!/node_modules/_placeholder.txt !/node_modules/_placeholder.txt
/yarn.lock
# RIA/Silverlight projects # RIA/Silverlight projects
Generated_Code/ Generated_Code/

View File

@@ -35,6 +35,7 @@ Obj/
!/wwwroot/dist/_placeholder.txt !/wwwroot/dist/_placeholder.txt
!/ClientApp/dist/_placeholder.txt !/ClientApp/dist/_placeholder.txt
/yarn.lock
# MSTest test Results # MSTest test Results
[Tt]est[Rr]esult*/ [Tt]est[Rr]esult*/

View File

@@ -1,4 +1,5 @@
import * as ko from 'knockout'; import * as ko from 'knockout';
import * as History from 'history';
import { Route, Router } from '../../router'; import { Route, Router } from '../../router';
import navMenu from '../nav-menu/nav-menu'; import navMenu from '../nav-menu/nav-menu';

View File

@@ -1,5 +1,6 @@
import * as ko from 'knockout'; import * as ko from 'knockout';
import * as $ from 'jquery'; import * as $ from 'jquery';
import * as History from 'history';
import crossroads = require('crossroads'); import crossroads = require('crossroads');
// This module configures crossroads.js, a routing library. If you prefer, you // This module configures crossroads.js, a routing library. If you prefer, you

View File

@@ -33,6 +33,8 @@ Obj/
# Workaround for https://github.com/aspnet/JavaScriptServices/issues/235 # Workaround for https://github.com/aspnet/JavaScriptServices/issues/235
!/wwwroot/dist/_placeholder.txt !/wwwroot/dist/_placeholder.txt
/yarn.lock
# MSTest test Results # MSTest test Results
[Tt]est[Rr]esult*/ [Tt]est[Rr]esult*/
[Bb]uild[Ll]og.* [Bb]uild[Ll]og.*

View File

@@ -35,6 +35,7 @@ Obj/
!/wwwroot/dist/_placeholder.txt !/wwwroot/dist/_placeholder.txt
!/ClientApp/dist/_placeholder.txt !/ClientApp/dist/_placeholder.txt
/yarn.lock
# MSTest test Results # MSTest test Results
[Tt]est[Rr]esult*/ [Tt]est[Rr]esult*/

View File

@@ -1,5 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"baseUrl": ".",
"moduleResolution": "node", "moduleResolution": "node",
"target": "es6", "target": "es6",
"jsx": "preserve", "jsx": "preserve",
@@ -7,7 +8,11 @@
"sourceMap": true, "sourceMap": true,
"skipDefaultLibCheck": true, "skipDefaultLibCheck": true,
"lib": ["es6", "dom"], "lib": ["es6", "dom"],
"types": [ "webpack-env", "whatwg-fetch" ] "types": [ "webpack-env", "whatwg-fetch" ],
"paths": {
// Fixes "Duplicate identifier 'Redux'" error when packages were installed via Yarn (by specifying which .d.ts file is authoritative)
"redux": ["./node_modules/@types/redux/index"]
}
}, },
"exclude": [ "exclude": [
"bin", "bin",

View File

@@ -33,6 +33,8 @@ Obj/
# Workaround for https://github.com/aspnet/JavaScriptServices/issues/235 # Workaround for https://github.com/aspnet/JavaScriptServices/issues/235
!/wwwroot/dist/_placeholder.txt !/wwwroot/dist/_placeholder.txt
/yarn.lock
# MSTest test Results # MSTest test Results
[Tt]est[Rr]esult*/ [Tt]est[Rr]esult*/
[Bb]uild[Ll]og.* [Bb]uild[Ll]og.*

View File

@@ -30,6 +30,8 @@ Obj/
.vs/ .vs/
/wwwroot/dist/ /wwwroot/dist/
/yarn.lock
# MSTest test Results # MSTest test Results
[Tt]est[Rr]esult*/ [Tt]est[Rr]esult*/
[Bb]uild[Ll]og.* [Bb]uild[Ll]og.*

View File

@@ -1,6 +1,6 @@
{ {
"name": "generator-aspnetcore-spa", "name": "generator-aspnetcore-spa",
"version": "0.4.1", "version": "0.4.2",
"description": "Single-Page App templates for ASP.NET Core", "description": "Single-Page App templates for ASP.NET Core",
"author": "Microsoft", "author": "Microsoft",
"license": "Apache-2.0", "license": "Apache-2.0",