307 Commits

Author SHA1 Message Date
garronej
59d47592d9 Fix other scripts 2023-03-19 16:58:26 +01:00
garronej
b573bc20b5 Fix 2023-03-19 16:37:35 +01:00
garronej
7ad9d7b291 Remove all unessesary relative import 2023-03-19 16:28:38 +01:00
garronej
dbbfa07639 Feature new script: Eject-keycloak-page 2023-03-19 15:52:41 +01:00
garronej
2eccc86e83 Remove eventEmitter warning 2023-03-18 19:02:17 +01:00
garronej
43e4dd6bb6 Fix build for real 2023-03-18 16:17:33 +01:00
garronej
0040464ca1 Move lib up one level 2023-03-16 22:43:09 +01:00
garronej
79997efbb6 First commit towars supporting account theme 2023-03-16 22:13:46 +01:00
Michael Kreuzmayr
5dc692809c Fix start container script paths for windows 2023-03-15 10:07:01 +01:00
Waldemar Reusch
6fd0c7726c Merge branch 'lordvlad/issue257' of github.com:InseeFrLab/keycloakify into lordvlad/issue257
* 'lordvlad/issue257' of github.com:InseeFrLab/keycloakify:
  Only test build on LTS node version
  Update dependency evt to ^2.4.15
  Update README.md
  Bump version
  Avoid passing unessesary realm values in the error.ftl page
2023-03-08 10:25:10 +01:00
Waldemar Reusch
819e045811 feat(proxy): respect XDG_CACHE_HOME if set 2023-03-08 10:24:52 +01:00
Waldemar Reusch
df9f6fd7fd
Merge branch 'main' into lordvlad/issue257 2023-03-07 17:16:24 +01:00
garronej
23fedbf94a Avoid passing unessesary realm values in the error.ftl page 2023-03-07 17:07:45 +01:00
Waldemar Reusch
851dcd5bf7 Run keycloakify behind corporate proxy
Fixes #257

Use make-fetch-happen for the download step. This lib will use `PROXY`
and `HTTPS_PROXY` and `NO_PROXY` env vars out of the box.

Additionally we'll try and get proxy config from npm. Unfortunately,
the most straightforward options is to call npm config to do this, since
npm  config is not easily extracted as a lib and we don't want to
replicate the resolution mechanisms.
2023-03-07 16:43:12 +01:00
garronej
5cfe78dcd1 Update prettier config 2023-02-26 15:39:03 +01:00
garronej
837501c948 Refactor 2023-02-25 18:26:39 +01:00
garronej
b300966fa8 Refactor and get rid of unessesary dependencies 2023-02-25 18:11:23 +01:00
garronej
6cd231426d Import Blob from node builtins 2023-02-07 01:32:20 +01:00
garronej
08e26600fd Use keycloakify as bundler by default 2023-02-05 14:58:38 +01:00
Waldemar Reusch
80618bbd9c
Merge branch 'main' into mvn-begone 2023-02-05 13:36:52 +01:00
Waldemar Reusch
38ad47ea75 use hand-crafted promise, pipeline does not resolve properly 2023-02-05 13:32:24 +01:00
Waldemar Reusch
45ed359bef fix keycloak theme source path for internal bundler 2023-02-05 13:31:34 +01:00
Waldemar Reusch
fcc26c3e7a now that main is a promise, we shuold catch errors 2023-02-05 13:31:03 +01:00
Waldemar Reusch
d4ff6b1f40 fix: bundler fix missing directory 2023-02-05 12:59:05 +01:00
Waldemar Reusch
557de34eea fix: bundler fix missing change 2023-02-05 12:56:01 +01:00
Waldemar Reusch
e034dc4d90 Merge branch 'mvn-begone' of github.com:lordvlad/keycloakify into mvn-begone
* 'mvn-begone' of github.com:lordvlad/keycloakify:
  fix(deps): update garronej_modules_update
  Update README.md
  Rollback via update
  Bump version
  keycloak test script: use env to launch bash
  fix(deps): update dependency powerhooks to ^0.22.0
  Update dependency powerhooks to ^0.21.0
  Relase candidate
  fmt
  Update README.md
  Bump version
  Update src/bin/tools/downloadAndUnzip.ts
  Bump version
  #232
  Bump version
  keycloak test script: use env to launch bash
  fix(deps): update dependency powerhooks to ^0.22.0
  Update dependency powerhooks to ^0.21.0
