Skip to content

Commit c3dd432

Browse files
committed
feat(app): Init module
0 parents  commit c3dd432

32 files changed

+7990
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_size = 2
6+
indent_style = space
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
.nuxt
3+
*.log
4+
cache/
5+
lib/
6+
types/
7+
.DS_Store
8+
coverage
9+
sw.*
10+
dist

.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
root: true,
3+
extends: [
4+
'@nuxtjs/eslint-config-typescript'
5+
]
6+
}

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug report
3+
about: Report a bug report to help us improve the module.
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
<!-- **IMPORTANT!**
11+
Before reporting a bug, please make sure that you have read through our documentation and you think your problem is indeed an issue related to our module. -->
12+
13+
### Version
14+
@nuxtjs/supabase: <!-- ex: v0.1.0 -->
15+
nuxt: <!-- ex: v2.13.0 -->
16+
17+
### Reproduction Link
18+
19+
<!--
20+
A minimal test case based on one of:
21+
- a GitHub repository that can reproduce the bug
22+
-->
23+
24+
### Steps to reproduce
25+
26+
27+
### What is Expected?
28+
29+
30+
### What is actually happening?

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Nuxt Community Discord
4+
url: https://discord.nuxtjs.org/
5+
about: Consider asking questions about the module here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea or enhancement for the module.
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
### Is your feature request related to a problem? Please describe.
11+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
12+
13+
### Describe the solution you'd like
14+
<!-- A clear and concise description of what you want to happen. -->
15+
16+
### Describe alternatives you've considered
17+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
18+
19+
### Additional context
20+
<!-- Add any other context or screenshots about the feature request here. -->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Question
3+
about: Ask a question about the module.
4+
title: ''
5+
labels: 'question'
6+
assignees: ''
7+
8+
---
9+
10+
<!-- **IMPORTANT!**
11+
Please make sure to look for an answer to your question in our documentation and the documentation before asking a question here.
12+
13+
If you have a general question regarding the module use Discord `modules` channel. Thanks!
14+
15+
Nuxt Discord: https://discord.nuxtjs.org/
16+
-->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!--- Provide a general summary of your changes in the title above -->
2+
3+
## Types of changes
4+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
5+
- [ ] Bug fix (a non-breaking change which fixes an issue)
6+
- [ ] New feature (a non-breaking change which adds functionality)
7+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
8+
9+
10+
## Description
11+
<!--- Describe your changes in detail -->
12+
<!--- Why is this change required? What problem does it solve? -->
13+
<!--- If it resolves an open issue, please link to the issue here. For example "Resolves: #137" -->
14+
15+
16+
## Checklist:
17+
<!--- Put an `x` in all the boxes that apply. -->
18+
<!--- If your change requires a documentation PR, please link it appropriately -->
19+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
20+
- [ ] My change requires a change to the documentation.
21+
- [ ] I have updated the documentation accordingly.
22+
- [ ] I have added tests to cover my changes (if not applicable, please state why)

.github/workflows/ci-dev.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: ci-dev
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
pull_request:
8+
branches:
9+
- dev
10+
11+
jobs:
12+
ci:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest] # macos-latest, windows-latest
18+
node: [16]
19+
20+
steps:
21+
- uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node }}
24+
25+
- name: Checkout
26+
uses: actions/checkout@master
27+
with:
28+
persist-credentials: false
29+
fetch-depth: 0
30+
31+
- name: Cache
32+
uses: actions/cache@v2
33+
with:
34+
path: node_modules
35+
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
36+
37+
- name: Dependencies
38+
if: steps.cache.outputs.cache-hit != 'true'
39+
run: yarn
40+
41+
- name: Lint
42+
run: yarn lint
43+
44+
- name: Build
45+
run: yarn build
46+
47+
- name: Release Edge
48+
if: github.event_name == 'push'
49+
run: ./scripts/release-edge.sh
50+
env:
51+
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: ci-main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
ci:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest] # macos-latest, windows-latest
18+
node: [16]
19+
20+
steps:
21+
- uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node }}
24+
25+
- name: Checkout
26+
uses: actions/checkout@master
27+
with:
28+
persist-credentials: false
29+
fetch-depth: 0
30+
31+
- name: Cache
32+
uses: actions/cache@v2
33+
with:
34+
path: node_modules
35+
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
36+
37+
- name: Dependencies
38+
if: steps.cache.outputs.cache-hit != 'true'
39+
run: yarn
40+
41+
- name: Lint
42+
run: yarn lint
43+
44+
- name: Build
45+
run: yarn build
46+
47+
- name: Version Check
48+
id: check
49+
uses: EndBug/version-check@v2
50+
with:
51+
token: ${{ secrets.GITHUB_TOKEN }}
52+
53+
- name: Release
54+
if: github.event_name == 'push' && steps.check.outputs.changed == 'true'
55+
run: ./scripts/release.sh
56+
env:
57+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 commit comments

Comments
 (0)