Skip to content

Commit

Permalink
fix: single file example disable realtime
Browse files Browse the repository at this point in the history
  • Loading branch information
darekf77 committed Oct 29, 2024
1 parent 8db2ae2 commit 0a5f5b3
Show file tree
Hide file tree
Showing 22 changed files with 359 additions and 148 deletions.
13 changes: 12 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,18 @@
}
],
"@typescript-eslint/member-ordering": 0,
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowDirectConstAssertionInArrowFunctions": true,
"allowHigherOrderFunctions": true,
"allowedNames": [],
"enforceForGetters": true,
"enforceForSetters": false
}
],
"@typescript-eslint/typedef": [
"warn",
{
Expand Down
6 changes: 1 addition & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@
"**/devDependencies.json": true,
"**/package.json": true,
"**/logo.svg": true,
".firedev": true,
".taon": true,
".tnp": true,
".": true,
"**/*.filetemplate": true,
"**/tsconfig.*": true,
"**/tslint.*": true,
Expand Down Expand Up @@ -164,4 +160,4 @@
"url": "./docs-config.schema.json"
}
]
}
}
18 changes: 18 additions & 0 deletions FRAMEWORK.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
## Files structure

Taon has very flexible structure for build apps and libraries. Each project
can be at the same time library and app.
There 2 types of project app and libraries:

- **standalone** (simple project with that has /src for for all source code)
- **organization** (contains multiple standalone projects that can be build together)


### Standalone project

Standalone

### Organization project

Organization

## Taon config

Config of application
Expand Down
4 changes: 2 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Taon v19.X.X

