Update templates for Yarn compatibility
This commit is contained in:
parent
6259b7b938
commit
54f222e88f
|
|
@ -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/
|
||||||
|
|
|
||||||
|
|
@ -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/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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*/
|
||||||
|
|
|
||||||
|
|
@ -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';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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.*
|
||||||
|
|
|
||||||
|
|
@ -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*/
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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.*
|
||||||
|
|
|
||||||
|
|
@ -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.*
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue