Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
nin-jin authored Nov 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
0 parents commit b20e6e4
Showing 7 changed files with 89 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* -text
39 changes: 39 additions & 0 deletions .github/workflows/hyoo_template_app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#FIXME change file name to actual app name
#FIXME change to actual app name
name: $hyoo_template_app

#FIXME optional: change permissions if you don't want to allow everything
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs#defining-access-for-the-github_token-permissions
permissions: write-all

on:
workflow_dispatch:
push:
pull_request:
schedule:
- cron: "0 7 * * *"

jobs:
build:

runs-on: ubuntu-latest

steps:

- uses: hyoo-ru/mam_build@master2
with:
package: 'hyoo/template' #FIXME namespace of this package
modules: 'app' #FIXME which modules to build, remove line if only on module at the root

#FIXME remove one of the following

- uses: JS-DevTools/npm-publish@v1
if: github.ref == 'refs/heads/master'
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
package: ./mol/template/app/-/package.json #FIXME path to build module

- uses: hyoo-ru/[email protected]
if: github.ref == 'refs/heads/master'
with:
folder: 'hyoo/template/app/-' #FIXME path to build app
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-*
.DS_Store
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 hyoo.ru

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions app/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.hyoo.ru
14 changes: 14 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html mol_view_root>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- <link href="hyoo/.../logo/logo.svg" rel="icon" /> --> <!--FIXME change to actual logo path -->
</head>
<body mol_view_root>
<div mol_view_root="$hyoo_template_app"></div> <!--FIXME change to actual app name -->
<script src="web.js" charset="utf-8"></script>
</body>
</html>
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Template Repo

Template repo to fast make new $hyoo apps.

## After Make

- [ ] [Rename app then update index.html and CNAME](./app).
- [ ] [Update GitHub Workflow](.github/workflows).
- [ ] Update repo description and link to app at the GitHub.
- [ ] [Add this repo to $hyoo namespace](https://github.com/hyoo-ru/mam_hyoo/blob/master/hyoo.meta.tree).
- [ ] Rewrite this readme.

0 comments on commit b20e6e4

Please sign in to comment.