generated from cuioss/cui-java-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
501 changed files
with
22,018 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
|
Oops, something went wrong.