Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eschweitzer78/vic2-20240501 #322

Merged
merged 45 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
855f237
Added sfGpsDs packaging again for use by third parties
eschweitzer78 Mar 6, 2024
6ecc430
sfGpsDs to Api 60
eschweitzer78 Mar 6, 2024
59ca39c
sfGpsDs JSON Custom Property Editor
eschweitzer78 Mar 6, 2024
a6b4507
SfGpsDs to Api 60
eschweitzer78 Mar 6, 2024
7d2021b
Manual LWC Dom for Markup Editor
eschweitzer78 Mar 6, 2024
dc4dab0
String Custom Property Editor
eschweitzer78 Mar 6, 2024
48c56c3
To Api 60
eschweitzer78 Mar 6, 2024
1a342ec
NSW DS to Api 60
eschweitzer78 Mar 6, 2024
fc7cbfe
NSWS DS to Api 60
eschweitzer78 Mar 6, 2024
b933e6e
VIC DS To Api 60
eschweitzer78 Mar 6, 2024
d584bfb
FR Gov DS to Api 60
eschweitzer78 Mar 6, 2024
345e95b
UK Gov DS to Api 60
eschweitzer78 Mar 6, 2024
2ae48aa
To Api 60 and Omni 248.5
eschweitzer78 Mar 6, 2024
1bc8eb2
Packaging workflow version brush off
eschweitzer78 Mar 6, 2024
caf701c
Brush up ci github script
eschweitzer78 Mar 6, 2024
f939269
Reinstant sfGpsDs package for external use
eschweitzer78 Mar 6, 2024
06d32e6
Merge branch 'main' into eschweitzer78/api-60
eschweitzer78 Mar 6, 2024
80d49cf
Adjust os version
eschweitzer78 Mar 6, 2024
1b918ed
Merge branch 'eschweitzer78/api-60' of https://github.com/eschweitzer…
eschweitzer78 Mar 6, 2024
fce47ad
Add os dependency for sfGpsDs
eschweitzer78 Mar 6, 2024
bfb41e9
Merge branch 'main' into eschweitzer78/api-60
eschweitzer78 Mar 6, 2024
a48cf53
Fix package script issue
eschweitzer78 Mar 6, 2024
009c042
Merge branch 'eschweitzer78/api-60' of https://github.com/eschweitzer…
eschweitzer78 Mar 6, 2024
ebc8dd5
PlacesTypeahead for Vic DS
eschweitzer78 Apr 10, 2024
cd8e2e3
Vic2 april release
eschweitzer78 May 1, 2024
8ea1542
Update readmap for Vic2
eschweitzer78 May 1, 2024
a1ccc9b
Website for Vic2
eschweitzer78 May 1, 2024
17c23a5
Merge branch 'main' into eschweitzer78/vic2-20240501
eschweitzer78 May 1, 2024
ff8ed97
Added GHCR access token to workflow
eschweitzer78 May 1, 2024
c09fd39
Merge branch 'eschweitzer78/vic2-20240501' of https://github.com/esch…
eschweitzer78 May 1, 2024
d1df771
Fix npmrc filename typo
eschweitzer78 May 1, 2024
cd0aa8c
npmrc
eschweitzer78 May 1, 2024
dd9b966
github npm repo auth
eschweitzer78 May 1, 2024
107cab8
github npm repo
eschweitzer78 May 1, 2024
0fc328c
github npm repo
eschweitzer78 May 1, 2024
2402ae4
gh token
eschweitzer78 May 1, 2024
e624c70
npmrc
eschweitzer78 May 1, 2024
70d522a
access token
eschweitzer78 May 1, 2024
ea2d792
nprmc updated
eschweitzer78 May 1, 2024
833e2da
build typo
eschweitzer78 May 1, 2024
5853465
npmrc repo name fix
eschweitzer78 May 1, 2024
82e25c2
Fix confusing arrow
eschweitzer78 May 1, 2024
13027fe
Vic2 showcase
eschweitzer78 May 1, 2024
2330a7b
Change scratch org deployment
eschweitzer78 May 1, 2024
5598928
Suppress ApexCRUD check
eschweitzer78 May 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 23 additions & 1 deletion .github/workflows/ci-pr-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci
env:
GHCR_TOKEN: ${{ secrets.GHCR_ACCESS_TOKEN }}

# Prettier formatting
- name: "Code formatting verification with Prettier"
Expand Down Expand Up @@ -144,6 +146,19 @@ jobs:
if: steps.pmd-sf-gps-ds-au-vic1.outputs.violations != 0
run: exit 1

# Run PMD scan
- name: "Run PMD scan for sfGpsDsAuVic2"
uses: pmd/pmd-github-action@v1.4.1
id: pmd-sf-gps-ds-au-vic2
with:
sourcePath: "sfGpsDsAuVic2"
rulesets: "ruleset.xml"

# Check for PMD violations
- name: "Check for PMD violations"
if: steps.pmd-sf-gps-ds-au-vic2.outputs.violations != 0
run: exit 1

