Skip to content

Commit

Permalink
Merge pull request #51 from prismicio/v3
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr authored Jul 18, 2022
2 parents 31626f3 + c5d3406 commit f9b59cf
Show file tree
Hide file tree
Showing 111 changed files with 14,889 additions and 15,716 deletions.
7 changes: 0 additions & 7 deletions .babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

# custom
dist
components
!src/components
examples/**/package-lock.json
stats.html

# os
.DS_Store
Expand Down
15 changes: 11 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ module.exports = {
node: true,
},
parserOptions: {
parser: "@typescript-eslint/parser",
ecmaVersion: 2020,
},
extends: ["plugin:prettier/recommended", "plugin:vue/recommended"],
plugins: [],
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"@vue/typescript/recommended",
],
plugins: ["eslint-plugin-tsdoc"],
rules: {
"no-console": ["warn", { allow: ["info", "warn", "error"] }],
"no-debugger": "warn",
Expand All @@ -19,13 +25,14 @@ module.exports = {
"error",
{ blankLine: "always", prev: "*", next: "return" },
],
"no-unused-vars": [
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"no-var-requires": "off",
"@typescript-eslint/no-var-requires": "off",
"tsdoc/syntax": "warn",
},
};
60 changes: 60 additions & 0 deletions .github/prismic-oss-ecosystem.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
node: [14]

steps:
- uses: actions/setup-node@v2
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

Expand All @@ -45,4 +46,11 @@ jobs:
run: npm run build

- name: Coverage
if: matrix.os == 'ubuntu-latest' && matrix.node == 14
uses: codecov/codecov-action@v1

- name: Size
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node == 14
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/issues--bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
> This issue has been labeled as a **bug** since it was created using the [🚨 **Bug Report Template**](./new?assignees=&labels=bug&template=bug_report.md&title=).
Hi there, thank you so much for the report!

Following our [Maintenance Process](../blob/HEAD/CONTRIBUTING.md#maintaining), we will review your bug report and get back to you _next Wednesday_. To ensure a smooth review of your issue and avoid unnecessary delays, please make sure your issue includes the following:

- Information about your environment and packages you use (Node.js version, package names and their versions, etc.)
_Feel free to attach a copy of your `package.json` file._
- Any troubleshooting steps you already went through
- A minimal reproduction of the issue, and/or instructions on how to reproduce it

If you have identified the cause of the bug described in your report and know how to fix it, you're more than welcome to [open a pull request](../pulls) addressing it. Check out our [quick start guide](../blob/HEAD/CONTRIBUTING.md#quick-start) for a simple contribution process.

If you think your issue is a _question_ (not a bug) and would like quicker support, please _close this issue_ and forward it to an appropriate section on our community forum: https://community.prismic.io

_- The Prismic Open-Source Team_
13 changes: 13 additions & 0 deletions .github/workflows/issues--feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
> This issue has been labeled as a **feature request** since it was created using the [🙋‍♀️ **Feature Request Template**](./new?assignees=&labels=enhancement&template=feature_request.md&title=).
Hi there, thank you so much for your request!

Following our [Maintenance Process](../blob/HEAD/CONTRIBUTING.md#maintaining), we will review your request and get back to you soon. If we decide to implement it, will proceed to implement the feature during the _last week of the month_. In the meantime, feel free to provide any details to help us better understand your request, such as:

- The context that made you think of this feature request
- As many details about the solution you'd like to see implemented, how it should behave, etc.
- Any alternative solution you have considered

If you think you can implement the proposed change yourself, you're more than welcome to [open a pull request](../pulls) implementing the new feature. Check out our [quick start guide](../blob/HEAD/CONTRIBUTING.md#quick-start) for a simple contribution process. Please note that submitting a pull request does not guarantee the feature will be merged.

_- The Prismic Open-Source Team_
29 changes: 29 additions & 0 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: issues

on:
issues:
types:
- opened

jobs:
issues:
if: github.event.issue.author_association == 'NONE'
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@master

- name: Reply bug report
if: contains(github.event.issue.labels.*.name, 'bug')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_URL: ${{ github.event.issue.html_url }}
run: gh issue comment $ISSUE_URL --body-file ./.github/workflows/issues--bug_report.md

- name: Reply feature request
if: contains(github.event.issue.labels.*.name, 'enhancement')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_URL: ${{ github.event.issue.html_url }}
run: gh issue comment $ISSUE_URL --body-file ./.github/workflows/issues--feature_request.md
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# custom
dist
components
!src/components
examples/**/package-lock.json
stats.html

# os
.DS_Store
Expand Down
3 changes: 0 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

# custom
dist
components
!src/components
examples/**/package-lock.json
stats.html

# os
.DS_Store
Expand Down
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"plugins": ["prettier-plugin-jsdoc"],
"jsdocSeparateReturnsFromParam": true,
"jsdocSeparateTagGroups": true,
"jsdocSingleLineComment": false,
"tsdoc": true,
"printWidth": 80,
"useTabs": true,
"semi": true,
Expand Down
3 changes: 3 additions & 0 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const pkg = require("./package.json");

module.exports = [pkg.module, pkg.main].filter(Boolean).map(path => ({ path }));
Loading

0 comments on commit f9b59cf

Please sign in to comment.