Skip to content

Commit

Permalink
feat: added components-experimental section (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
artembelik committed Sep 6, 2024
1 parent c87daed commit ef902f0
Show file tree
Hide file tree
Showing 11 changed files with 111 additions and 6 deletions.
30 changes: 30 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,36 @@
}
}
},
"components-experimental": {
"projectType": "library",
"root": "packages/components-experimental",
"sourceRoot": "packages/components-experimental",
"architect": {
"packagr": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "packages/components-experimental/tsconfig.lib.json",
"project": "packages/components-experimental/ng-package.json"
}
},
"build": {
"builder": "@koobiq/builders:packager",
"options": {
"buildTarget": "packagr",
"versionPlaceholder": "{{VERSION}}",
"ngVersionPlaceholder": "{{NG_VERSION}}"
}
},
"test": {
"builder": "@angular-builders/jest:run",
"options": {
"roots": ["packages/components-experimental"],
"configPath": "../../jest.config.js",
"tsConfig": "../../tsconfig.spec.json"
}
}
}
},
"angular-moment-adapter": {
"projectType": "library",
"root": "packages/angular-moment-adapter",
Expand Down
11 changes: 6 additions & 5 deletions docs/guides/directory-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@
### packages

```
├─ cdk ················· component development kit
├─ components ·········· исходный код компонентов
├─ components-dev ······ внутренние dev примеры
└─ docs-examples ······· примеры для сайта документации
├─ cdk ························· Component Development Kit
├─ components ·················· Исходный код компонентов
├─ components-dev ·············· Внутренние dev примеры
├─ components-experimental ····· Прототипы и эксперименты
└─ docs-examples ··············· Примеры для сайта документации
```

#### @koobiq/button

```
└─ button ···························· имя компоненты
└─ button ···························· Имя компонента
├─ _button-base.scss ············· Базовые стили компонента (включают button.scss)
├─ _button-theme.scss ············ Стили темы & типографики (включают to _all-themes & _all-typography)
├─ button.component.html ········· Шаблон компонента
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
"build:angular-moment-adapter": "ng build angular-moment-adapter",
"build:angular-luxon-adapter": "ng build angular-luxon-adapter",
"build:components": "ng build components",
"build:components-experimental": "ng build components-experimental",
"build:docs-examples-module": "ts-node --project ./tools/example-module/tsconfig.json ./tools/example-module/index.ts",
"build:docs-examples": "ng build docs-examples",
"build:cli": "rimraf dist/cli && rollup -c ./packages/cli/rollup.config.js && node ./packages/cli/scripts/copy-meta-to-dist.js",
Expand Down Expand Up @@ -250,6 +251,7 @@
"-----Unit Tests-----": "-------------------------------------------------------------------------------------",
"unit:cdk": "ng test cdk",
"unit:components": "ng test components && ng run components:karma-test",
"unit:components-experimental": "ng test components-experimental",
"unit:angular-moment-adapter": "ng test angular-moment-adapter",
"unit:angular-luxon-adapter": "ng test angular-luxon-adapter",
"unit:schematics": "jest --roots packages/schematics",
Expand Down
3 changes: 3 additions & 0 deletions packages/components-experimental/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Components Experimental

This package contains prototypes and experiments in development for Koobiq. Nothing in this package is NOT stable or production ready.
1 change: 1 addition & 0 deletions packages/components-experimental/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './public-api';
7 changes: 7 additions & 0 deletions packages/components-experimental/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/components-experimental",
"lib": {
"entryFile": "index.ts"
}
}
30 changes: 30 additions & 0 deletions packages/components-experimental/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "@koobiq/components-experimental",
"version": "{{VERSION}}",
"description": "koobiq",
"repository": {
"type": "git",
"url": "https://github.com/koobiq/angular-components.git"
},
"keywords": [
"angular",
"component",
"service",
"directive",
"development",
"kit",
"koobiq",
"experimental"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/koobiq/angular-components/issues"
},
"homepage": "https://github.com/koobiq/angular-components#readme",
"peerDependencies": {
"@angular/cdk": "{{NG_VERSION}}"
},
"dependencies": {
"tslib": "^2.6.2"
}
}
1 change: 1 addition & 0 deletions packages/components-experimental/public-api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
21 changes: 21 additions & 0 deletions packages/components-experimental/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"types": [
"node",
"jest"
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,
"strictTemplates": true,
"flatModuleId": "@koobiq/components-experimental",
"skipTemplateCodegen": true,
"fullTemplateTypeCheck": true,
"compilationMode": "partial"
},
"include": [
"**/*.ts"
]
}
9 changes: 9 additions & 0 deletions packages/components-experimental/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"declaration": true,
"inlineSources": true,
"types": []
}
}
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"bugs": {
"url": "https://github.com/koobiq/angular-components/issues"
},
"homepage": "https://github.com/koobiq/angular-components/blob/master/README.md",
"homepage": "https://github.com/koobiq/angular-components#readme",
"peerDependencies": {
"@angular/cdk": "{{NG_VERSION}}",
"@angular/forms": "{{NG_VERSION}}",
Expand Down

0 comments on commit ef902f0

Please sign in to comment.