- 🔲 angular v19 support
- 🔲 2FA authentication
- 🔲 2FA authentication keycloak
- 🔲 simple online payments
- 🔲 fast/stable packeges installer solution
- 🔲 organization build based on standalone (single process with multiple entrypoints build)
Expand All @@ -19,7 +19,7 @@
- ✅ angular v18 support
- ✅ firedev -> taon (rebranding)
- 🔲 docs for new framework api
- 🔲 docs update for new cli
- docs update for new cli
- 🔲 docs examples for better understranding
- 🔲 relaltime development FE/BE and BE/BE
- 🔲 basic authentication
Expand Down
13 changes: 12 additions & 1 deletion projects/container-v18/examples-v18/single-file/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,18 @@
}
],
"@typescript-eslint/member-ordering": 0,
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowDirectConstAssertionInArrowFunctions": true,
"allowHigherOrderFunctions": true,
"allowedNames": [],
"enforceForGetters": true,
"enforceForSetters": false
}
],
"@typescript-eslint/typedef": [
"warn",
{
Expand Down
9 changes: 8 additions & 1 deletion projects/container-v18/examples-v18/single-file/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ yarn-error.log
testem.log
/typings
app.hosts.ts
/.firedev
/.taon
/.tnp
/.
.map(c => '/' + c)
.join('
')}
/docs-config.schema.json
/**/*._auto-generated_.ts
/**/BUILD-INFO.md
/linked-repos
Expand Down Expand Up @@ -54,7 +62,6 @@ Thumbs.db
/run.js
/run-org.js
# =====================
!taon.json
!taon.jsonc
*.filetemplate

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# This file is generated by taon
# This file is generated by taon.dev
/build
/coverage
/e2e
Expand All @@ -25,3 +25,4 @@ tmp-*
/module
/www


Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
site_name: single-file
# site_url: undefined
nav:
- Introduction: README.md
- TEST: TEST.md
docs_dir: ./allmdfiles
theme:
name: material
features:
- navigation.tabs
- navigation.sections
- toc.integrate
- navigation.top
- search.suggest
- search.highlight
- content.tabs.link
- content.code.annotation
- content.code.copy
language: en
palette:
primary: custom
accent: custom
# - scheme: default
# toggle:
# icon: material/toggle-switch-off-outline
# name: Switch to dark mode
# primary: red
# accent: red
# - scheme: slate
# toggle:
# icon: material/toggle-switch
# name: Switch to light mode
# primary: red
# accent: red

extra_css:
- custom.css

extra_javascript:
- custom.js

# plugins:
# - social

# extra:
# social:
# - icon: fontawesome/brands/github-alt
# link: https://github.com/james-willett
# - icon: fontawesome/brands/twitter
# link: https://twitter.com/TheJamesWillett
# - icon: fontawesome/brands/linkedin
# link: https://www.linkedin.com/in/willettjames/

markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets
- admonition
- pymdownx.arithmatex:
generic: true
- footnotes
- pymdownx.details
- pymdownx.superfences
- pymdownx.mark
- attr_list
# - pymdownx.emoji:
# emoji_index: !!python/name:materialx.emoji.twemoji
# emoji_generator: !!python/name:materialx.emoji.to_svg


Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"aeschli.vscode-css-formatter",
"alefragnani.Bookmarks",
"alexdima.copy-relative-path",
"alexiv.vscode-angular2-files",
"amodio.toggle-excluded-files",
"cg-cnu.vscode-path-tools",
"chrisdias.vscode-opennewinstance",
Expand Down Expand Up @@ -48,7 +47,7 @@
"stepanog.angular1-inline",
"taddison.gitlazy",
"unifiedjs.vscode-mdx",
"vespa-dev-works.jestrunit",
"firsttris.vscode-jest-runner",
"waderyan.gitblame",
"wcwhitehead.bootstrap-3-snippets",
"wenfangdu.snippet-generator",
Expand Down
141 changes: 95 additions & 46 deletions projects/container-v18/examples-v18/single-file/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,66 @@
"files.exclude": {
"**/*____ORIGINAL____.ts": true,
"_changelog": true,
"tsconfig.backend.dist.json": true,
"tsconfig.backend.dist.json.filetemplate": true,
"webpack.backend-dist-build.js": true,
"node_modules": true,
"tmp*": true,
"dist*": true,
"bundle*": true,
"browser": true,
"browser*": true,
"websql": true,
"websql*": true,
"module*": true,
"backup": true,
"module": true,
"www": true,
"Thumbs.db": true,
".DS_Store": true,
"**/node_modules": true,
"**/tmp*": true,
"**/dist*": true,
"**/bundle*": true,
"**/browser": true,
"**/browser*": true,
"**/websql": true,
"**/websql*": true,
"**/module*": true,
"**/backup": true,
"**/module": true,
"**/www": true,
"**/Thumbs.db": true,
"**/.DS_Store": true,
"npm-debug.log*": true,
".sass-cache": true,
".sourcemaps": true,
"tsconfig.isomorphic.json": true,
"tsconfig.isomorphic-flat-dist.json": true,
"tsconfig.browser.json": true,
"tsconfig.json": true,
"index.js": true,
"index.d.ts": true,
"index.js.map": true,
"webpack.config.js": true,
"run.js": true,
"run-org.js": true,
"tsconfig.isomorphic.json.filetemplate": true,
"tsconfig.isomorphic-flat-dist.json.filetemplate": true,
"tsconfig.browser.json.filetemplate": true,
"tsconfig.json.filetemplate": true,
".gitignore": true,
".npmignore": true,
".babelrc": true,
".npmrc": true,
".eslintrc.json": true,
".prettierignore": true,
".prettierrc": true,
".editorconfig": true,
"devDependencies.json": true,
"package.json": true,
"logo.svg": true
"**/**/.DS_Store": true,
"**/npm-debug.log*": true,
"**/.sass-cache": true,
"**/.sourcemaps": true,
"**/tsconfig.isomorphic.json": true,
"**/tsconfig.isomorphic-flat-dist.json": true,
"**/tsconfig.browser.json": true,
"**/tsconfig.json": true,
"**/tsconfig.backend.dist.json": true,
"**/index.js": true,
"**/index.d.ts": true,
"**/index.js.map": true,
"**/webpack.config.js": true,
"**/webpack.backend-dist-build.js": true,
"**/run.js": true,
"**/run-org.js": true,
"**/tsconfig.isomorphic.json.filetemplate": true,
"**/tsconfig.isomorphic-flat-dist.json.filetemplate": true,
"**/tsconfig.browser.json.filetemplate": true,
"**/tsconfig.json.filetemplate": true,
"**/tsconfig.backend.dist.json.filetemplate": true,
"**/.gitignore": true,
"**/.npmignore": true,
"**/.babelrc": true,
"**/.npmrc": true,
"**/.eslintrc.json": true,
"**/.prettierignore": true,
"**/.prettierrc": true,
"**/.editorconfig": true,
"**/devDependencies.json": true,
"**/package.json": true,
"**/logo.svg": true,
"**/*.filetemplate": true,
"**/tsconfig.*": true,
"**/tslint.*": true,
"**/recent.json": true,
"**/angular.json": true,
"**/webpack*": true,
"**/docs/**/*": true,
"**/run-*": true,
"**/run.*": true,
"**/package-lock.json": true,
"**/protractor.conf.js": true,
"**/karma.conf.js": true,
"**/docs-config.schema.json": true
},
"workbench.colorCustomizations": {
"activityBar.background": "#3186d4"
Expand All @@ -64,8 +78,30 @@
"projects": true,
"bin": true,
"local_release": true,
"node_modules": true,
".build": true,
".vscode": true,
"browser": true,
"dist": true,
"package-lock.json": true,
".firedev": true,
".taon": true,
".tnp": true,
".": true,
"**/docs": true,
"**/projects": true,
"**/bin": true,
"**/local_release": true,
"**/node_modules": true,
"**/.build": true,
"**/.vscode": true,
"**/browser": true,
"**/dist": true,
"**/package-lock.json": true,
"package-lock.json": true
"**/.firedev": true,
"**/.taon": true,
"**/.tnp": true,
"**/.": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
Expand Down Expand Up @@ -105,5 +141,18 @@
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.inlineSuggest.enabled": true,
"prettier.prettierPath": "./node_modules/prettier",
"prettier.endOfLine": "auto"
"prettier.endOfLine": "auto",
"json.schemas": [
{
"fileMatch": [
"/docs-config.jsonc"
],
"url": "./docs-config.schema.json"
}
],
"window.title": "container-v18/examples/single-file [ ${activeEditorShort} ]",
"search.useIgnoreFiles": false,
"search.include": [
"**/src/**"
]
}
8 changes: 7 additions & 1 deletion projects/container-v18/examples-v18/single-file/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# Most basic app
# Single file backend/frontend app

Proof of **taon** framework simplicity.
Backend with frontend inside one file.

![preview](<preview.png>)

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0a5f5b3

Please sign in to comment.