@wolkabout/commons 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,16 +1,6 @@
1
- # WolkAboutCommonsFE
1
+ # Commons
2
2
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.5.
4
-
5
- ## Development server
6
-
7
- To start a local development server, run:
8
-
9
- ```bash
10
- ng serve
11
- ```
12
-
13
- Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
14
4
 
15
5
  ## Code scaffolding
16
6
 
@@ -28,13 +18,27 @@ ng generate --help
28
18
 
29
19
  ## Building
30
20
 
31
- To build the project run:
21
+ To build the library, run:
32
22
 
33
23
  ```bash
34
- ng build
24
+ ng build commons
35
25
  ```
36
26
 
37
- This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
27
+ This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
+
29
+ ### Publishing the Library
30
+
31
+ Once the project is built, you can publish your library by following these steps:
32
+
33
+ 1. Navigate to the `dist` directory:
34
+ ```bash
35
+ cd dist/commons
36
+ ```
37
+
38
+ 2. Run the `npm publish` command to publish your library to the npm registry:
39
+ ```bash
40
+ npm publish
41
+ ```
38
42
 
39
43
  ## Running unit tests
40
44
 
@@ -0,0 +1,23 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable } from '@angular/core';
3
+ import { BehaviorSubject } from 'rxjs';
4
+
5
+ class CommonsService {
6
+ secretMessage = new BehaviorSubject('Empty');
7
+ constructor() { }
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CommonsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
9
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CommonsService, providedIn: 'root' });
10
+ }
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CommonsService, decorators: [{
12
+ type: Injectable,
13
+ args: [{
14
+ providedIn: 'root'
15
+ }]
16
+ }], ctorParameters: () => [] });
17
+
18
+ /**
19
+ * Generated bundle index. Do not edit.
20
+ */
21
+
22
+ export { CommonsService };
23
+ //# sourceMappingURL=commons.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commons.mjs","sources":["../../../projects/commons/src/lib/commons.service.ts","../../../projects/commons/src/commons.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CommonsService {\r\n\r\n public secretMessage = new BehaviorSubject<string>('Empty');\r\n\r\n constructor() { }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAMa,cAAc,CAAA;AAElB,IAAA,aAAa,GAAG,IAAI,eAAe,CAAS,OAAO,CAAC;AAE3D,IAAA,WAAA,GAAA,EAAgB;wGAJL,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAd,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cAFb,MAAM,EAAA,CAAA;;4FAEP,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -0,0 +1,23 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable } from '@angular/core';
3
+ import { BehaviorSubject } from 'rxjs';
4
+
5
+ class CommonsService {
6
+ secretMessage = new BehaviorSubject('Empty');
7
+ constructor() { }
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CommonsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
9
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CommonsService, providedIn: 'root' });
10
+ }
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CommonsService, decorators: [{
12
+ type: Injectable,
13
+ args: [{
14
+ providedIn: 'root'
15
+ }]
16
+ }], ctorParameters: () => [] });
17
+
18
+ /**
19
+ * Generated bundle index. Do not edit.
20
+ */
21
+
22
+ export { CommonsService };
23
+ //# sourceMappingURL=wolkabout-commons.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wolkabout-commons.mjs","sources":["../../../projects/commons/src/lib/commons.service.ts","../../../projects/commons/src/wolkabout-commons.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CommonsService {\r\n\r\n public secretMessage = new BehaviorSubject<string>('Empty');\r\n\r\n constructor() { }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAMa,cAAc,CAAA;AAElB,IAAA,aAAa,GAAG,IAAI,eAAe,CAAS,OAAO,CAAC;AAE3D,IAAA,WAAA,GAAA,EAAgB;wGAJL,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAd,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cAFb,MAAM,EAAA,CAAA;;4FAEP,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACLD;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import * as i0 from '@angular/core';
3
+
4
+ declare class CommonsService {
5
+ secretMessage: BehaviorSubject<string>;
6
+ constructor();
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommonsService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<CommonsService>;
9
+ }
10
+
11
+ export { CommonsService };
package/package.json CHANGED
@@ -1,38 +1,23 @@
1
1
  {
2
2
  "name": "@wolkabout/commons",
3
- "version": "0.0.1",
4
- "scripts": {
5
- "ng": "ng",
6
- "start": "ng serve",
7
- "build": "ng build",
8
- "watch": "ng build --watch --configuration development",
9
- "test": "ng test"
3
+ "version": "0.0.3",
4
+ "peerDependencies": {
5
+ "@angular/common": "^20.3.10",
6
+ "@angular/core": "^20.3.10"
10
7
  },
11
- "private": false,
12
8
  "dependencies": {
13
- "@angular/common": "^20.3.10",
14
- "@angular/compiler": "^20.3.10",
15
- "@angular/core": "^20.3.10",
16
- "@angular/forms": "^20.3.10",
17
- "@angular/platform-browser": "^20.3.10",
18
- "@angular/platform-browser-dynamic": "^20.3.10",
19
- "@angular/router": "^20.3.10",
20
- "rxjs": "~7.8.0",
21
- "tslib": "^2.3.0",
22
- "zone.js": "~0.15.0"
9
+ "tslib": "^2.3.0"
23
10
  },
24
- "devDependencies": {
25
- "@angular/build": "^20.3.9",
26
- "@angular/cli": "^20.3.9",
27
- "@angular/compiler-cli": "^20.3.10",
28
- "@types/jasmine": "~5.1.0",
29
- "jasmine-core": "~5.6.0",
30
- "karma": "~6.4.0",
31
- "karma-chrome-launcher": "~3.2.0",
32
- "karma-coverage": "~2.2.0",
33
- "karma-jasmine": "~5.1.0",
34
- "karma-jasmine-html-reporter": "~2.1.0",
35
- "ng-packagr": "^20.3.0",
36
- "typescript": "~5.9.3"
11
+ "sideEffects": false,
12
+ "module": "fesm2022/wolkabout-commons.mjs",
13
+ "typings": "index.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./index.d.ts",
20
+ "default": "./fesm2022/wolkabout-commons.mjs"
21
+ }
37
22
  }
38
- }
23
+ }
package/.editorconfig DELETED
@@ -1,17 +0,0 @@
1
- # Editor configuration, see https://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- charset = utf-8
6
- indent_style = space
7
- indent_size = 2
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
10
-
11
- [*.ts]
12
- quote_type = single
13
- ij_typescript_use_double_quotes = false
14
-
15
- [*.md]
16
- max_line_length = off
17
- trim_trailing_whitespace = false
@@ -1,4 +0,0 @@
1
- {
2
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3
- "recommendations": ["angular.ng-template"]
4
- }
@@ -1,20 +0,0 @@
1
- {
2
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3
- "version": "0.2.0",
4
- "configurations": [
5
- {
6
- "name": "ng serve",
7
- "type": "chrome",
8
- "request": "launch",
9
- "preLaunchTask": "npm: start",
10
- "url": "http://localhost:4200/"
11
- },
12
- {
13
- "name": "ng test",
14
- "type": "chrome",
15
- "request": "launch",
16
- "preLaunchTask": "npm: test",
17
- "url": "http://localhost:9876/debug.html"
18
- }
19
- ]
20
- }
@@ -1,42 +0,0 @@
1
- {
2
- // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3
- "version": "2.0.0",
4
- "tasks": [
5
- {
6
- "type": "npm",
7
- "script": "start",
8
- "isBackground": true,
9
- "problemMatcher": {
10
- "owner": "typescript",
11
- "pattern": "$tsc",
12
- "background": {
13
- "activeOnStart": true,
14
- "beginsPattern": {
15
- "regexp": "(.*?)"
16
- },
17
- "endsPattern": {
18
- "regexp": "bundle generation complete"
19
- }
20
- }
21
- }
22
- },
23
- {
24
- "type": "npm",
25
- "script": "test",
26
- "isBackground": true,
27
- "problemMatcher": {
28
- "owner": "typescript",
29
- "pattern": "$tsc",
30
- "background": {
31
- "activeOnStart": true,
32
- "beginsPattern": {
33
- "regexp": "(.*?)"
34
- },
35
- "endsPattern": {
36
- "regexp": "bundle generation complete"
37
- }
38
- }
39
- }
40
- }
41
- ]
42
- }
package/angular.json DELETED
@@ -1,66 +0,0 @@
1
- {
2
- "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
- "version": 1,
4
- "newProjectRoot": "projects",
5
- "projects": {
6
- "commons": {
7
- "projectType": "library",
8
- "root": "projects/commons",
9
- "sourceRoot": "projects/commons/src",
10
- "prefix": "lib",
11
- "architect": {
12
- "build": {
13
- "builder": "@angular/build:ng-packagr",
14
- "options": {
15
- "project": "projects/commons/ng-package.json"
16
- },
17
- "configurations": {
18
- "production": {
19
- "tsConfig": "projects/commons/tsconfig.lib.prod.json"
20
- },
21
- "development": {
22
- "tsConfig": "projects/commons/tsconfig.lib.json"
23
- }
24
- },
25
- "defaultConfiguration": "production"
26
- },
27
- "test": {
28
- "builder": "@angular/build:karma",
29
- "options": {
30
- "tsConfig": "projects/commons/tsconfig.spec.json",
31
- "polyfills": [
32
- "zone.js",
33
- "zone.js/testing"
34
- ]
35
- }
36
- }
37
- }
38
- }
39
- },
40
- "schematics": {
41
- "@schematics/angular:component": {
42
- "type": "component"
43
- },
44
- "@schematics/angular:directive": {
45
- "type": "directive"
46
- },
47
- "@schematics/angular:service": {
48
- "type": "service"
49
- },
50
- "@schematics/angular:guard": {
51
- "typeSeparator": "."
52
- },
53
- "@schematics/angular:interceptor": {
54
- "typeSeparator": "."
55
- },
56
- "@schematics/angular:module": {
57
- "typeSeparator": "."
58
- },
59
- "@schematics/angular:pipe": {
60
- "typeSeparator": "."
61
- },
62
- "@schematics/angular:resolver": {
63
- "typeSeparator": "."
64
- }
65
- }
66
- }
@@ -1,63 +0,0 @@
1
- # Commons
2
-
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
-
9
- ```bash
10
- ng generate component component-name
11
- ```
12
-
13
- For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
-
15
- ```bash
16
- ng generate --help
17
- ```
18
-
19
- ## Building
20
-
21
- To build the library, run:
22
-
23
- ```bash
24
- ng build commons
25
- ```
26
-
27
- This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
-
29
- ### Publishing the Library
30
-
31
- Once the project is built, you can publish your library by following these steps:
32
-
33
- 1. Navigate to the `dist` directory:
34
- ```bash
35
- cd dist/commons
36
- ```
37
-
38
- 2. Run the `npm publish` command to publish your library to the npm registry:
39
- ```bash
40
- npm publish
41
- ```
42
-
43
- ## Running unit tests
44
-
45
- To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
46
-
47
- ```bash
48
- ng test
49
- ```
50
-
51
- ## Running end-to-end tests
52
-
53
- For end-to-end (e2e) testing, run:
54
-
55
- ```bash
56
- ng e2e
57
- ```
58
-
59
- Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
60
-
61
- ## Additional Resources
62
-
63
- For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/commons",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- }
7
- }
@@ -1,12 +0,0 @@
1
- {
2
- "name": "commons",
3
- "version": "0.0.1",
4
- "peerDependencies": {
5
- "@angular/common": "^19.2.0",
6
- "@angular/core": "^19.2.0"
7
- },
8
- "dependencies": {
9
- "tslib": "^2.3.0"
10
- },
11
- "sideEffects": false
12
- }
@@ -1,12 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { BehaviorSubject } from 'rxjs';
3
-
4
- @Injectable({
5
- providedIn: 'root'
6
- })
7
- export class CommonsService {
8
-
9
- public secretMessage = new BehaviorSubject<string>('Empty');
10
-
11
- constructor() { }
12
- }
@@ -1 +0,0 @@
1
- export * from './lib/commons.service';
@@ -1,15 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "../../tsconfig.json",
5
- "compilerOptions": {
6
- "outDir": "../../out-tsc/lib",
7
- "declaration": true,
8
- "declarationMap": true,
9
- "inlineSources": true,
10
- "types": []
11
- },
12
- "exclude": [
13
- "**/*.spec.ts"
14
- ]
15
- }
@@ -1,11 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "./tsconfig.lib.json",
5
- "compilerOptions": {
6
- "declarationMap": false
7
- },
8
- "angularCompilerOptions": {
9
- "compilationMode": "partial"
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "../../tsconfig.json",
5
- "compilerOptions": {
6
- "outDir": "../../out-tsc/spec",
7
- "types": [
8
- "jasmine"
9
- ]
10
- },
11
- "include": [
12
- "**/*.spec.ts",
13
- "**/*.d.ts"
14
- ]
15
- }
package/tsconfig.json DELETED
@@ -1,32 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "compileOnSave": false,
5
- "compilerOptions": {
6
- "paths": {
7
- "commons": [
8
- "./dist/commons"
9
- ]
10
- },
11
- "outDir": "./dist/out-tsc",
12
- "strict": true,
13
- "noImplicitOverride": true,
14
- "noPropertyAccessFromIndexSignature": true,
15
- "noImplicitReturns": true,
16
- "noFallthroughCasesInSwitch": true,
17
- "skipLibCheck": true,
18
- "isolatedModules": true,
19
- "esModuleInterop": true,
20
- "experimentalDecorators": true,
21
- "moduleResolution": "bundler",
22
- "importHelpers": true,
23
- "target": "ES2022",
24
- "module": "ES2022"
25
- },
26
- "angularCompilerOptions": {
27
- "enableI18nLegacyMessageIdFormat": false,
28
- "strictInjectionParameters": true,
29
- "strictInputAccessModifiers": true,
30
- "strictTemplates": true
31
- }
32
- }