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

Develop #50

Merged
merged 25 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ad8d0f0
feat: added config-overrides.js to customize build file names
Oct 10, 2024
65c983c
0.1.1
Oct 10, 2024
042360c
Merge branch 'develop' of github.com:culturecreates/calendar-widget i…
Oct 11, 2024
19e3e03
Merge branch 'develop' of github.com:culturecreates/calendar-widget i…
Oct 17, 2024
9c9958b
feat: integrated semantic versioning into staging release pipeline.
Oct 18, 2024
acc80f8
Merge pull request #49 from culturecreates/feature/issue-45
SyamBabu-M Oct 18, 2024
a949886
chore: update build-staging-deploy-s3.yml to run relese job in node 1…
Oct 18, 2024
10e6ed9
chore: removed semantic release from relese pipeline. removed semanti…
Oct 18, 2024
9e99dc0
fix: update build-staging-deploy-s3.yml to ensure preserving previous…
Oct 18, 2024
2698e2b
fix: update build-staging-deploy-s3.yml to delete everything other th…
Oct 18, 2024
e15e58d
fix: fixed deletion script in staging deployment workflow
Oct 18, 2024
a7a3dfd
chore: testing deployment script
Oct 18, 2024
28954f2
fix: fixed wrong previous version calculation in staging deploy workflow
Oct 18, 2024
9d8de88
fix: testing staging deployment
Oct 18, 2024
48ae4d2
fix: update package.json verion to 0.0.0
Oct 18, 2024
138e125
0.1.0
Oct 18, 2024
4dd07da
chore: fixed production deployment script to handle versioning
Oct 18, 2024
d0af2aa
fix: removed deletion of previous versions during major release. reom…
Oct 21, 2024
ebf9c80
Update README.md
SyamBabu-M Oct 21, 2024
0129a97
fix: removed unneccesaary imports
Oct 21, 2024
24a6b3a
Update README.md
SyamBabu-M Oct 22, 2024
0b97b95
Update README.md
SyamBabu-M Oct 22, 2024
004dece
Update README.md
SyamBabu-M Oct 22, 2024
388603b
Merge pull request #51 from culturecreates/readme-update
SyamBabu-M Oct 23, 2024
6becf2f
Merge branch 'main' into develop
SyamBabu-M Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@
"jest": true
},
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:prettier/recommended"],
"overrides": [],
"overrides": [
{
"files": ["config-overrides.js"],
"rules": {
"no-undef": "off",
"no-unused-vars": "off"
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/build-production-deploy-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ jobs:
- uses: actions/checkout@v2
- run: npm install
- run: npm run build:production
- run: aws s3 sync ./build s3://${{env.WEBHOSTING_BUCKET_NAME}}/ --acl public-read --delete --cache-control max-age=3600
- run: |
current_version=$(node -p "require('./package.json').version")
major_version=$(echo $current_version | cut -d. -f1)

aws s3 sync ./build s3://${{env.WEBHOSTING_BUCKET_NAME}}/v${major_version}/ --acl public-read --cache-control max-age=3600 --delete

6 changes: 5 additions & 1 deletion .github/workflows/build-staging-deploy-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
- uses: actions/checkout@v2
- run: npm install
- run: npm run build:staging
- run: aws s3 sync ./build s3://${{env.WEBHOSTING_BUCKET_NAME}}/ --acl public-read --delete --cache-control max-age=3600
- run: |
current_version=$(node -p "require('./package.json').version")
major_version=$(echo $current_version | cut -d. -f1)

aws s3 sync ./build s3://${{env.WEBHOSTING_BUCKET_NAME}}/v${major_version}/ --acl public-read --cache-control max-age=3600 --delete
12 changes: 12 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = function override(config, env) {
SyamBabu-M marked this conversation as resolved.
Show resolved Hide resolved
config.output.filename = `static/js/widget.js`;

const miniCssExtractPlugin = config.plugins.find(
(plugin) => plugin.constructor.name === 'MiniCssExtractPlugin',
);
if (miniCssExtractPlugin) {
miniCssExtractPlugin.options.filename = `static/css/widget.css`;
}

return config;
};
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"start:staging": "env-cmd -f .env.staging react-scripts start",
"start:production": "env-cmd -f .env.production react-scripts start",
"build:staging": "env-cmd -f .env.staging react-scripts build",
"build:production": "env-cmd -f .env.production react-scripts build",
"test": "react-scripts test",
"start": "react-app-rewired start",
"start:staging": "env-cmd -f .env.staging react-app-rewired start",
"start:production": "env-cmd -f .env.production react-app-rewired start",
"build:staging": "env-cmd -f .env.staging react-app-rewired build",
"build:production": "env-cmd -f .env.production react-app-rewired build",
"test": "react-app-rewired test",
"eject": "react-scripts eject",
"lint": "eslint .",
"lint:fix": "eslint --fix",
Expand Down Expand Up @@ -59,6 +59,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-react": "^7.33.2",
"prettier": "^3.1.1"
"prettier": "^3.1.1",
"react-app-rewired": "^2.2.1"
}
}
21 changes: 7 additions & 14 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
html {
height: 100%;
}

body {
margin: 0;
padding: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
max-width: 100vw !important;
height: 100%;
}

:root {
#calendar-widget {
--primary-grey: #646d7b;
--secondary-grey: #d8d8d8;
--tertiary-grey: #b6c1c9;
Expand All @@ -21,6 +8,12 @@ body {
--primary-white-opaque: #ffffff;

--primary-black: #222732;

-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

margin: 0;
padding: 0;
}

#calendar-widget ul,
Expand Down
Loading