using gulp transpiling
This commit is contained in:
parent
95e93f91f7
commit
4d0f3bc9b5
@ -1 +0,0 @@
|
|||||||
console.log("Hello World");
|
|
1135
Selector.Web/Frontend/package-lock.json
generated
1135
Selector.Web/Frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"outDir": "../wwwroot/",
|
|
||||||
"sourceMap": true,
|
|
||||||
"noImplicitAny": true,
|
|
||||||
"module": "es6",
|
|
||||||
"target": "es5",
|
|
||||||
"jsx": "react",
|
|
||||||
"allowJs": true,
|
|
||||||
"moduleResolution": "node",
|
|
||||||
// "declaration": true
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
const path = require('path');
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
entry: './index.ts',
|
|
||||||
devtool: 'inline-source-map',
|
|
||||||
mode: 'development',
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.tsx?$/,
|
|
||||||
use: 'ts-loader',
|
|
||||||
exclude: /node_modules/,
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
resolve: {
|
|
||||||
extensions: [".js", '.tsx', '.ts']
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
filename: 'bundle.js',
|
|
||||||
path: path.resolve(__dirname, '..', 'wwwroot'),
|
|
||||||
}
|
|
||||||
};
|
|
@ -1,4 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
@ -11,11 +11,15 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Remove="Frontend\**" />
|
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
|
||||||
<Content Remove="Frontend\**" />
|
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="4.4.4">
|
||||||
<Content Remove="wwwroot\**\*" />
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<EmbeddedResource Remove="Frontend\**" />
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
<None Remove="Frontend\**" />
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="wwwroot\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
21
Selector.Web/gulpfile.js
Normal file
21
Selector.Web/gulpfile.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/// <binding AfterBuild='default' Clean='clean' />
|
||||||
|
/*
|
||||||
|
This file is the main entry point for defining Gulp tasks and using Gulp plugins.
|
||||||
|
Click here to learn more. http://go.microsoft.com/fwlink/?LinkId=518007
|
||||||
|
*/
|
||||||
|
|
||||||
|
var gulp = require("gulp");
|
||||||
|
var del = require("del");
|
||||||
|
|
||||||
|
var paths = {
|
||||||
|
scripts: ["scripts/**/*.js", "scripts/**/*.ts", "scripts/**/*.map"],
|
||||||
|
};
|
||||||
|
|
||||||
|
gulp.task("clean", function () {
|
||||||
|
return del(["wwwroot/scripts/**/*"]);
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task("default", function (done) {
|
||||||
|
gulp.src(paths.scripts).pipe(gulp.dest("wwwroot/scripts"));
|
||||||
|
done();
|
||||||
|
});
|
3674
Selector.Web/package-lock.json
generated
Normal file
3674
Selector.Web/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -4,8 +4,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
"build": "webpack --config webpack.config.js"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -18,9 +17,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/Sarsoo/Selector#readme",
|
"homepage": "https://github.com/Sarsoo/Selector#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ts-loader": "^9.2.6",
|
"del": "^6.0.0",
|
||||||
"typescript": "^4.4.4",
|
"gulp": "^4.0.2"
|
||||||
"webpack": "^5.58.2",
|
|
||||||
"webpack-cli": "^4.9.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
6
Selector.Web/scripts/index.ts
Normal file
6
Selector.Web/scripts/index.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
namespace Selector.Web {awdawd
|
||||||
|
class Watcher {ada
|
||||||
|
static example: string = "string";
|
||||||
|
}awdw
|
||||||
|
}
|
14
Selector.Web/scripts/tsconfig.json
Normal file
14
Selector.Web/scripts/tsconfig.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"sourceMap": true,
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"noEmitOnError": true,
|
||||||
|
"module": "es6",
|
||||||
|
"target": "es5",
|
||||||
|
"allowJs": true
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"node_modules",
|
||||||
|
"wwwroot"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user