up angular-basic with lib setup
This commit is contained in:
parent
b9f3e4769e
commit
4d3a3d34b8
147 changed files with 15408 additions and 16030 deletions
3
angular-basic/my-workspace/README.md
Normal file
3
angular-basic/my-workspace/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# SAE Design system
|
||||
|
||||
Le design system Aero utilisé pour les chatbots de la maison.
|
||||
78
angular-basic/my-workspace/angular.json
Normal file
78
angular-basic/my-workspace/angular.json
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"version": 1,
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"sae-lib": {
|
||||
"projectType": "library",
|
||||
"root": "projects/sae-lib",
|
||||
"sourceRoot": "projects/sae-lib/src",
|
||||
"prefix": "sae",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular/build:ng-packagr",
|
||||
"configurations": {
|
||||
"production": {
|
||||
"tsConfig": "projects/sae-lib/tsconfig.lib.prod.json"
|
||||
},
|
||||
"development": {
|
||||
"tsConfig": "projects/sae-lib/tsconfig.lib.json"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular/build:karma",
|
||||
"options": {
|
||||
"tsConfig": "projects/sae-lib/tsconfig.spec.json"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-eslint/builder:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": [
|
||||
"projects/sae-lib/**/*.ts",
|
||||
"projects/sae-lib/**/*.html"
|
||||
],
|
||||
"eslintConfig": "projects/sae-lib/eslint.config.js"
|
||||
}
|
||||
},
|
||||
"storybook": {
|
||||
"builder": "@storybook/angular:start-storybook",
|
||||
"options": {
|
||||
"configDir": "projects/sae-lib/.storybook",
|
||||
"browserTarget": "sae-lib:build",
|
||||
"compodoc": true,
|
||||
"compodocArgs": [
|
||||
"-e",
|
||||
"json",
|
||||
"-d",
|
||||
"projects/sae-lib"
|
||||
],
|
||||
"port": 6006
|
||||
}
|
||||
},
|
||||
"build-storybook": {
|
||||
"builder": "@storybook/angular:build-storybook",
|
||||
"options": {
|
||||
"configDir": "projects/sae-lib/.storybook",
|
||||
"browserTarget": "sae-lib:build",
|
||||
"compodoc": true,
|
||||
"compodocArgs": [
|
||||
"-e",
|
||||
"json",
|
||||
"-d",
|
||||
"projects/sae-lib"
|
||||
],
|
||||
"outputDir": "storybook-static"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"schematicCollections": [
|
||||
"angular-eslint"
|
||||
]
|
||||
}
|
||||
}
|
||||
2
angular-basic/my-workspace/dist/sae-lib/.npmignore
vendored
Normal file
2
angular-basic/my-workspace/dist/sae-lib/.npmignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Nested package.json's are only needed for development.
|
||||
**/package.json
|
||||
64
angular-basic/my-workspace/dist/sae-lib/README.md
vendored
Normal file
64
angular-basic/my-workspace/dist/sae-lib/README.md
vendored
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# SaeLib
|
||||
|
||||
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.1.0.
|
||||
|
||||
## Code scaffolding
|
||||
|
||||
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
||||
|
||||
```bash
|
||||
ng generate component component-name
|
||||
```
|
||||
|
||||
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
||||
|
||||
```bash
|
||||
ng generate --help
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
To build the library, run:
|
||||
|
||||
```bash
|
||||
ng build sae-lib
|
||||
```
|
||||
|
||||
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
||||
|
||||
### Publishing the Library
|
||||
|
||||
Once the project is built, you can publish your library by following these steps:
|
||||
|
||||
1. Navigate to the `dist` directory:
|
||||
```bash
|
||||
cd dist/sae-lib
|
||||
```
|
||||
|
||||
2. Run the `npm publish` command to publish your library to the npm registry:
|
||||
```bash
|
||||
npm publish
|
||||
```
|
||||
|
||||
## Running unit tests
|
||||
|
||||
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
||||
|
||||
```bash
|
||||
ng test
|
||||
```
|
||||
|
||||
## Running end-to-end tests
|
||||
|
||||
For end-to-end (e2e) testing, run:
|
||||
|
||||
```bash
|
||||
ng e2e
|
||||
```
|
||||
|
||||
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
||||
|
||||
## Additional Resources
|
||||
|
||||
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.
|
||||
|
||||
30
angular-basic/my-workspace/dist/sae-lib/fesm2022/sae-lib.mjs
vendored
Normal file
30
angular-basic/my-workspace/dist/sae-lib/fesm2022/sae-lib.mjs
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import * as i0 from '@angular/core';
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
class SaeLib {
|
||||
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: SaeLib, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
||||
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.3", type: SaeLib, isStandalone: true, selector: "lib-sae-lib", ngImport: i0, template: `
|
||||
<p>
|
||||
sae-lib works!
|
||||
</p>
|
||||
`, isInline: true, styles: [""] });
|
||||
}
|
||||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: SaeLib, decorators: [{
|
||||
type: Component,
|
||||
args: [{ selector: 'lib-sae-lib', imports: [], template: `
|
||||
<p>
|
||||
sae-lib works!
|
||||
</p>
|
||||
` }]
|
||||
}] });
|
||||
|
||||
/*
|
||||
* Public API Surface of sae-lib
|
||||
*/
|
||||
|
||||
/**
|
||||
* Generated bundle index. Do not edit.
|
||||
*/
|
||||
|
||||
export { SaeLib };
|
||||
//# sourceMappingURL=sae-lib.mjs.map
|
||||
1
angular-basic/my-workspace/dist/sae-lib/fesm2022/sae-lib.mjs.map
vendored
Normal file
1
angular-basic/my-workspace/dist/sae-lib/fesm2022/sae-lib.mjs.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"sae-lib.mjs","sources":["../../../projects/sae-lib/src/lib/sae-lib.ts","../../../projects/sae-lib/src/public-api.ts","../../../projects/sae-lib/src/sae-lib.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-sae-lib',\n imports: [],\n template: `\n <p>\n sae-lib works!\n </p>\n `,\n styles: ``\n})\nexport class SaeLib {\n\n}\n","/*\n * Public API Surface of sae-lib\n */\n\nexport * from './lib/sae-lib';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAYa,MAAM,CAAA;uGAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAN,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAM,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAPP;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAGU,MAAM,EAAA,UAAA,EAAA,CAAA;kBAVlB,SAAS;+BACE,aAAa,EAAA,OAAA,EACd,EAAE,EAAA,QAAA,EACD;;;;AAIT,EAAA,CAAA,EAAA;;;ACTH;;AAEG;;ACFH;;AAEG;;;;"}
|
||||
8
angular-basic/my-workspace/dist/sae-lib/index.d.ts
vendored
Normal file
8
angular-basic/my-workspace/dist/sae-lib/index.d.ts
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import * as i0 from '@angular/core';
|
||||
|
||||
declare class SaeLib {
|
||||
static ɵfac: i0.ɵɵFactoryDeclaration<SaeLib, never>;
|
||||
static ɵcmp: i0.ɵɵComponentDeclaration<SaeLib, "lib-sae-lib", never, {}, {}, never, never, true, never>;
|
||||
}
|
||||
|
||||
export { SaeLib };
|
||||
30
angular-basic/my-workspace/dist/sae-lib/package.json
vendored
Normal file
30
angular-basic/my-workspace/dist/sae-lib/package.json
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"name": "sae-lib",
|
||||
"version": "0.0.1",
|
||||
"peerDependencies": {
|
||||
"@angular/common": "^20.1.0",
|
||||
"@angular/core": "^20.1.0",
|
||||
"@angular/forms": "^20.1.0",
|
||||
"@ngrx/store": "^20.0.0",
|
||||
"@ngrx/store-devtools": "^20.0.0",
|
||||
"bulma": "^1.0.4",
|
||||
"remixicon": "^4.6.0",
|
||||
"shepherd.js": "^14.5.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"exports": {
|
||||
".": {
|
||||
"sass": "./src/styles/index.scss",
|
||||
"types": "./index.d.ts",
|
||||
"default": "./fesm2022/sae-lib.mjs"
|
||||
},
|
||||
"./package.json": {
|
||||
"default": "./package.json"
|
||||
}
|
||||
},
|
||||
"module": "fesm2022/sae-lib.mjs",
|
||||
"typings": "index.d.ts"
|
||||
}
|
||||
46
angular-basic/my-workspace/eslint.config.js
Normal file
46
angular-basic/my-workspace/eslint.config.js
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
|
||||
import storybook from "eslint-plugin-storybook";
|
||||
|
||||
// @ts-check
|
||||
const eslint = require("@eslint/js");
|
||||
const tseslint = require("typescript-eslint");
|
||||
const angular = require("angular-eslint");
|
||||
|
||||
module.exports = tseslint.config(
|
||||
{
|
||||
files: ["**/*.ts"],
|
||||
extends: [
|
||||
eslint.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
...tseslint.configs.stylistic,
|
||||
...angular.configs.tsRecommended,
|
||||
],
|
||||
processor: angular.processInlineTemplates,
|
||||
rules: {
|
||||
"@angular-eslint/directive-selector": [
|
||||
"error",
|
||||
{
|
||||
type: "attribute",
|
||||
prefix: "lib",
|
||||
style: "camelCase",
|
||||
},
|
||||
],
|
||||
"@angular-eslint/component-selector": [
|
||||
"error",
|
||||
{
|
||||
type: "element",
|
||||
prefix: "lib",
|
||||
style: "kebab-case",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["**/*.html"],
|
||||
extends: [
|
||||
...angular.configs.templateRecommended,
|
||||
...angular.configs.templateAccessibility,
|
||||
],
|
||||
rules: {},
|
||||
}
|
||||
);
|
||||
14671
angular-basic/my-workspace/package-lock.json
generated
Normal file
14671
angular-basic/my-workspace/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
52
angular-basic/my-workspace/package.json
Normal file
52
angular-basic/my-workspace/package.json
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
"name": "my-workspace",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test",
|
||||
"lint": "ng lint"
|
||||
},
|
||||
"prettier": {
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.html",
|
||||
"options": {
|
||||
"parser": "angular"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"aws-amplify": "^6.15.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular/build": "^20.1.5",
|
||||
"@angular/cli": "^20.1.4",
|
||||
"@angular/common": "^20.1.0",
|
||||
"@angular/compiler": "^20.1.0",
|
||||
"@angular/compiler-cli": "^20.1.0",
|
||||
"@angular/core": "^20.1.0",
|
||||
"@angular/forms": "^20.1.0",
|
||||
"@angular/platform-browser": "^20.1.0",
|
||||
"@angular/router": "^20.1.0",
|
||||
"@types/jasmine": "~5.1.0",
|
||||
"angular-eslint": "20.1.1",
|
||||
"eslint": "^9.29.0",
|
||||
"jasmine-core": "~5.8.0",
|
||||
"karma": "~6.4.0",
|
||||
"karma-chrome-launcher": "~3.2.0",
|
||||
"karma-coverage": "~2.2.0",
|
||||
"karma-jasmine": "~5.1.0",
|
||||
"karma-jasmine-html-reporter": "~2.1.0",
|
||||
"ng-packagr": "^20.1.0",
|
||||
"rxjs": "~7.8.0",
|
||||
"sae-lib": "file:../my-workspace/projects/sae-lib",
|
||||
"tslib": "^2.3.0",
|
||||
"typescript": "~5.8.2",
|
||||
"typescript-eslint": "8.34.1"
|
||||
}
|
||||
}
|
||||
39
angular-basic/my-workspace/tsconfig.json
Normal file
39
angular-basic/my-workspace/tsconfig.json
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
||||
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
||||
{
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"noImplicitOverride": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"noImplicitReturns": true,
|
||||
"paths": {
|
||||
"sae-lib": [
|
||||
"./dist/sae-lib"
|
||||
]
|
||||
},
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"skipLibCheck": true,
|
||||
"isolatedModules": true,
|
||||
"experimentalDecorators": true,
|
||||
"importHelpers": true,
|
||||
"target": "ES2022",
|
||||
"module": "preserve"
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"enableI18nLegacyMessageIdFormat": false,
|
||||
"strictInjectionParameters": true,
|
||||
"strictInputAccessModifiers": true,
|
||||
"typeCheckHostBindings": true,
|
||||
"strictTemplates": true
|
||||
},
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./projects/sae-lib/tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "./projects/sae-lib/tsconfig.spec.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue