diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..7745062 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* -text diff --git a/.github/workflows/hyoo_template_app.yml b/.github/workflows/hyoo_template_app.yml new file mode 100644 index 0000000..78574b3 --- /dev/null +++ b/.github/workflows/hyoo_template_app.yml @@ -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/gh-deploy@v4.4.1 + if: github.ref == 'refs/heads/master' + with: + folder: 'hyoo/template/app/-' #FIXME path to build app diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d98651d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +-* +.DS_Store diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4c51717 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/app/CNAME b/app/CNAME new file mode 100644 index 0000000..8dd9ace --- /dev/null +++ b/app/CNAME @@ -0,0 +1 @@ +*.hyoo.ru \ No newline at end of file diff --git a/app/index.html b/app/index.html new file mode 100644 index 0000000..e10f14e --- /dev/null +++ b/app/index.html @@ -0,0 +1,14 @@ + + + + + + + + + + +
+ + + diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..3e924c8 --- /dev/null +++ b/readme.md @@ -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.