Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
feat: add lsc manifest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Calpena Rodrigues committed Oct 19, 2020
1 parent 2f9443f commit 21e66f5
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 4 deletions.
3 changes: 2 additions & 1 deletion templates/ui-package/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"styles": [
"projects/<%= appNameSlug %>-app/src/styles.scss"
],
"scripts": []
"scripts": [],
"preserveSymlinks": true
},
"configurations": {
"production": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
"type": "app",
"modules": [
{
name: "@labshare/<%= appNameSlug %>",
path: "@labshare/<%= appNameSlug %>",
manifest: {
defaultIcon: "icon-lsi-info-fill",
entryModule: "<%= appNamePascalCase %>Module",
description: "Description for <%= appNameSlug %>",
consumeEvents: [],
emitEvents: []
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export const generatedMenuItems = [
route: '<%= appNameSlug %>',
click: 'tenant-switch',
text: '<%= appNamePascalCase %>',
icon: 'icon-lsi-edit2'
icon: 'icon-lsi-info-fill'
}
];
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
name: '<%= appNameSlug %>',

description: 'Description for <%= appNameSlug %>',

/* Must be exact Angular Module name */
entryModule: '<%= appNamePascalCase %>Module',

/* Icon to be displayed in left-menu.
See options in https://labshare.github.io/ls-font/ */
defaultIcon: 'icon-lsi-info-fill',

/* Events that the library subscribes to.
Can come from the App or other libraries. */
consumeEvents: [],

/* Events that the library emits.
Can be emitted to app or other libraries */
emitEvents: []
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"dest": "../../dist/<%= appNameSlug %>-lib",
"lib": {
"entryFile": "src/public-api.ts"
}
},
"assets": [
"labshare-manifest.js"
]
}
1 change: 0 additions & 1 deletion templates/ui-package/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
],
"paths": {
"@labshare/<%= appNameSlug %>": [
"dist/<%= appNameSlug %>-lib/labshare-<%= appNameSlug %>",
"dist/<%= appNameSlug %>-lib"
]
}
Expand Down

0 comments on commit 21e66f5

Please sign in to comment.