@madgex/fert 5.0.4 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/README.md +4 -5
  2. package/bin/cli.js +9 -30
  3. package/bin/commands/_service-command-bootstrap.js +6 -13
  4. package/bin/commands/build-tasks/build-tokens.js +8 -22
  5. package/bin/commands/build-tasks/bundle-entry.js +1 -4
  6. package/bin/commands/build.js +1 -0
  7. package/bin/commands/configs.js +17 -53
  8. package/bin/commands/dev-server.js +5 -14
  9. package/bin/commands/init.js +27 -117
  10. package/bin/commands/publish-tasks/asset-store-uploader.js +2 -5
  11. package/bin/commands/publish.js +10 -30
  12. package/bin/utils/configs.js +55 -95
  13. package/bin/utils/cpid-lookup.js +2 -2
  14. package/bin/utils/cpid-matches-git-remote.js +5 -10
  15. package/bin/utils/getSchemaMeta.js +1 -1
  16. package/bin/utils/index.js +14 -25
  17. package/bin/utils/lookup-cf-distribution-ids.js +2 -7
  18. package/bin/utils/resolve-external-assets.js +6 -15
  19. package/constants.js +3 -17
  20. package/package.json +17 -26
  21. package/repo-template/fert.config.js +3 -0
  22. package/repo-template/package.json +22 -0
  23. package/{repo-templates/template-basic → repo-template/services/jobseekers-frontend}/brand.json +6 -3
  24. package/repo-template/services/jobseekers-frontend/fert.service.config.js +7 -0
  25. package/repo-template/services/jobseekers-frontend/public/icons/user.svg +4 -0
  26. package/repo-template/services/jobseekers-frontend/public/images/favicon.ico +0 -0
  27. package/repo-template/services/jobseekers-frontend/public/images/fred.jpeg +0 -0
  28. package/repo-template/services/jobseekers-frontend/src/css/styles.scss +1152 -0
  29. package/repo-template/services/jobseekers-frontend/src/index.js +9 -0
  30. package/repo-template/services/jobseekers-frontend/src/js/recruiter-link.js +25 -0
  31. package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/context/footer-nav.njk +26 -26
  32. package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/context/main-nav.njk +40 -31
  33. package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/context/user-nav.njk +16 -16
  34. package/repo-template/services/jobseekers-frontend/templates/footer.njk +20 -0
  35. package/repo-template/services/jobseekers-frontend/templates/header.njk +74 -0
  36. package/repo-template/services/jobseekers-frontend/templates/includes/footer-nav.njk +15 -0
  37. package/repo-template/services/jobseekers-frontend/templates/includes/main-nav.njk +19 -0
  38. package/repo-template/services/jobseekers-frontend/templates/includes/user-nav/authenticated.njk +34 -0
  39. package/repo-template/services/jobseekers-frontend/templates/includes/user-nav/unauthenticated.njk +9 -0
  40. package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/translations/en.njk +1 -0
  41. package/server/index.js +2 -3
  42. package/server/plugins/hapi-vite.js +4 -2
  43. package/server/routes/views.js +1 -0
  44. package/server/view-manager.js +2 -5
  45. package/.prettierrc.js +0 -8
  46. package/bin/commands/configs.test.js +0 -182
  47. package/bin/utils/configs.test.js +0 -53
  48. package/bin/utils/persistent-cache-with-ttl.test.js +0 -42
  49. package/bin/utils/resolve-external-assets.test.js +0 -98
  50. package/eslint.config.mjs +0 -53
  51. package/repo-templates/globals/fert.config.js +0 -9
  52. package/repo-templates/template-basic/_gitignore +0 -6
  53. package/repo-templates/template-basic/package.json +0 -13
  54. package/repo-templates/template-basic/public/favicon.ico +0 -0
  55. package/repo-templates/template-basic/src/css/styles.scss +0 -11
  56. package/repo-templates/template-basic/src/index.js +0 -3
  57. package/repo-templates/template-basic/templates/footer.njk +0 -14
  58. package/repo-templates/template-basic/templates/header.njk +0 -14
  59. package/repo-templates/template-bigworkbag/_gitignore +0 -6
  60. package/repo-templates/template-bigworkbag/brand.json +0 -21
  61. package/repo-templates/template-bigworkbag/package.json +0 -13
  62. package/repo-templates/template-bigworkbag/public/favicon.ico +0 -0
  63. package/repo-templates/template-bigworkbag/public/fonts/mdgx-icons.eot +0 -0
  64. package/repo-templates/template-bigworkbag/public/fonts/mdgx-icons.svg +0 -71
  65. package/repo-templates/template-bigworkbag/public/fonts/mdgx-icons.ttf +0 -0
  66. package/repo-templates/template-bigworkbag/public/fonts/mdgx-icons.woff +0 -0
  67. package/repo-templates/template-bigworkbag/public/fonts/my-font.woff +0 -1
  68. package/repo-templates/template-bigworkbag/public/images/logo.png +0 -0
  69. package/repo-templates/template-bigworkbag/public/images/user-menu-pointer.svg +0 -4
  70. package/repo-templates/template-bigworkbag/src/css/breakpoints.scss +0 -17
  71. package/repo-templates/template-bigworkbag/src/css/clicky-menu.scss +0 -52
  72. package/repo-templates/template-bigworkbag/src/css/desktop-main-nav.scss +0 -25
  73. package/repo-templates/template-bigworkbag/src/css/desktop-user-nav.scss +0 -127
  74. package/repo-templates/template-bigworkbag/src/css/footer.scss +0 -77
  75. package/repo-templates/template-bigworkbag/src/css/header-top.scss +0 -29
  76. package/repo-templates/template-bigworkbag/src/css/leaderboard-ad.scss +0 -22
  77. package/repo-templates/template-bigworkbag/src/css/mobile-main-nav.scss +0 -68
  78. package/repo-templates/template-bigworkbag/src/css/mobile-user-nav.scss +0 -49
  79. package/repo-templates/template-bigworkbag/src/css/reset.scss +0 -91
  80. package/repo-templates/template-bigworkbag/src/css/styles.scss +0 -18
  81. package/repo-templates/template-bigworkbag/src/css/top-bar.scss +0 -13
  82. package/repo-templates/template-bigworkbag/src/css/typography.scss +0 -20
  83. package/repo-templates/template-bigworkbag/src/css/util.scss +0 -28
  84. package/repo-templates/template-bigworkbag/src/css/variables.scss +0 -9
  85. package/repo-templates/template-bigworkbag/src/index.js +0 -3
  86. package/repo-templates/template-bigworkbag/src/js/clicky-menus.js +0 -178
  87. package/repo-templates/template-bigworkbag/src/js/no-js.js +0 -10
  88. package/repo-templates/template-bigworkbag/templates/footer.njk +0 -68
  89. package/repo-templates/template-bigworkbag/templates/header.njk +0 -54
  90. package/repo-templates/template-bigworkbag/templates/includes/desktop-main-nav-items.njk +0 -18
  91. package/repo-templates/template-bigworkbag/templates/includes/desktop-user-nav/loggedin-items.njk +0 -28
  92. package/repo-templates/template-bigworkbag/templates/includes/desktop-user-nav/loggedout-items.njk +0 -9
  93. package/repo-templates/template-bigworkbag/templates/includes/desktop-user-nav/submenu-items.njk +0 -18
  94. package/repo-templates/template-bigworkbag/templates/includes/desktop-user-nav/user-nav.njk +0 -24
  95. package/repo-templates/template-bigworkbag/templates/includes/dev-console-context.njk +0 -7
  96. package/repo-templates/template-bigworkbag/templates/includes/mobile-main-nav-items.njk +0 -25
  97. package/repo-templates/template-bigworkbag/templates/includes/mobile-user-nav/loggedin-items.njk +0 -33
  98. package/repo-templates/template-bigworkbag/templates/includes/mobile-user-nav/loggedout-items.njk +0 -16
  99. package/repo-templates/template-bigworkbag/templates/includes/mobile-user-nav/user-nav.njk +0 -24
  100. package/repo-templates/template-bigworkbag/templates/svgs/arrow-down.svg +0 -3
  101. package/repo-templates/template-bigworkbag/templates/svgs/arrow-left.svg +0 -3
  102. package/repo-templates/template-bigworkbag/templates/svgs/arrow-right.svg +0 -3
  103. package/repo-templates/template-bigworkbag/templates/svgs/arrow-up.svg +0 -3
  104. package/repo-templates/template-bigworkbag/templates/svgs/cart.svg +0 -3
  105. package/repo-templates/template-bigworkbag/templates/svgs/facebook.svg +0 -3
  106. package/repo-templates/template-bigworkbag/templates/svgs/linkedin.svg +0 -3
  107. package/repo-templates/template-bigworkbag/templates/svgs/profile.svg +0 -5
  108. package/repo-templates/template-bigworkbag/templates/svgs/star-filled.svg +0 -3
  109. package/repo-templates/template-bigworkbag/templates/svgs/star-outline.svg +0 -3
  110. package/repo-templates/template-bigworkbag/templates/svgs/twitter.svg +0 -3
  111. package/repo-templates/template-bigworkbag/templates/svgs/youtube.svg +0 -3
  112. /package/{repo-templates/globals → repo-template}/jenkinsfile +0 -0
  113. /package/{repo-templates/template-basic → repo-template/services/jobseekers-frontend}/public/fonts/mdgx-icons.eot +0 -0
  114. /package/{repo-templates/template-basic → repo-template/services/jobseekers-frontend}/public/fonts/mdgx-icons.svg +0 -0
  115. /package/{repo-templates/template-basic → repo-template/services/jobseekers-frontend}/public/fonts/mdgx-icons.ttf +0 -0
  116. /package/{repo-templates/template-basic → repo-template/services/jobseekers-frontend}/public/fonts/mdgx-icons.woff +0 -0
  117. /package/{repo-templates/template-basic → repo-template/services/jobseekers-frontend}/public/fonts/my-font.woff +0 -0
  118. /package/{repo-templates/template-basic → repo-template/services/jobseekers-frontend}/public/images/logo.png +0 -0
  119. /package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/translations/da.njk +0 -0
  120. /package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/translations/de.njk +0 -0
  121. /package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/translations/es.njk +0 -0
  122. /package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/translations/fr.njk +0 -0
  123. /package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/translations/nb.njk +0 -0
  124. /package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/translations/nl.njk +0 -0
  125. /package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/translations/sv.njk +0 -0
  126. /package/{repo-templates/template-bigworkbag → repo-template/services/jobseekers-frontend}/templates/translations/zh-cn.njk +0 -0
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@madgex/fert",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
4
4
  "description": "Tool to help build the V6 branding",