2023-02-05 12:35:15 +01:00
Waldemar Reusch
cfbd1e5e4b fix(bundler): fix type mismatch introduced in last-minute 'fixes' 2023-02-05 12:34:48 +01:00
garronej
1a9f6d10d4 Actually run the top level await 2023-02-04 20:50:53 +01:00
garronej
64ab400af5 Temporarly restore mvn as default bundler 2023-02-04 20:38:50 +01:00
garronej
243fbd4dc9 Set the artifactId name in the build option 2023-02-04 19:36:42 +01:00
garronej
4e6a290693 Make new node based bundler the default 2023-02-04 18:02:39 +01:00
garronej
ac05d529ca Minor fixes 2023-02-04 17:44:02 +01:00
Waldemar Reusch
b38d79004a
Merge branch 'main' into mvn-begone 2023-02-03 14:42:05 +01:00
Waldemar Reusch
f4a547df11 introduce options to choose a bundle strategy
Pick from 'none', 'keycloakify' or 'mvn', default to 'mvn'. 'none' will
not create a jar, 'keycloakify' will create a jar file using only tools
available to native nodejs, no additional  system library required.
Choosing 'mvn' will behave as before, starting maven in a subprocess.

The bundler can be chosen in `package.json` or via `KEYCLOAKIFY_BUNDLER`
env var.

This commit also adds `KEYCLOAKIFY_GROUP_ID` and
`KEYCLOAKIFY_ARTIFACT_ID` env vars, which will be used to
define group id and artifact id in pom.xml and pom.properties, if given.
2023-02-03 14:28:06 +01:00
Waldemar Reusch
2b87c35058 introduce utils for creating a jar archive 2023-02-03 14:06:24 +01:00
Waldemar Reusch
b11833e450 fix typo 2023-02-03 13:48:32 +01:00
Joseph Garrone
564e1422ac
Merge pull request #226 from lordvlad/fix-win-build
windows compatibility
2023-01-27 00:20:12 +01:00
Waldemar Reusch
8ed4ed3fc4
Update src/bin/tools/downloadAndUnzip.ts 2023-01-26 22:29:51 +01:00
Waldemar Reusch
29fe4566a7 style: remove unused variable 2023-01-26 22:20:16 +01:00
Waldemar Reusch
ae3bfb28ed refactor: follow suggesion to make methods read a bit more sync 2023-01-26 22:00:31 +01:00
garronej
14aab97d8a Merge branch 'main' of https://github.com/InseeFrLab/keycloakify 2023-01-26 10:50:01 +01:00
garronej
f338dcbeed #232 2023-01-26 10:48:24 +01:00
rome-user
84ca9e6b81
keycloak test script: use env to launch bash
This minor change allows users to use the latest version of `bash` on Mac OS.

`/bin/bash` is very old on Mac OS, and many users will have `bash` from MacPorts or Homebrew. This change allows such users to be able to use the newer `bash` installation.
2023-01-22 17:28:27 -08:00
Waldemar Reusch
1a0e05d073 rewrite download and unzip to use nodejs native methods 2023-01-16 14:42:20 +01:00
Waldemar Reusch
85cecc9811 fix(build): _properly_ fix bin paths 2023-01-12 22:56:02 +01:00
Waldemar Reusch
9899f742a8 fix(build): also rewrite bin paths in dist/package.json 2023-01-12 22:51:48 +01:00
Waldemar Reusch
b5484740b7 fix(build): remove dependency on *nix chown 2023-01-12 22:27:22 +01:00
garronej
6fb936798e https://github.com/InseeFrLab/keycloakify/issues/217#issuecomment-1376849781 2023-01-10 09:05:19 +01:00
garronej
49b87777f9 Fmt 2023-01-08 14:57:18 +01:00
Waldemar Reusch
d4523bb1e6
Merge branch 'main' into patch-1 2023-01-08 12:22:14 +01:00