[progress Communities] [progress Openedge Abl] Forum Post: Re: Jsdo Angular-cli Environment?

  • Thread starter Thread starter Lars Neumeier
  • Start date Start date
Status
Not open for further replies.
L

Lars Neumeier

Guest
Thank you Edsel. I created a package.json file and put the jsdo js and typescript definition file in the node_modules folder (simulating a npm module). package.json: { "name": "@progress/jsdo", "version": "4.3.0", "description": "Progress JSDO", "main": "dist/npm/js/progress.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "JSDO", "CDO", "Datasource", "Kendo UI" ], "author": "Progress Software Corporation http://www.progress.com" , "license": "Apache-2.0", "homepage": " github.com/.../JSDO , "repository": { "type": "git", "url": "git+ github.com/.../JSDO.git" }, "typings": "dist/npm/js/progress", "bugs": { "url": " github.com/.../issues" } } Angular CLI Struktur: node_modules\@progress\jsdo\package.json node_modules\@progress\jsdo\dist\npm\js\progress.js node_modules\@progress\jsdo\dist\npm\js\progress.d.ts Using in app.component.ts: import { progress } from '@progress/jsdo'; export class AppComponent { someMethod(): void { let session = new progress.data.Session(); } } In package.json from the Angular-CLI project: "dependencies": { "@angular/common": "~2.0.0", "@angular/compiler": "~2.0.0", "@angular/core": "~2.0.0", "@angular/forms": "~2.0.0", "@angular/http": "~2.0.0", "@angular/platform-browser": "~2.0.0", "@angular/platform-browser-dynamic": "~2.0.0", "@angular/router": "~3.0.0", "@progress/kendo-angular-buttons": "^0.10.3", "@progress/kendo-angular-grid": "^0.3.3", "@progress/kendo-angular-inputs": "^0.11.0", "@progress/jsdo": "^4.3.0", "core-js": "^2.4.1", "rxjs": "5.0.0-beta.12", "ts-helpers": "^1.1.1", "zone.js": "^0.6.23" }, I think, that this configuration can be used to create a npm module. Kind regards, Lars Neumeier

Continue reading...
 
Status
Not open for further replies.
Back
Top