keycloak-scim/Gruntfile.js
dependabot[bot] 035ca62f63 Bump snowpack from 2.11.1 to 2.18.5
Bumps [snowpack](https://github.com/snowpackjs/snowpack) from 2.11.1 to 2.18.5.
- [Release notes](https://github.com/snowpackjs/snowpack/releases)
- [Changelog](https://github.com/snowpackjs/snowpack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/snowpackjs/snowpack/commits)

---
updated-dependencies:
- dependency-name: snowpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-08 13:30:42 +02:00

29 lines
716 B
JavaScript

const path = require("path");
module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.initConfig({
// …
copy: {
main: {
cwd: "./node_modules/@patternfly/patternfly/assets/",
src: ["**/*", '!**/fontawesome/**'],
dest: "public/assets/",
expand: true,
},
sso: {
expand: true,
cwd: "./public/",
src: "rh-sso-*",
dest: "public",
rename: function (dest, matchedSrcPath) {
return path.join(dest, matchedSrcPath.substring("rh-sso-".length));
},
},
},
});
grunt.registerTask("default", ["copy:main"]);
grunt.registerTask("switch-rh-sso", ["copy:sso"]);
};