5
5
  "bin": {
6
6
  "fert": "./bin/cli.js"
7
7
  },
8
+ "type": "commonjs",
8
9
  "scripts": {
9
10
  "lint": "eslint .",
10
11
  "format": "prettier --write .",
@@ -18,21 +19,21 @@
18
19
  "url": "https://github.com/wiley/madgex-frontend-rollout-tool.git"
19
20
  },
20
21
  "engines": {
21
- "node": ">=22"
22
+ "node": ">=22.3"
22
23
  },
23
24
  "author": "Madgex",
24
25
  "license": "UNLICENSED",
25
26
  "dependencies": {
26
- "@aws-sdk/client-cloudfront": "^3.716.0",
27
- "@aws-sdk/client-ssm": "^3.716.0",
28
- "@aws-sdk/credential-providers": "^3.716.0",
27
+ "@aws-sdk/client-cloudfront": "^3.745.0",
28
+ "@aws-sdk/client-ssm": "^3.744.0",
29
+ "@aws-sdk/credential-providers": "^3.744.0",
29
30
  "@hapi/hapi": "^21.3.12",
30
31
  "@hapi/hoek": "^11.0.7",
31
32
  "@hapi/inert": "^7.1.0",
32
33
  "@hapi/vision": "^7.0.3",
33
34
  "@hapipal/toys": "^4.0.0",
34
- "@madgex/config-api-sdk": "^1.6.2",
35
- "@madgex/design-system": "^9.1.9",
35
+ "@madgex/config-api-sdk": "^1.7.0",
36
+ "@madgex/design-system": "^9.2.0",
36
37
  "@private/header-footer-podlet-server": "github:wiley/madgex-header-footer-podlet",
37
38
  "axios": "^1.7.9",
38
39
  "cac": "^6.7.14",
@@ -49,7 +50,7 @@
49
50
  "ora": "5.4.1",
50
51
  "prompts": "^2.4.2",
51
52
  "rimraf": "^5.0.5",
52
- "sass": "^1.83.4",
53
+ "sass": "^1.84.0",
53
54
  "simple-git": "^3.27.0",
54
55
  "simple-update-notifier": "^2.0.0",
55
56
  "style-dictionary": "3.9.0",
@@ -58,30 +59,20 @@
58
59
  "vite-plugin-static-copy": "^0.17.1"
59
60
  },
