Skip to content

Commit

Permalink
feat: modify text, font, npm scripts (#9)
Browse files Browse the repository at this point in the history
* refactor(SEO): add a restrictive robots.txt

refactor(SEO): add a restrictive robots.txt

For now i don't want to use SEO for cta.li only when i finish the work.

Reviewed-by: @c2tz
Refs: #2

* refactor(PWA): add a manifest.webmanifest file

refactor(PWA): add a manifest.webmanifest file

He shouldn't work well for develop branch (i use staging.cta.li) because start_url is not correctly completed but that not important.

The next PWA scope commit would be the png, webp files.

Reviewed-by: @c2tz
Refs: #2

* refactor(PWA): add all manifest requested pics

refactor(PWA): add all manifest.webmanifest requested pics

Second parts with requested pics for manifest.webmanifest files.

Reviewed-by: @c2tz
Refs: #2

* test(PWA): rename manifest.w... to manifest.json

test(PWA): rename manifest.w... to manifest.json

Vercel seems to have already a file with that name and that create a conflict so i test with manifest.json for now but that not conventional.

see: https://www.w3.org/TR/appmanifest/#using-a-link-element-to-link-to-a-manifest

Reviewed-by: @c2tz
Refs: #2

* Revert "test(PWA): rename manifest.w... to manifest.json"

This reverts commit f31020f.

* feat(pics): add other pics files

feat(pics): add other pics files

Just add other files like favicon apple-touch-icon.png mask.webp (footer), i should make a chore commits for later for remove unused pics.

Reviewed-by: @c2tz
Refs: #2

* refactor(SEO): add a sitemap.xml

refactor(SEO): add a sitemap.xml

For now i don't want to use SEO for cta.li only when i finish the work.

Reviewed-by: @c2tz
Refs: #2

* test(PWA): try to correct error 401 about manifest

test(PWA): try to correct error 401 about manifest

Only test i've found this https://medium.com/@aurelien.delogu/401-error-on-a-webmanifest-file-cb9e3678b9f3 that can be cause by CORS

Reviewed-by: @c2tz
Refs: #2

* feat(fonts): add a fonts folder with roboto fonts

refactor(SEO): add a sitemap.xml

Just add fonts folder with roboto regular and bold. No need to add mono for now.

That should now be finIsh for #2

Reviewed-by: @c2tz
Refs: #2

* ci(prettier): add prettier in ci

ci(prettier): add prettier in ci

Add prettier for workflows just for test now.

Reviewed-by: @c2tz
Refs: #1

* test(ci): test prettier

test(ci): test prettier

Test prettier now.

Reviewed-by: @c2tz
Refs: #NC

* test(ci): change pull request to push

test(ci): change pull request to push

Add prettier for workflows just for test now.

Reviewed-by: @c2tz
Refs: #1

* test(ci): change workflow name

test(ci): change workflow name

Add prettier for workflows just for test now.

Reviewed-by: @c2tz
Refs: #1

* test(ci): change permission for action

test(ci): change permission for action

Add prettier for workflows just for test now.

Reviewed-by: @c2tz
Refs: #1

* Update main.yaml

* Update package.json

* Update main.yaml

* Update package.json

* Update package.json

* Update main.yaml

* Update main.yaml

* Update main.yaml

* Update package.json

* simplify workflow

* Update main.yaml

* test prettier ci

* Update main.yaml

* add stylelint

* Update l.html

* add html minifier and modify index

* remove prettier for now

* Update and rename main.yaml to prettier.yaml

* Create stylelint.yaml

* Create minify.yml (#8)

* Update minify.yml

* Update minify.yml

* Add minified HTML and CSS files

* test minify

* Add minified HTML and CSS files

* Update minify.yml

* Rename prettier.yaml to prettier.yaml.old

* test: discord webhook and matrix bridge

* test: disable stylelint for retesting with no error

test description

* test: discord and matrix again

* test: firebase auth

* test: delete csp for test

* test: remove firebase script for now

* test: recover csp

* test: gpg key

* test: gpg key

* feat: add gpg key and text

* feat: add italic font + few mod

* feat: change matrix contact

---------

Co-authored-by: github-actions[bot] <action[bot]@github.com>
  • Loading branch information
c2tz and github-actions[bot] authored Dec 18, 2024
1 parent 3a93f56 commit ae7c6b5
Show file tree
Hide file tree
Showing 16 changed files with 1,471 additions and 654 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/minify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Code Minify (HTMLMinifier)
on:
push:
branches: [main]
jobs:
html-minifier-terser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install -D
- name: Minify HTML
run: npm run minifier-html:format
- name: Minify CSS
run: npm run minifier-css:format
- name: Add minified files to commit
run: |
git config --local user.email "action[bot]@github.com"
git config --local user.name "github-actions[bot]"
git add static/*.html static/*.css
git commit -m "Add minified HTML and CSS files"
- name: Push Changes to GitHub
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
force: false
18 changes: 18 additions & 0 deletions .github/workflows/prettier.yaml.old
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Code Quality (Prettier)
on:
push:
branches: [develop]
jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install -D
- name: Check formatting with Prettier
run: npm run prettier:check
19 changes: 19 additions & 0 deletions .github/workflows/stylelint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Code Quality (Stylelint)
on:
push:
branches: [develop]
jobs:
prettier:
name: Stylelint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install -D
- name: Check formatting with Stylelint
run: npm run stylelint:check

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

/node_modules
/.vscode
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# add files to ignore
package.json
package-lock.json
sitemap.xml
1 change: 1 addition & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "extends": ["stylelint-config-standard"] }
Loading

1 comment on commit ae7c6b5

@vercel
Copy link

@vercel vercel bot commented on ae7c6b5 Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cta-li – ./

cta-li-cta.vercel.app
iez.cta.li
cta.li
www.cta.li
cta-li-git-main-cta.vercel.app

Please sign in to comment.