Merge branch 'vnext' into cleanGoogleApi
Provides an APPDATA environment variable, used by Google generated code.
This commit is contained in:
commit
90231cff36
4 changed files with 187 additions and 163 deletions
|
|
@ -28,6 +28,8 @@ namespace Yavsc
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public Contact Admin { get; set; }
|
public Contact Admin { get; set; }
|
||||||
|
|
||||||
|
public string DataDir { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// User's files directory
|
/// User's files directory
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using Google.Apis.Auth.OAuth2;
|
using Google.Apis.Auth.OAuth2;
|
||||||
using Microsoft.AspNet.Builder;
|
using Microsoft.AspNet.Builder;
|
||||||
using Microsoft.AspNet.Hosting;
|
using Microsoft.AspNet.Hosting;
|
||||||
|
|
@ -21,8 +22,27 @@ namespace Yavsc
|
||||||
ILoggerFactory loggerFactory
|
ILoggerFactory loggerFactory
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
var logger = loggerFactory.CreateLogger<Startup>();
|
var logger = loggerFactory.CreateLogger<Startup>();
|
||||||
|
|
||||||
|
var appData = Environment.GetEnvironmentVariable("APPDATA");
|
||||||
|
if (appData == null)
|
||||||
|
{
|
||||||
|
if (SiteSetup.DataDir == null) {
|
||||||
|
SiteSetup.DataDir = "AppData";
|
||||||
|
} else logger.LogWarning("existing setting: "+SiteSetup.DataDir);
|
||||||
|
DirectoryInfo di = new DirectoryInfo(SiteSetup.DataDir);
|
||||||
|
if (!di.Exists)
|
||||||
|
{
|
||||||
|
di.Create();
|
||||||
|
logger.LogWarning("Created dir : "+di.FullName);
|
||||||
|
} else logger.LogWarning("existing: "+di.Name);
|
||||||
|
SiteSetup.DataDir = Path.Combine(Directory.GetCurrentDirectory(),di.Name);
|
||||||
|
Environment.SetEnvironmentVariable("APPDATA", SiteSetup.DataDir);
|
||||||
|
logger.LogWarning("AppData was not found in env vars, it has been set to : "+
|
||||||
|
Environment.GetEnvironmentVariable("APPDATA"));
|
||||||
|
}
|
||||||
|
|
||||||
var creds = GoogleSettings?.Account?.private_key;
|
var creds = GoogleSettings?.Account?.private_key;
|
||||||
if (creds==null)
|
if (creds==null)
|
||||||
throw new InvalidOperationException("No Google API credential");
|
throw new InvalidOperationException("No Google API credential");
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ namespace Yavsc
|
||||||
builder.AddEnvironmentVariables();
|
builder.AddEnvironmentVariables();
|
||||||
Configuration = builder.Build();
|
Configuration = builder.Build();
|
||||||
ConnectionString = Configuration["Data:DefaultConnection:ConnectionString"];
|
ConnectionString = Configuration["Data:DefaultConnection:ConnectionString"];
|
||||||
|
|
||||||
}
|
}
|
||||||
public static GoogleAuthSettings GoogleSettings { get; set; }
|
public static GoogleAuthSettings GoogleSettings { get; set; }
|
||||||
public IConfigurationRoot Configuration { get; set; }
|
public IConfigurationRoot Configuration { get; set; }
|
||||||
|
|
@ -262,6 +263,7 @@ namespace Yavsc
|
||||||
Startup.UserBillsDirName = new DirectoryInfo(siteSettings.Value.UserFiles.Bills).FullName;
|
Startup.UserBillsDirName = new DirectoryInfo(siteSettings.Value.UserFiles.Bills).FullName;
|
||||||
Startup.Temp = siteSettings.Value.TempDir;
|
Startup.Temp = siteSettings.Value.TempDir;
|
||||||
PayPalSettings = payPalSettings.Value;
|
PayPalSettings = payPalSettings.Value;
|
||||||
|
|
||||||
// TODO implement an installation & upgrade procedure
|
// TODO implement an installation & upgrade procedure
|
||||||
// Create required directories
|
// Create required directories
|
||||||
foreach (string dir in new string[] { UserFilesDirName, UserBillsDirName, SiteSetup.TempDir })
|
foreach (string dir in new string[] { UserFilesDirName, UserBillsDirName, SiteSetup.TempDir })
|
||||||
|
|
|
||||||
|
|
@ -1,167 +1,167 @@
|
||||||
{
|
{
|
||||||
"version": "1.0.0-*",
|
"version": "1.0.0-*",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Paul Schneider"
|
"Paul Schneider"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"Blog",
|
"Blog",
|
||||||
"PoS",
|
"PoS",
|
||||||
"Chat"
|
"Chat"
|
||||||
],
|
],
|
||||||
"projectUrl": "http://yavsc.pschneider.fr",
|
"projectUrl": "http://yavsc.pschneider.fr",
|
||||||
"licenseUrl": "",
|
"licenseUrl": "",
|
||||||
"userSecretsId": "aspnet5-YavscWeb-a0dadd21-2ced-43d3-96f9-7e504345102f",
|
"userSecretsId": "aspnet5-YavscWeb-a0dadd21-2ced-43d3-96f9-7e504345102f",
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"emitEntryPoint": true,
|
|
||||||
"debugType": "portable",
|
|
||||||
"outputName": "Yavsc"
|
|
||||||
},
|
|
||||||
"buildOptions": {
|
|
||||||
"debugType": "portable",
|
|
||||||
"emitEntryPoint": true
|
|
||||||
},
|
|
||||||
"compile": [
|
|
||||||
"*.cs"
|
|
||||||
],
|
|
||||||
"resource": [
|
|
||||||
"Resources/**/*.resx"
|
|
||||||
],
|
|
||||||
"namedResource": {},
|
|
||||||
"configurations": {
|
|
||||||
"Debug": {
|
|
||||||
"compilationOptions": {
|
|
||||||
"emitEntryPoint": true,
|
"emitEntryPoint": true,
|
||||||
"define": [
|
"debugType": "portable",
|
||||||
"DEBUG",
|
"outputName": "Yavsc"
|
||||||
"TRACE"
|
|
||||||
],
|
|
||||||
"optimize": false,
|
|
||||||
"debugType": "portable"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"Release": {
|
"buildOptions": {
|
||||||
"compilationOptions": {
|
"debugType": "portable",
|
||||||
"define": [
|
"emitEntryPoint": true
|
||||||
"RELEASE",
|
|
||||||
"TRACE"
|
|
||||||
],
|
|
||||||
"optimize": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"webroot": "wwwroot",
|
|
||||||
"tooling": {
|
|
||||||
"defaultNamespace": "Yavsc"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"EntityFramework.Commands": "7.0.0-rc1-final",
|
|
||||||
"EntityFramework.Core": "7.0.0-rc1-final",
|
|
||||||
"EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
|
|
||||||
"EntityFramework.Relational": "7.0.0-rc1-final",
|
|
||||||
"EntityFramework7.Npgsql": "3.1.0-rc1-3",
|
|
||||||
"EntityFramework7.Npgsql.Design": "3.1.0-rc1-5",
|
|
||||||
"MailKit": "1.12.0",
|
|
||||||
"MarkdownDeep-av.NET": "1.5.6",
|
|
||||||
"Microsoft.AspNet.Authentication.Cookies": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Authentication.Facebook": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Authentication.Twitter": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Authorization": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Diagnostics.Entity": "7.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Http.Abstractions": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-*",
|
|
||||||
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-*",
|
|
||||||
"Microsoft.AspNet.Localization": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Mvc": "6.0.0-rc1-*",
|
|
||||||
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-*",
|
|
||||||
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Server.WebListener": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.SignalR.Core": "2.2.1",
|
|
||||||
"Microsoft.AspNet.SignalR.JS": "2.2.1",
|
|
||||||
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-*",
|
|
||||||
"Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-*",
|
|
||||||
"Microsoft.AspNet.WebSockets.Server": "1.0.0-rc1-*",
|
|
||||||
"Microsoft.Extensions.Configuration.Abstractions": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.Configuration.FileProviderExtensions": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.Logging.TraceSource": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.Globalization.CultureInfoCache": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.Localization": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.Localization.Abstractions": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.CodeGeneration": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.CodeGenerators.Mvc": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4",
|
|
||||||
"Microsoft.Framework.Configuration.Abstractions": "1.0.0-beta8",
|
|
||||||
"Microsoft.Framework.Configuration.Binder": "1.0.0-beta8",
|
|
||||||
"Microsoft.Framework.Configuration.Json": "1.0.0-beta8",
|
|
||||||
"Microsoft.AspNet.Session": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Web.Optimization": "1.1.3",
|
|
||||||
"Microsoft.Extensions.WebEncoders.Core": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.Extensions.Options": "0.0.1-alpha",
|
|
||||||
"Microsoft.Extensions.WebEncoders": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.DataProtection": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.DataProtection.SystemWeb": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Authentication.JwtBearer": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Authentication.OAuth": "1.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.Mvc.Formatters.Json": "6.0.0-rc1-final",
|
|
||||||
"Microsoft.AspNet.OWin": "1.0.0-rc1-final",
|
|
||||||
"System.Json": "4.0.20126.16343",
|
|
||||||
"Yavsc.Abstract": {
|
|
||||||
"type": "build",
|
|
||||||
"version": "1.0.0"
|
|
||||||
},
|
},
|
||||||
"Extensions.AspNet.Authentication.Instagram": "1.0.0-t150809211713",
|
"compile": [
|
||||||
"Microsoft.AspNet.Http.Extensions": "1.0.0-rc1-final",
|
"*.cs"
|
||||||
"Microsoft.DiaSymReader.Native": "1.5.0",
|
],
|
||||||
"PayPalMerchant-net451": "2.7.109"
|
"resource": [
|
||||||
},
|
"Resources/**/*.resx"
|
||||||
"commands": {
|
],
|
||||||
"web": "Microsoft.AspNet.Server.Kestrel --server.urls http://*:5000",
|
"namedResource": {},
|
||||||
"coiffure": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:88",
|
"configurations": {
|
||||||
"lua": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:85",
|
"Debug": {
|
||||||
"luatest": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:5001",
|
"compilationOptions": {
|
||||||
"kestrel": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:5000",
|
"emitEntryPoint": true,
|
||||||
"zicmoove": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:87",
|
"define": [
|
||||||
"yavsc": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:86",
|
"DEBUG",
|
||||||
"yavscpre": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:84",
|
"TRACE"
|
||||||
"ef": "EntityFramework.Commands",
|
],
|
||||||
"gen": "Microsoft.Extensions.CodeGeneration"
|
"optimize": false,
|
||||||
},
|
"debugType": "portable"
|
||||||
"frameworks": {
|
}
|
||||||
"dnx451": {
|
},
|
||||||
"frameworkAssemblies": {
|
"Release": {
|
||||||
"System.Drawing": "4.0.0.0",
|
"compilationOptions": {
|
||||||
"System.Net": "4.0.0.0",
|
"define": [
|
||||||
"System.Xml": "4.0.0.0",
|
"RELEASE",
|
||||||
"System": "4.0.0.0"
|
"TRACE"
|
||||||
}
|
],
|
||||||
}
|
"optimize": true
|
||||||
},
|
}
|
||||||
"exclude": [
|
}
|
||||||
"wwwroot",
|
},
|
||||||
"node_modules",
|
"webroot": "wwwroot",
|
||||||
"bower_components",
|
"tooling": {
|
||||||
"contrib"
|
"defaultNamespace": "Yavsc"
|
||||||
],
|
},
|
||||||
"publishExclude": [
|
"dependencies": {
|
||||||
"**.user",
|
"EntityFramework.Commands": "7.0.0-rc1-final",
|
||||||
"**.vspscc",
|
"EntityFramework.Core": "7.0.0-rc1-final",
|
||||||
"contrib/**/*.*"
|
"EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
|
||||||
],
|
"EntityFramework.Relational": "7.0.0-rc1-final",
|
||||||
"scripts": {
|
"EntityFramework7.Npgsql": "3.1.0-rc1-3",
|
||||||
"prebuild": "echo before building",
|
"EntityFramework7.Npgsql.Design": "3.1.0-rc1-5",
|
||||||
"postbuild": "echo after building",
|
"MailKit": "1.12.0",
|
||||||
"prepack": "gulp min",
|
"MarkdownDeep-av.NET": "1.5.6",
|
||||||
"postpack": "echo after packing",
|
"Microsoft.AspNet.Authentication.Cookies": "1.0.0-rc1-final",
|
||||||
"prerestore": "echo before restoring packages",
|
"Microsoft.AspNet.Authentication.Facebook": "1.0.0-rc1-final",
|
||||||
"postrestore": "echo after restoring packages",
|
"Microsoft.AspNet.Authentication.Twitter": "1.0.0-rc1-final",
|
||||||
"prepublish": "gulp min",
|
"Microsoft.AspNet.Authorization": "1.0.0-rc1-final",
|
||||||
"postpublish": "echo after publish"
|
"Microsoft.AspNet.Diagnostics.Entity": "7.0.0-rc1-final",
|
||||||
},
|
"Microsoft.AspNet.Http.Abstractions": "1.0.0-rc1-final",
|
||||||
"embed": "Views/**/*.cshtml"
|
"Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-*",
|
||||||
}
|
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-*",
|
||||||
|
"Microsoft.AspNet.Localization": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.AspNet.Mvc": "6.0.0-rc1-*",
|
||||||
|
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-*",
|
||||||
|
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.AspNet.Server.WebListener": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.AspNet.SignalR.Core": "2.2.1",
|
||||||
|
"Microsoft.AspNet.SignalR.JS": "2.2.1",
|
||||||
|
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-*",
|
||||||
|
"Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-*",
|
||||||
|
"Microsoft.AspNet.WebSockets.Server": "1.0.0-rc1-*",
|
||||||
|
"Microsoft.Extensions.Configuration.Abstractions": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.Configuration.FileProviderExtensions": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.Logging.TraceSource": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.Globalization.CultureInfoCache": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.Localization": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.Localization.Abstractions": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.CodeGeneration": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.CodeGenerators.Mvc": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4",
|
||||||
|
"Microsoft.Framework.Configuration.Abstractions": "1.0.0-beta8",
|
||||||
|
"Microsoft.Framework.Configuration.Binder": "1.0.0-beta8",
|
||||||
|
"Microsoft.Framework.Configuration.Json": "1.0.0-beta8",
|
||||||
|
"Microsoft.AspNet.Session": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.AspNet.Web.Optimization": "1.1.3",
|
||||||
|
"Microsoft.Extensions.WebEncoders.Core": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.Extensions.Options": "0.0.1-alpha",
|
||||||
|
"Microsoft.Extensions.WebEncoders": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.AspNet.DataProtection": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.AspNet.DataProtection.SystemWeb": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.AspNet.Authentication.JwtBearer": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.AspNet.Authentication.OAuth": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.AspNet.Mvc.Formatters.Json": "6.0.0-rc1-final",
|
||||||
|
"Microsoft.AspNet.OWin": "1.0.0-rc1-final",
|
||||||
|
"System.Json": "4.0.20126.16343",
|
||||||
|
"Yavsc.Abstract": {
|
||||||
|
"type": "build",
|
||||||
|
"version": "1.0.0"
|
||||||
|
},
|
||||||
|
"Extensions.AspNet.Authentication.Instagram": "1.0.0-t150809211713",
|
||||||
|
"Microsoft.AspNet.Http.Extensions": "1.0.0-rc1-final",
|
||||||
|
"Microsoft.DiaSymReader.Native": "1.5.0",
|
||||||
|
"PayPalMerchant-net451": "2.7.109"
|
||||||
|
},
|
||||||
|
"commands": {
|
||||||
|
"web": "Microsoft.AspNet.Server.Kestrel --server.urls http://*:5000",
|
||||||
|
"coiffure": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:88",
|
||||||
|
"lua": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:85",
|
||||||
|
"luatest": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:5001",
|
||||||
|
"kestrel": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:5000",
|
||||||
|
"zicmoove": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:87",
|
||||||
|
"yavsc": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:86",
|
||||||
|
"yavscpre": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:84",
|
||||||
|
"ef": "EntityFramework.Commands",
|
||||||
|
"gen": "Microsoft.Extensions.CodeGeneration"
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"dnx451": {
|
||||||
|
"frameworkAssemblies": {
|
||||||
|
"System.Drawing": "4.0.0.0",
|
||||||
|
"System.Net": "4.0.0.0",
|
||||||
|
"System.Xml": "4.0.0.0",
|
||||||
|
"System": "4.0.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"wwwroot",
|
||||||
|
"node_modules",
|
||||||
|
"bower_components",
|
||||||
|
"contrib"
|
||||||
|
],
|
||||||
|
"publishExclude": [
|
||||||
|
"**.user",
|
||||||
|
"**.vspscc",
|
||||||
|
"contrib/**/*.*"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"prebuild": "echo before building",
|
||||||
|
"postbuild": "echo after building",
|
||||||
|
"prepack": "gulp min",
|
||||||
|
"postpack": "echo after packing",
|
||||||
|
"prerestore": "echo before restoring packages",
|
||||||
|
"postrestore": "echo after restoring packages",
|
||||||
|
"prepublish": "gulp min",
|
||||||
|
"postpublish": "echo after publish"
|
||||||
|
},
|
||||||
|
"embed": "Views/**/*.cshtml"
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue