diff --git a/.gitignore b/.gitignore index 9fdba70a6b..b5ee635b34 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/src/Tools/npm/build-dotvvm-types.ps1 b/src/Tools/npm/build-dotvvm-types.ps1 new file mode 100644 index 0000000000..3116b731f4 --- /dev/null +++ b/src/Tools/npm/build-dotvvm-types.ps1 @@ -0,0 +1,5 @@ +push-location ../../DotVVM.Framework + +tsc --declaration --emitDeclarationOnly --skipLibCheck --outFile ../Tools/npm/dotvvm-types/index.d.ts + +pop-location \ No newline at end of file diff --git a/src/Tools/npm/dotvvm-types/package-lock.json b/src/Tools/npm/dotvvm-types/package-lock.json new file mode 100644 index 0000000000..32e42aaf99 --- /dev/null +++ b/src/Tools/npm/dotvvm-types/package-lock.json @@ -0,0 +1,19 @@ +{ + "name": "dotvvm-types", + "version": "3.0.0-preview01", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@types/knockout": { + "version": "3.4.69", + "resolved": "https://registry.npmjs.org/@types/knockout/-/knockout-3.4.69.tgz", + "integrity": "sha512-XoLJogerYjpY0Ddpd8qJpkrDvCuY7H0jRh1zi5UF3SZlfRHVMARdXqLq0Zx0wyy8qrYsgkiPLMj1K0/zvYPJ+g==" + }, + "typescript": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.3.tgz", + "integrity": "sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==", + "dev": true + } + } +} diff --git a/src/Tools/npm/dotvvm-types/package.json b/src/Tools/npm/dotvvm-types/package.json new file mode 100644 index 0000000000..e77f849713 --- /dev/null +++ b/src/Tools/npm/dotvvm-types/package.json @@ -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" + } +}