Skip to content

Commit

Permalink
Extend Helium
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleb Gorelov committed Apr 10, 2020
1 parent 43d57ba commit 85ae53f
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.gradle
Expand Up @@ -150,6 +150,21 @@ configure(webModule) {
appName = "${modulePrefix}"
appJars(modulePrefix + '-global', modulePrefix + '-web')
}

task buildScssThemes(type: CubaWebScssThemeCreation)

task deployThemes(type: CubaDeployThemeTask, dependsOn: buildScssThemes)

assemble.dependsOn buildScssThemes

task themesJar(type: Jar) {
from file('themes')
classifier = 'themes'
}

artifacts {
archives themesJar
}
}

task undeploy(type: Delete, dependsOn: ":${modulePrefix}-web:cleanConf") {
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions modules/web/themes/helium/com.company.demo/app-component.scss
@@ -0,0 +1,5 @@
@import "helium-ext";

@mixin com_company_demo {
@include com_company_demo-helium-ext;
}
@@ -0,0 +1 @@
/* Override global theme constants or define new ones here */
3 changes: 3 additions & 0 deletions modules/web/themes/helium/com.company.demo/helium-ext.scss
@@ -0,0 +1,3 @@
/* Define your theme modifications inside next mixin */
@mixin com_company_demo-helium-ext {
}
Binary file added modules/web/themes/helium/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions modules/web/themes/helium/styles.scss
@@ -0,0 +1,11 @@
@import "helium-defaults";
@import "com.company.demo/helium-ext-defaults";
@import "app-components";
@import "com.company.demo/helium-ext";

.helium {
// include auto-generated app components SCSS
@include app_components;

@include com_company_demo-helium-ext;
}

0 comments on commit 85ae53f

Please sign in to comment.