Skip to content

Commit

Permalink
chore(script): add script for release candidate (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedMok committed Feb 2, 2022
1 parent 25605f2 commit ba2430b
Show file tree
Hide file tree
Showing 33 changed files with 1,178 additions and 33 deletions.
18 changes: 18 additions & 0 deletions app.demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,34 @@ handlers:
redirect_http_response_code: 301
static_files: public/index.html
upload: public/index.html
http_headers:
Strict-Transport-Security: 'max-age=63072000; includeSubDomains; preload'
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-FRAME-OPTIONS: 'sameorigin'
Referrer-Policy: 'strict-origin-when-cross-origin'
- url: /(.*)/
secure: always
redirect_http_response_code: 301
static_files: public/\1/index.html
upload: public/(.*)/index.html
http_headers:
Strict-Transport-Security: 'max-age=63072000; includeSubDomains; preload'
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-FRAME-OPTIONS: 'sameorigin'
Referrer-Policy: 'strict-origin-when-cross-origin'
- url: /(.*)
secure: always
redirect_http_response_code: 301
static_files: public/\1
upload: public/(.*)
http_headers:
Strict-Transport-Security: 'max-age=63072000; includeSubDomains; preload'
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-FRAME-OPTIONS: 'sameorigin'
Referrer-Policy: 'strict-origin-when-cross-origin'


automatic_scaling:
Expand Down
22 changes: 22 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,38 @@ handlers:
redirect_http_response_code: 301
static_files: public/index.html
upload: public/index.html
http_headers:
Strict-Transport-Security: 'max-age=63072000; includeSubDomains; preload'
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-FRAME-OPTIONS: 'sameorigin'
Referrer-Policy: 'strict-origin-when-cross-origin'
Content-Security-Policy: "script-src 'self'; object-src 'self'"
- url: /(.*)/
secure: always
redirect_http_response_code: 301
static_files: public/\1/index.html
upload: public/(.*)/index.html
http_headers:
Strict-Transport-Security: 'max-age=63072000; includeSubDomains; preload'
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-XSS-Protection: 1; mode=block
X-FRAME-OPTIONS: 'sameorigin'
Referrer-Policy: 'strict-origin-when-cross-origin'
Content-Security-Policy: "script-src 'self'; object-src 'self'"
- url: /(.*)
secure: always
redirect_http_response_code: 301
static_files: public/\1
upload: public/(.*)
http_headers:
Strict-Transport-Security: 'max-age=63072000; includeSubDomains; preload'
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-FRAME-OPTIONS: 'sameorigin'
Referrer-Policy: 'strict-origin-when-cross-origin'
Content-Security-Policy: "script-src 'self'; object-src 'self'"

automatic_scaling:
min_instances: 0
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@
"predevelop": "yarn clean-cache && yarn tokens:clean-build",
"release": "npx lerna version --conventional-commits --conventional-graduate --changelog-preset angular --message 'chore(release): publish %s' --create-release=github",
"releaseBeta": "npx lerna version --conventional-commits --conventional-prerelease --changelog-preset angular --message 'chore(release): publish %s' --create-release=github --preid beta",
"releaseCandidate": "npx lerna version premajor --conventional-commits --conventional-prerelease --changelog-preset angular --message 'chore(release): publish %s' --create-release=github --preid rc",
"npm:publish": "npx lerna exec --bail=false npm publish",
"npm:publishBeta": "npx lerna exec --bail=false npm publish --tag beta",
"npm:publishCandidate": "npx lerna exec --bail=false npm publish --tag rc",
"unit": "jest --projects ./packages/*/jest.config.js --coverage --verbose --color --no-cache",
"unit:watch": "jest --watch --silent",
"unit:coverage": "jest --coverage --collectCoverageFrom='**/*.js'",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default withSiteMapData({ Component: Menu })

const query = graphql`
query AllGitReleasesQuery {
allGithubRelease {
allGithubRelease(limit: 20) {
edges {
node {
tagName
Expand Down
59 changes: 59 additions & 0 deletions packages/styles/components/_c.option-button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
@use "sass:math";

.mc-option-button {
$parent: get-parent-selector(&);

display: flex;
text-align: center;

&__input {
@include set-hidden-input;

&:hover + #{$parent}__label {
box-shadow: 0 0 0 2px $color-grey-800;
}

&:checked + #{$parent}__label {
border-color: $color-primary-01-500;
box-shadow: 0 0 0 $mu025 $color-success-100;
}

&:focus + #{$parent}__label {
@include set-focus-floating();
}

&:disabled + #{$parent}__label {
cursor: not-allowed;
background-color: $color-grey-200;
color: $color-grey-600;
box-shadow: none;
}
}

&__label {
@include set-font-face("semi-bold");

position: relative;
padding: magic-unit-rem(1.5625, true) $mu200; // 25px 32px
border-radius: get-border-radius("m");
box-shadow: 0 0 0 1px $color-grey-300;
border: 2px solid transparent;
cursor: pointer;

@include set-focus-floating-base() {
border-radius: get-border-radius("l");
top: -$mu025;
right: -$mu025;
bottom: -$mu025;
left: -$mu025;
}
}

&--full {
#{$parent} {
&__label {
width: 100%;
}
}
}
}
113 changes: 113 additions & 0 deletions packages/styles/components/_c.option-card.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
@use "sass:math";

.mc-option-card {
$parent: get-parent-selector(&);

position: relative;
border-radius: get-border-radius("m");
cursor: pointer;

&__input {
position: absolute;
right: $mu100;
top: $mu100;
border-color: $color-input-border;

&.mc-radio__input,
&.mc-checkbox__input,
&:focus {
box-shadow: none;
}

&.mc-radio__input:checked,
&.mc-checkbox__input:checked,
&:checked {
border-color: $color-input-checked-border;
}

&.mc-radio__input:hover,
&.mc-checkbox__input:hover,
&:hover {
border-color: $color-input-border;
}

&.mc-radio__input:checked:hover,
&.mc-checkbox__input:checked:hover,
&:checked:hover {
border-color: $color-input-checked-border;
}

&:hover + #{$parent}__label {
box-shadow: 0 0 0 2px $color-grey-800;
}

&:checked + #{$parent}__label {
border-color: $color-primary-01-500;
box-shadow: 0 0 0 $mu025 $color-success-100;
}

&:focus + #{$parent}__label {
@include set-focus-floating();
}
}

&__label {
position: absolute;
border-radius: get-border-radius("m");
box-shadow: 0 0 0 1px $color-grey-300;
border: 2px solid transparent;
height: 100%;
width: 100%;
cursor: pointer;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);

&-text {
@include visually-hidden();
}

@include set-focus-floating-base($position: false) {
border-radius: get-border-radius("l");
top: -$mu025;
right: -$mu025;
bottom: -$mu025;
left: -$mu025;
}
}

&__content {
border-radius: 4px;
padding: $mu100;
}

&--small {
#{$parent} {
&__input {
right: $mu050;
top: $mu050;
}

&__content {
padding: $mu050;
}
}
}

&--centered {
#{$parent} {
&__input {
top: 50%;
transform: translateY(-50%);
}
}
}

&--no-padding {
#{$parent} {
&__content {
padding: 0;
}
}
}
}
Loading

0 comments on commit ba2430b

Please sign in to comment.