diff --git a/templates/WebApplicationBasic/.babelrc b/templates/WebApplicationBasic/.babelrc new file mode 100644 index 0000000000..c13c5f627f --- /dev/null +++ b/templates/WebApplicationBasic/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015"] +} diff --git a/templates/WebApplicationBasic/.bowerrc b/templates/WebApplicationBasic/.bowerrc deleted file mode 100755 index 78d4e9d826..0000000000 --- a/templates/WebApplicationBasic/.bowerrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "directory": "wwwroot/lib" -} diff --git a/templates/WebApplicationBasic/.gitignore b/templates/WebApplicationBasic/.gitignore index 0ca27f04e1..342cf93beb 100644 --- a/templates/WebApplicationBasic/.gitignore +++ b/templates/WebApplicationBasic/.gitignore @@ -24,8 +24,7 @@ bld/ # Visual Studio 2015 cache/options directory .vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ +/wwwroot/dist/ # MSTest test Results [Tt]est[Rr]esult*/ diff --git a/templates/WebApplicationBasic/ClientApp/App.ts b/templates/WebApplicationBasic/ClientApp/App.ts new file mode 100644 index 0000000000..62cce873a4 --- /dev/null +++ b/templates/WebApplicationBasic/ClientApp/App.ts @@ -0,0 +1,5 @@ +import 'bootstrap/dist/css/bootstrap.css'; +import './css/site.css'; + +// Replace with your TypeScript code +console.log('Hello, world!'); diff --git a/templates/WebApplicationBasic/wwwroot/css/site.css b/templates/WebApplicationBasic/ClientApp/css/site.css similarity index 100% rename from templates/WebApplicationBasic/wwwroot/css/site.css rename to templates/WebApplicationBasic/ClientApp/css/site.css diff --git a/templates/WebApplicationBasic/Views/Home/Index.cshtml b/templates/WebApplicationBasic/Views/Home/Index.cshtml index 752840960d..3715261fbe 100755 --- a/templates/WebApplicationBasic/Views/Home/Index.cshtml +++ b/templates/WebApplicationBasic/Views/Home/Index.cshtml @@ -108,3 +108,7 @@ + +@section scripts { + +} diff --git a/templates/WebApplicationBasic/Views/Shared/_Layout.cshtml b/templates/WebApplicationBasic/Views/Shared/_Layout.cshtml index 7b51d4495d..39d0e3f0fc 100755 --- a/templates/WebApplicationBasic/Views/Shared/_Layout.cshtml +++ b/templates/WebApplicationBasic/Views/Shared/_Layout.cshtml @@ -5,15 +5,8 @@