From dc3761ac33d99ddaa35d47e56c3275774af647f1 Mon Sep 17 00:00:00 2001 From: farfromrefuge Date: Sun, 30 Apr 2023 14:23:32 +0200 Subject: [PATCH] feat: angular module --- packages/https/package.json | 3 ++- src/https/angular/ng-package.json | 9 +++++++++ src/https/angular/package.json | 4 ++++ src/https/angular/tsconfig.json | 13 +++++++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/https/angular/ng-package.json create mode 100644 src/https/angular/package.json create mode 100644 src/https/angular/tsconfig.json diff --git a/packages/https/package.json b/packages/https/package.json index aec40ef..dc9aacc 100644 --- a/packages/https/package.json +++ b/packages/https/package.json @@ -17,7 +17,8 @@ "build": "npm run tsc", "build.watch": "npm run tsc -- -w", "build.win": "npm run tsc-win", - "build.all": "npm run build", + "build.all": "npm run build && npm run build.angular", + "build.angular": "ng-packagr -p ../../src/https/angular/ng-package.json -c ../../src/https/angular/tsconfig.json", "build.all.win": "npm run build.win", "clean": "rimraf ./*.d.ts ./*.js ./*.js.map" }, diff --git a/src/https/angular/ng-package.json b/src/https/angular/ng-package.json new file mode 100644 index 0000000..7c54d13 --- /dev/null +++ b/src/https/angular/ng-package.json @@ -0,0 +1,9 @@ +{ + "dest": "../../../packages/https/angular", + "lib": { + "entryFile": "index.ts" + }, + "allowedNonPeerDependencies": [ + "." + ] +} \ No newline at end of file diff --git a/src/https/angular/package.json b/src/https/angular/package.json new file mode 100644 index 0000000..3267b10 --- /dev/null +++ b/src/https/angular/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nativescript-community/https-angular", + "main": "index.js" +} \ No newline at end of file diff --git a/src/https/angular/tsconfig.json b/src/https/angular/tsconfig.json new file mode 100644 index 0000000..8b6b275 --- /dev/null +++ b/src/https/angular/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "rootDir": "./", + "plugins": [], + "paths": { + "@nativescript-community/https": ["packages/https"], + "@nativescript-community/https/*": ["packages/https/*"] + } + }, + "include": ["./**/*.ts", "../../../references.d.ts", "../references.d.ts"], + "exclude": ["../node_modules"] +}