60
61
  "devDependencies": {
61
- "@commitlint/cli": "^19.6.1",
62
- "@commitlint/config-conventional": "^19.6.0",
63
- "@eslint/eslintrc": "^3.2.0",
64
- "@eslint/js": "^9.17.0",
65
- "commitizen": "^4.3.1",
66
- "cz-conventional-changelog": "^3.3.0",
67
- "eslint": "^9.17.0",
68
- "eslint-config-prettier": "^9.1.0",
69
- "eslint-plugin-prettier": "^5.2.1",
70
- "globals": "^15.14.0",
62
+ "@commitlint/cli": "^19.7.1",
63
+ "@commitlint/config-conventional": "^19.7.1",
64
+ "@madgex/eslint-config-madgex": "^2.3.0",
65
+ "@madgex/prettier-config-madgex": "^2.0.0",
66
+ "eslint": "^9.19.0",
71
67
  "husky": "^9.1.7",
72
68
  "joi": "^17.13.3",
73
- "lint-staged": "^15.3.0",
74
- "prettier": "^3.4.2",
75
- "semantic-release": "^24.2.0"
69
+ "lint-staged": "^15.4.3",
70
+ "prettier": "^3.5.0",
71
+ "semantic-release": "^24.2.2"
76
72
  },
77
73
  "peerDependencies": {
78
74
  "@ctrl/tinycolor": "^3.6.0"
79
75
  },
