add npm link script for SAE lib to be used in other projects

This commit is contained in:
Tykayn 2025-08-08 12:36:41 +02:00 committed by tykayn
parent bb0e44eb55
commit e4031a9768
16 changed files with 1108 additions and 2168 deletions

View file

@ -1,10 +1,10 @@
import { Component, signal } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import {SaeLib} from '../../../my-workspace/projects/sae-lib/src/public-api';
// import {SaeLib} from '@sae-lib/src/public-api';
@Component({
selector: 'app-root',
imports: [RouterOutlet, SaeLib],
imports: [RouterOutlet],
templateUrl: './app.html',
styleUrl: './app.scss'
})

View file

@ -48,4 +48,6 @@
</div>
</div>
</nav>
<app-alert-box></app-alert-box>
</div>

View file

@ -1,4 +1,6 @@
// TODO importer les variables de la librairie
@use '../../../../styles/variables-barrel' as variables;
.top-navigation{
background: #ccc;
background: variables.$bg-color-nav;
color: white;
}

View file

@ -1,11 +1,15 @@
import {Component} from '@angular/core';
import {RouterLink, RouterLinkActive} from '@angular/router';
import {AlertBox} from '../../../../../../my-workspace/projects/sae-lib/alert-box/alert-box';
// import {SaeLib} from 'sae-lib';
@Component({
selector: 'app-top-navigation',
imports: [
RouterLink,
RouterLinkActive
RouterLinkActive,
AlertBox
],
templateUrl: './top-navigation.html',
styleUrl: './top-navigation.scss'