# Run PMD scan
- name: "Run PMD scan for sfGpsDsFrGov"
uses: pmd/pmd-github-action@v1.4.1
Expand Down Expand Up @@ -215,7 +230,14 @@ jobs:

# Deploy source to scratch org
- name: "Push source to scratch org"
run: sfdx project deploy start --target-org=scratch-org
run: |
sfdx project deploy start --source-dir sfGpsDs --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuNsw --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuNswS --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuVic --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuVic2 --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsUkGov --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsFrGov --target-org=scratch-org

# Assign permissionset
# - name: 'Assign permissionset to default user'
Expand Down
28 changes: 25 additions & 3 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci
env:
GHCR_TOKEN: ${{ secrets.GHCR_ACCESS_TOKEN }}

# Prettier formatting
- name: "Code formatting verification with Prettier"
Expand Down Expand Up @@ -144,14 +146,27 @@ jobs:
# Run PMD scan
- name: "Run PMD scan for sfGpsDsAuVic"
uses: pmd/pmd-github-action@v1.4.1
id: pmd-sf-gps-ds-au-vic
id: pmd-sf-gps-ds-au-vic1
with:
sourcePath: "sfGpsDsAuVic"
rulesets: "ruleset.xml"

# Check for PMD violations
- name: "Check for PMD violations"
if: steps.pmd-sf-gps-ds-au-vic.outputs.violations != 0
if: steps.pmd-sf-gps-ds-au-vic1.outputs.violations != 0
run: exit 1

# Run PMD scan
- name: "Run PMD scan for sfGpsDsAuVic2"
uses: pmd/pmd-github-action@v1.4.1
id: pmd-sf-gps-ds-au-vic2
with:
sourcePath: "sfGpsDsAuVic2"
rulesets: "ruleset.xml"

# Check for PMD violations
- name: "Check for PMD violations"
if: steps.pmd-sf-gps-ds-au-vic2.outputs.violations != 0
run: exit 1

# Run PMD scan
Expand Down Expand Up @@ -225,7 +240,14 @@ jobs:

# Deploy source to scratch org
- name: "Push source to scratch org"
run: sfdx project deploy start --target-org=scratch-org
run: |
sfdx project deploy start --source-dir sfGpsDs --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuNsw --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuNswS --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuVic --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuVic2 --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsUkGov --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsFrGov --target-org=scratch-org

# Assign permissionset
# - name: 'Assign permissionset to default user'
Expand Down
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci
env:
GHCR_TOKEN: ${{ secrets.GHCR_ACCESS_TOKEN }}

# Prettier formatting
- name: "Code formatting verification with Prettier"
Expand Down Expand Up @@ -144,6 +146,19 @@ jobs:
if: steps.pmd-sf-gps-ds-au-vic1.outputs.violations != 0
run: exit 1

# Run PMD scan
- name: "Run PMD scan for sfGpsDsAuVic1"
uses: pmd/pmd-github-action@v1.4.1
id: pmd-sf-gps-ds-au-vic2
with:
sourcePath: "sfGpsDsAuVic2"
rulesets: "ruleset.xml"

# Check for PMD violations
- name: "Check for PMD violations"
if: steps.pmd-sf-gps-ds-au-vic2.outputs.violations != 0
run: exit 1

# Run PMD scan
- name: "Run PMD scan for sfGpsDsFrGov"
uses: pmd/pmd-github-action@v1.4.1
Expand Down Expand Up @@ -213,9 +228,16 @@ jobs:
- name: "Automatically generate Omnistudio source"
run: npm run osfilegen

# Deploy source to scratch org
# Deploy source to scratch org (but not showcases)
- name: "Push source to scratch org"
run: sfdx project deploy start --target-org=scratch-org
run: |
sfdx project deploy start --source-dir sfGpsDs --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuNsw --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuNswS --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuVic --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsAuVic2 --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsUkGov --target-org=scratch-org
sfdx project deploy start --source-dir sfGpsDsFrGov --target-org=scratch-org

# Assign permissionset
# - name: 'Assign permissionset to default user'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/packaging-pr-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci
env:
GHCR_TOKEN: ${{ secrets.GHCR_ACCESS_TOKEN }}

# Prep
- name: "Prepare repo"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/packaging-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci
env:
GHCR_TOKEN: ${{ secrets.GHCR_ACCESS_TOKEN }}

# Prep
- name: "Prepare repo"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci
env:
GHCR_TOKEN: ${{ secrets.GHCR_ACCESS_TOKEN }}

# Prep
- name: "Prepare repo"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ deploy-options.json
# LWC VSCode autocomplete
**/lwc/jsconfig.json
jsconfig.json
.vscode/

