Skip to content

Commit

Permalink
feat: oruga wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
cafadev committed Jun 13, 2023
0 parents commit b46f03a
Show file tree
Hide file tree
Showing 77 changed files with 7,756 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.191.1/containers/vue
{
"name": "Vue project container",
"dockerComposeFile": "../docker-compose.yml",
"service": "frontend",
"workspaceFolder": "/home/fancy-crud/fancy-crud",

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"misterJ.vue-volar-extention-pack",
"lokalise.i18n-ally",
"antfu.iconify",
"dbaeumer.vscode-eslint",
"csstools.postcss",
"bradlc.vscode-tailwindcss",
"formulahendry.auto-close-tag",
"formulahendry.auto-rename-tag",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-spanish",
"anseki.vscode-color",
"eg2.vscode-npm-script",
"redhat.vscode-yaml",
"MisterJ.vue-volar-extention-pack"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [9090]
}
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[*]
end_of_line = lf
indent_size = 2
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
COMPOSE_PROJECT_NAME=fancy-crud

VITE_API_CLIENT_ID=AH1by2RrSxMGPEHqNcCUDWsIlheIEYW2poXZDDoL
VITE_API_CLIENT_SECRET=wHiIbTKuShEocjLtAKCNqYpa5KfLaEYvNcgIYIJOANIsH8JnBjywDcAh993Fgkhk2uMujl0qzzNqr84tNbJvY2bOQZJjozcdHTZTTSeSWYTllGwmmE4TfCrJQgfYEtgp
VITE_APP_TITLE=Vue Template
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
public
46 changes: 46 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"extends": [
"@antfu"
],
"rules": {
"no-console": "warn",
"vue/attribute-hyphenation": ["error", "always", {
"ignore": ["modelValue"]
}],
"vue/v-on-event-hyphenation": ["error", "always", {
"autofix": false,
"ignore": ["update:modelValue"]
}],
"vue/component-tags-order": ["error", {
"order": [ "template", "script", "style" ]
}],
"vue/component-name-in-template-casing": ["error", "kebab-case"],
"vue/custom-event-name-casing": ["error", "kebab-case"],
"vue/block-lang": ["error",
{
"script": {
"lang": "ts"
},
"style": {
"lang": "sass"
}
}
],
"vue/attributes-order": ["error", {
"order": [
"LIST_RENDERING",
"CONDITIONALS",
"DEFINITION",
"RENDER_MODIFIERS",
"TWO_WAY_BINDING",
"OTHER_DIRECTIVES",
"EVENTS",
["UNIQUE", "SLOT"],
"OTHER_ATTR",
"GLOBAL",
"CONTENT"
],
"alphabetical": false
}]
}
}
53 changes: 53 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Node.js CI

on:
push:
branches: [main]
pull_request:
branches: ['*']

jobs:
quality:

runs-on: ${{ matrix.os }}

strategy:
matrix:
# node-version: [10.x, 12.x, 14.x, 15.x, 16.x, 17.x]
node-version: [16.x]
# os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
# - run: npm test

publish:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: [quality]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn run build
- name: Semantic Release
run: |
yarn add -D semantic-release@^19.0.5 \
"@semantic-release/changelog" \
"@semantic-release/commit-analyzer" \
"@semantic-release/github" \
"@semantic-release/release-notes-generator"
npx semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
.vite-ssg-dist
.vite-ssg-temp
*.local
dist
dist-ssr
node_modules
.pnpm-store/
.idea/
*.log
server/media
server/*.sqlite3
__pycache__
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=true
17 changes: 17 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"recommendations": [
"misterJ.vue-volar-extention-pack",
"lokalise.i18n-ally",
"antfu.iconify",
"dbaeumer.vscode-eslint",
"csstools.postcss",
"bradlc.vscode-tailwindcss",
"formulahendry.auto-close-tag",
"formulahendry.auto-rename-tag",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-spanish",
"anseki.vscode-color",
"eg2.vscode-npm-script",
"redhat.vscode-yaml"
]
}
24 changes: 24 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"cSpell.words": [
"Vitesse",
"vmodel"
],
"i18n-ally.keystyle": "nested",
"i18n-ally.localesPaths": [
"locales",
"src/locales"
],
"i18n-ally.sortKeys": true,
"prettier.enable": false,
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"files.associations": {
"*.css": "postcss"
},
"editor.formatOnSave": false,
"i18n-ally.sourceLanguage": "en",
"vite.host": "0.0.0.0",
"vite.port": 9090
}
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:16.13.1

ARG user=fancy-crud
ARG uid=1000
ARG gid=1000

RUN userdel -r node
RUN addgroup --gid $gid ${user}
RUN adduser --disabled-password --gecos '' --uid $uid --gid $gid ${user}

USER ${user}

RUN mkdir -p /home/${user}/${user}

WORKDIR /home/${user}/${user}

COPY --chown=${user}:${user} . .

CMD [ "./setup.sh" ]
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) 2021 Christopher Flores

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 README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ⚠⚠ We're making updates in the documentation ⚠⚠
Loading

0 comments on commit b46f03a

Please sign in to comment.