Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM package with typescript definitions #952

Merged
merged 10 commits into from
Mar 3, 2021
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,4 @@ FakesAssemblies/
/src/.idea

/src/DotVVM.Samples.BasicSamples.Api.AspNetCore/temp/returnedFiles
/src/DotVVM.Framework.Tests.Javascript/package-lock.json
/src/DotVVM.Framework/package-lock.json
/src/Tools/npm/dotvvm-types/*.d.ts
5 changes: 5 additions & 0 deletions src/Tools/npm/build-dotvvm-types.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
push-location ../../DotVVM.Framework

tsc --declaration --emitDeclarationOnly --skipLibCheck --outFile ../Tools/npm/dotvvm-types/index.d.ts

pop-location
19 changes: 19 additions & 0 deletions src/Tools/npm/dotvvm-types/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions src/Tools/npm/dotvvm-types/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "dotvvm-types",
"version": "3.0.0-preview01",
"description": "MVVM framework for ASP.NET",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/riganti/dotvvm.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/riganti/dotvvm/issues"
},
"homepage": "https://github.com/riganti/dotvvm#readme",
"devDependencies": {
"typescript": "^4.0.3"
},
"dependencies": {
"@types/knockout": "^3.4.69"
}
}