# LWC Jest coverage reports
coverage/
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@dpc-sdp:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GHCR_TOKEN}
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Do read our [change log](./CHANGELOG.md) if you plan on updating already install
- sfGpsDs is the folder for code that is reusable across individual design systems supported by this repo and sfdx project; it is now fully packaged with the design systems library below but the directory is kept for clarity, deployment as source code or as a dependency package for third party design systems
- sfGpsDsAuNsw is the folder for code and assets pertaining to the Design System of New South Wales, Australia; check the [documentation web site](https://nswds.dsforce.dev)
- sfGpsDsAuNswS is the folder for code and assets pertaining to the specific Design System of Service NSW, New South Wales, Australia; check the [documentation website](https://nsws.dsforce.dev)
- sfGpsDsAuVic is the folder for code and assets to the Design System of Victoria, Australia aka Ripple v1 (pilot, no production without prior consultation); check the [documentation website](https://vic.dsforce.dev) and know that we are investigating the support of Ripple v2
- sfGpsDsAuVic is the folder for code and assets to the Design System of Victoria, Australia aka Ripple v1 (pilot, no production without prior consultation); check the [documentation website](https://vic.dsforce.dev)
- sfGpsDsAuVic2 is the folder for code and assets to the Design System of Victoria v2, Australia aka Ripple v2 (alpha); check the [documentation website](https://vic2.dsforce.dev)
- sfGpsDsFrGov is the folder for code and assets to the Design System of France (alpha, only sandbox); check the [documentation page](docs/DSFR_README.md)
- sfGpsDsUkGov is the folder for code and assets to the Design System of the United Kingdom (pilot, no production without prior consultation); check the [documentation website](https://uk.dsforce.dev)

Expand All @@ -34,6 +35,8 @@ Follow this set of instructions if you want to deploy the library in its most re

1. Click <a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5j000000A2ZyAAK" title="sfGpsDsAuVic1Full">this link</a> to install the sfGpsDsAuVic unlocked package in your org (with sfGpsDs included).

1. Click <a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=040000000000000000" title="sfGpsDsAuVic2Full">this link</a> to install the sfGpsDsAuVic2 unlocked package in your org (with sfGpsDs included).

1. Click <a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5j000000dzFJAAY" title="sfGpsDsFrGovFull">this link</a> to install the sfGpsDsFrGov unlocked package in your org (with sfGpsDs included).

1. Click <a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5j000000A2a3AAC" title="sfGpsDsUkGovFull">this link</a> to install the sfGpsDsUkGov unlocked package in your org (with sfGpsDs included).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<template></template>
6 changes: 6 additions & 0 deletions __test__/jest-mocks/lightning/primitiveIcon/primitiveIcon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { LightningElement, api } from "lwc";

export default class extends LightningElement {
@api iconName;
@api size;
}
30 changes: 20 additions & 10 deletions cssgen.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
let fs = require("fs").promises;
let path = require("path");
const postcss = require("postcss");
const postcssCustomMedia = require("postcss-custom-media");
let sass = require("sass");
const fileRegEx = /!/;

function genFile(filename) {
return sass.compile(filename, {
style: "compressed",
loadPaths: ["./", "node_modules/@gouvfr/dsfr"]
loadPaths: ["./", "node_modules/@gouvfr/dsfr", "node_modules"]
});
}

Expand Down Expand Up @@ -41,20 +43,28 @@ async function main() {
: `${dot}/${directory}/${file}.scss`
).css;

/* go through configured content replacements */

for (const replacement of config[directory]) {
let regexFrom = new RegExp(replacement.from, "gm");
content = content.replaceAll(regexFrom, replacement.to);
}

fs.writeFile(
fileInDirectory
? `${dot}/${file}${hasStar ? "" : ".gen"}.css`
: `${dot}/${directory}/${file}${hasStar ? "" : ".gen"}.css`,
content,
(err) => {
if (err) throw err;
}
);
/* use postcss to remove custom media generated by VIC2 */

postcss([postcssCustomMedia()])
.process(content)
.then((pContent) => {
fs.writeFile(
fileInDirectory
? `${dot}/${file}${hasStar ? "" : ".gen"}.css`
: `${dot}/${directory}/${file}${hasStar ? "" : ".gen"}.css`,
pContent.css,
(err) => {
if (err) throw err;
}
);
});
}
})
.catch((err) => {
Expand Down
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const ro = require("resize-observer-polyfill");

const setupFilesAfterEnv = jestConfig.setupFilesAfterEnv || [];
setupFilesAfterEnv.push("<rootDir>/jest-sa11y-setup.js");
setupFilesAfterEnv.push("<rootDir>/jest-crypto-setup.js");

module.exports = {
...jestConfig,
Expand All @@ -22,6 +23,8 @@ module.exports = {
"<rootDir>/__test__/jest-mocks/omnistudio/radioGroup",
"^lightning/combobox$":
"<rootDir>/__test__/jest-mocks/lightning/combobox/combobox",
"^lightning/primitiveIcon$":
"<rootDir>/__test__/jest-mocks/lightning/primitiveIcon/primitiveIcon",
"^lightning/(.*)":
"<rootDir>/node_modules/@salesforce/sfdx-lwc-jest/src/lightning-stubs/$1/$1"
},
Expand Down
Loading
Loading