Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add playground to sparrowql #41

Merged
merged 6 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage
node_modules
lib
/playground
14 changes: 13 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Install dependencies
run: npm i -g npm@8 --no-audit && npm ci --no-audit
- name: Install dependencies in playground
run: cd playground && npm ci --no-audit
- name: Lint
run: npm run lint
- name: Test
Expand All @@ -37,4 +39,14 @@ jobs:
uses: codecov/[email protected]
with:
fail_ci_if_error: true

- name: Build docs
run: cd playground && npm run build
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.node-version == '20.x'
- name: Deploy docs
uses: peaceiris/[email protected]
with:
allow_empty_commit: true
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./playground/dist
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.node-version == '20.x'
158 changes: 0 additions & 158 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"coverage": "jest --coverage",
"lint": "npm run lint:code && npm run lint:types",
"lint": "npm run lint:code && npm run lint:types && cd playground && npm run lint",
"lint:code": "eslint --cache --cache-location node_modules/.cache/eslint --cache-strategy content --ext js,ts .",
"lint:types": "tsc --build tsconfig.global.json",
"build": "tsc --build tsconfig.build.json",
Expand Down
9 changes: 9 additions & 0 deletions playground/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
5 changes: 5 additions & 0 deletions playground/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.idea
/coverage

/node_modules
/dist
25 changes: 25 additions & 0 deletions playground/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"root": true,
"env": {
"browser": true,
"es2020": true
},
"extends": [
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false
},
"plugins": [
"react-refresh"
],
"rules": {
"react-refresh/only-export-components": [
"warn",
{
"allowConstantExport": true
}
]
}
}
24 changes: 24 additions & 0 deletions playground/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions playground/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const settings = require('eslint-config-vazco/default.json');

module.exports = settings.rules['prettier/prettier'][1];
Loading
Loading