Skip to content

Commit

Permalink
Add fe-sys-design
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirohonda committed Aug 18, 2024
1 parent 3a3a5ef commit 26b6b59
Show file tree
Hide file tree
Showing 22 changed files with 1,138 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ jobs:
- name: checking the current directory
run: |
pwd
- name: run custom action.yml
# This is the folder path where action.yml is in
uses: ./github-actions
with:
message: ${{ secrets.MESSAGE }}
# This was initiall for testing the the custom action.yml. Failing in CI.
# Commenting it out for now.
# - name: run custom action.yml
# # This is the folder path where action.yml is in
# uses: ./github-actions
# with:
# message: ${{ secrets.MESSAGE }}
3 changes: 3 additions & 0 deletions apps/fe-sys-design/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@nx/js/babel"]
}
18 changes: 18 additions & 0 deletions apps/fe-sys-design/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
8 changes: 8 additions & 0 deletions apps/fe-sys-design/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"jsc": {
"parser": {
"syntax": "typescript"
},
"target": "es2016"
}
}
3 changes: 3 additions & 0 deletions apps/fe-sys-design/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# fe-sys-design

This project was generated by using ![@nx/web](https://nx.dev/nx-api/web/documents/overview#setting-up-nxweb). `@nx/web` is for creating a web component. It can be used to create a vanilla JS project.
18 changes: 18 additions & 0 deletions apps/fe-sys-design/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>FeSysDesign</title>
<base href="/" />

<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="stylesheet" href="/src/styles.css" />
</head>
<body>
<!-- this is for a web component automatically generated by Nx -->
<!-- <new-root></new-root> -->
<main id="main"></main>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
15 changes: 15 additions & 0 deletions apps/fe-sys-design/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "fe-sys-design",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/fe-sys-design/src",
"tags": [],
"targets": {
"dev": {
"executor": "nx:run-commands",
"options": {
"command": "yarn nx serve fe-sys-design"
}
}
}
}
Binary file added apps/fe-sys-design/public/favicon.ico
Binary file not shown.
7 changes: 7 additions & 0 deletions apps/fe-sys-design/src/app/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
;(function () {
const mainElem = document.getElementById('main')
const div = document.createElement('div')
const divContent = document.createTextNode('Hello from vanilla JS')
div.appendChild(divContent)
mainElem?.appendChild(div)
})()
Empty file.
2 changes: 2 additions & 0 deletions apps/fe-sys-design/src/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// import './web-component-example/app.element'
import './app'
1 change: 1 addition & 0 deletions apps/fe-sys-design/src/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* You can add global styles to this file, and also import other style files */
Loading

0 comments on commit 26b6b59

Please sign in to comment.