Skip to content

Commit

Permalink
adding sass bootstrap module
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Jul 26, 2023
1 parent c6b2983 commit 9a5f8f7
Show file tree
Hide file tree
Showing 501 changed files with 22,018 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>de.cuioss.jsf</groupId>
<artifactId>cui-jsf-bootstrap-css</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>de.cuioss.jsf</groupId>
<artifactId>cui-jsf-test</artifactId>
Expand Down
31 changes: 31 additions & 0 deletions web-modules/cui-jsf-bootstrap-css/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = function (grunt) {

// Keep in sync with maven-property 'plugin.resources.cui_css.target'
const sassOutput = 'target/sass_target/**.*';
const sass = require('node-sass');

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: [sassOutput],
sass: {
options: {
implementation: sass,
sourceMap: true,
style: 'expanded'
},
dist: {
files: {
'target/sass_target/application-default.css': 'src/main/scss/com.icw.portal.css/application-default.scss', // 'destination': 'source'
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-sass');

// Default task(s).
grunt.registerTask('default', ['clean', 'sass']);

};
38 changes: 38 additions & 0 deletions web-modules/cui-jsf-bootstrap-css/README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
= cui javascript module

== Status

image:https://github.com/cuioss/cui-jsf-components/actions/workflows/maven.yml/badge.svg[Java CI with Maven,link=https://github.com/cuioss/cui-jsf-components/actions/workflows/maven.yml]
image:http://img.shields.io/:license-apache-blue.svg[License,link=http://www.apache.org/licenses/LICENSE-2.0.html]
image:https://maven-badges.herokuapp.com/maven-central/io.github.cuioss.jsf/cui-jsf-bootstrap-css/badge.svg[Maven Central,link=https://maven-badges.herokuapp.com/maven-central/io.github.cuioss.jsf/cui-jsf-bootstrap-css]


== What is it?

The javascript Module for the cui jsf components. The resulting css-files can be found at:

`target/classes/META-INF/resources/de.cuioss.portal.css`

=== Maven Coordinates

[source,xml]
----
<dependency>
<groupId>de.cuioss.jsf</groupId>
<artifactId>cui-jsf-bootstrap-css</artifactId>
</dependency>
----

== Build-Structure

In contrast to other cuioss modules, this module relies entirely on nodes.js / grunt creating the csss

using the nodes.js/grunt stack.

Therefore the development can completely take place in specialized tools like VS-Code or similar.

The maven build again calls the grunt task using https://github.com/eirslett/frontend-maven-plugin[frontend-maven-plugin]
that results in the files being created under `/target/sass_target/`.
These files will be copied by maven to the appropriate directory and package to a jar-file.


Loading

0 comments on commit 9a5f8f7

Please sign in to comment.