Browse Source

include: bootstrap-icons to style-map

update: angular.json > styles section
pull/18790/head
masumulu28 2 years ago
parent
commit
90ea562752
  1. 6
      modules/openiddict/app/angular/angular.json
  2. 6
      npm/ng-packs/apps/dev-app/project.json
  3. 1
      npm/ng-packs/packages/schematics/src/commands/change-theme/index.ts
  4. 10
      npm/ng-packs/packages/schematics/src/commands/change-theme/style-map.ts
  5. 6
      templates/app-nolayers/angular/angular.json
  6. 6
      templates/app/angular/angular.json

6
modules/openiddict/app/angular/angular.json

@ -105,7 +105,11 @@
"inject": false,
"bundleName": "abp-bundle.rtl"
},
"node_modules/bootstrap-icons/font/bootstrap-icons.css",
{
"input": "node_modules/bootstrap-icons/font/bootstrap-icons.css",
"inject": true,
"bundleName": "bootstrap-icons"
},
"src/styles.scss"
],
"scripts": []

6
npm/ng-packs/apps/dev-app/project.json

@ -108,7 +108,11 @@
"inject": false,
"bundleName": "ng-zorro-antd-tree"
},
"node_modules/bootstrap-icons/font/bootstrap-icons.css",
{
"input": "node_modules/bootstrap-icons/font/bootstrap-icons.css",
"inject": true,
"bundleName": "bootstrap-icons"
},
"apps/dev-app/src/styles.scss"
],
"scripts": []

1
npm/ng-packs/packages/schematics/src/commands/change-theme/index.ts

@ -24,6 +24,7 @@ export default function (_options: ChangeThemeOptions): Rule {
return async () => {
const targetThemeName = _options.name;
const selectedProject = _options.targetProject;
if (!targetThemeName) {
throw new SchematicsException('The theme name does not selected');
}

10
npm/ng-packs/packages/schematics/src/commands/change-theme/style-map.ts

@ -191,6 +191,11 @@ styleMap.set(ThemeOptionsEnum.LeptonX, [
inject: false,
bundleName: 'abp-bundle.rtl',
},
{
input: 'node_modules/bootstrap-icons/font/bootstrap-icons.css',
inject: true,
bundleName: 'bootstrap-icons',
},
]);
styleMap.set(ThemeOptionsEnum.LeptonXLite, [
{
@ -243,6 +248,11 @@ styleMap.set(ThemeOptionsEnum.LeptonXLite, [
inject: false,
bundleName: 'abp-bundle.rtl',
},
{
input: 'node_modules/bootstrap-icons/font/bootstrap-icons.css',
inject: true,
bundleName: 'bootstrap-icons',
},
]);
// the code written by Github co-pilot. thank go-pilot. You are the best sidekick.
export const allStyles = Array.from(styleMap.values()).reduce((acc, val) => [...acc, ...val], []);

6
templates/app-nolayers/angular/angular.json

@ -105,7 +105,11 @@
"inject": false,
"bundleName": "abp-bundle.rtl"
},
"node_modules/bootstrap-icons/font/bootstrap-icons.css",
{
"input": "node_modules/bootstrap-icons/font/bootstrap-icons.css",
"inject": true,
"bundleName": "bootstrap-icons"
},
"src/styles.scss"
],
"scripts": []

6
templates/app/angular/angular.json

@ -105,7 +105,11 @@
"inject": false,
"bundleName": "abp-bundle.rtl"
},
"node_modules/bootstrap-icons/font/bootstrap-icons.css",
{
"input": "node_modules/bootstrap-icons/font/bootstrap-icons.css",
"inject": true,
"bundleName": "bootstrap-icons"
},
"src/styles.scss"
],
"scripts": []

Loading…
Cancel
Save