80
- "config": {
81
- "commitizen": {
82
- "path": "node_modules/cz-conventional-changelog"
83
- }
84
- },
85
76
  "lint-staged": {
86
77
  "*.{js,json}": [
87
78
  "prettier --write",
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ clientPropertyId: '{CPID}',
3
+ };
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "madgex-cpid",
3
+ "version": "1.0.0",
4
+ "description": "Branding Repo",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/wiley/madgex-cpid.git"
8
+ },
9
+ "author": "Madgex",
10
+ "license": "UNLICENSED",
11
+ "homepage": "https://github.com/wiley/madgex-cpid#readme",
12
+ "scripts": {
13
+ "dev": "fert",
14
+ "build": "fert build"
15
+ },
16
+ "dependencies": {
17
+ "@madgex/branding-shared": "^1.0.1"
18
+ },
19
+ "devDependencies": {
20
+ "@madgex/fert": "*"
21
+ }
22
+ }
@@ -7,14 +7,17 @@
7
7
  "2": {
8
8
  "base": { "value": "#343434" }
9
9
  }
10
+ },
11
+ "button": {
12
+ "bg": {
13
+ "base": { "value": "#005689" }
14
+ }
10
15
  }
11
16
  },
12
17
  "font": {
13
18
  "family": {
14
19
  "button": {
15
- "base": {
16
- "value": "comic sans"
17
- }
20
+ "base": { "value": "Arial" }
18
21
  }
19
22
  }
20
23
  }
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ serviceName: 'jobseekers-frontend',
3
+ entry: './src/index.js',
4
+ externalAssets: {
5
+ links: 'https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap',
6
+ },
7
+ };
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="100pt" height="100pt" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="m60.418 66.668c-3.125-1.668-1.457-4.793 0-6.25 1.875-1.875 4.168-8.332 4.168-8.332 3.75-1.668 4.168-4.375 4.582-6.25 1.668-5.418-2.5-6.25-2.5-6.25s3.332-8.957 0.625-15.832c-3.543-8.957-17.918-12.293-20.418-3.957-17.082-3.7539-13.543 19.785-13.543 19.785s-4.168 0.83203-2.5 6.25c0.41797 1.875 0.83203 4.582 4.582 6.25 0 0 2.293 6.457 4.168 8.332 1.457 1.457 3.125 4.582 0 6.25-6.25 3.332-25 4.168-25 18.75h70.832c0.003907-14.582-18.746-15.414-24.996-18.746z"/>
4
+ </svg>