Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 44 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "hashlips-art-engine",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "lts",
"pnpm": "true",
"yarn": "true"
},
"ghcr.io/devcontainers/features/python:1": {
"version": "3.11"
},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": "false",
"installOhMyZsh": "false"
}
},
"remoteUser": "vscode",
"runArgs": ["--init"],
"containerEnv": {
"PLAYWRIGHT_BROWSERS_PATH": "0"
},
"onCreateCommand": "sudo apt-get update && sudo apt-get install -y build-essential git jq ripgrep libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev librsvg2-dev",
"postCreateCommand": "python3 -m pip install --user pre-commit && npm install && python3 -m pre_commit install && python3 -m pre_commit install --hook-type commit-msg && echo 'Devcontainer ready. Run npm run dev to start the generator or npm run check to validate the toolkit.'",
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-python.python",
"ms-python.vscode-pylance",
"visualstudioexptteam.vscodeintellicode",
"eamodio.gitlens"
],
"settings": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.trimTrailingWhitespace": true,
"javascript.validate.enable": false
}
}
}
}
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Wix auth configuration (used by backend/auth.jsw)
APP_DOMAIN=
SUPPORTED_CHAIN_ID=
WIX_SECRET_JWT_KEY=
49 changes: 49 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
module.exports = {
root: true,
env: {
node: true,
es2022: true
},
extends: ['eslint:recommended', 'plugin:promise/recommended', 'plugin:n/recommended'],
plugins: ['import'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
rules: {
'no-console': 'off',
'import/order': [
'warn',
{
'newlines-between': 'always',
alphabetize: { order: 'asc', caseInsensitive: true }
}
],
'n/shebang': 'off'
},
ignorePatterns: [
'dist/',
'build/',
'node_modules/',
'layers/',
'docs/',
'backend/',
'pages/',
'public/',
'modules/',
'utils/',
'bazaarcodexv1.html',
'index.js'
],
overrides: [
{
files: ['__tests__/**/*.js', 'vitest.config.mjs'],
env: {
node: true
},
rules: {
'n/no-unpublished-import': 'off'
}
}
]
};
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
* text=auto eol=lf

*.png binary
*.jpg binary
*.gif binary
*.ico binary
*.psd binary

*.sh linguist-language=Shell
*.ps1 linguist-language=PowerShell
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
- "ci"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
ignore:
- dependency-name: "canvas"
update-types:
- "version-update:semver-major"
24 changes: 24 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Summary

- _

## Testing

- [ ] `npm run lint`
- [ ] `npm run typecheck`
- [ ] `npm test`
- [ ] `npm run build`

## Screenshots / Videos (if UI)

_Add before/after images or screen recordings._

## Deploy preview

- URL: _

## Checklist

- [ ] Conventional Commit title
- [ ] Added/updated tests
- [ ] Updated docs (if needed)
14 changes: 14 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
titleOnly: false
types:
- feat
- fix
- chore
- docs
- refactor
- test
- ci
- build
scopes: []
allowCustomScopes: true
ignoreLabels: []
allowEmptyScope: true
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev librsvg2-dev

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Type check
run: npm run typecheck

- name: Test
run: npm test -- --reporter=junit --outputFile=vitest-results.xml

- name: Build
run: npm run build

- name: Upload coverage
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.node-version }}
path: |
coverage
vitest-results.xml
if-no-files-found: ignore
27 changes: 27 additions & 0 deletions .github/workflows/pr-title-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PR Title Check

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
lint-pr-title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
chore
docs
ci
build
test
refactor
requireScope: false
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,23 @@ dist
# OSX

.DS_Store
.idea/
.vs/
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json

# virtual envs / tooling
.venv/
venv/
.python-version

# local data and artifacts
*.iml
*.local
*.swp
*.swo
*.orig
tmp/
temp/
*.log
34 changes: 34 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: lint
name: lint
entry: npm run lint
language: system
pass_filenames: false
- id: typecheck
name: typecheck
entry: npm run typecheck
language: system
pass_filenames: false
- id: format
name: prettier check
entry: npm run format
language: system
pass_filenames: false
- repo: local
hooks:
- id: commitlint
name: commitlint
entry: npx commitlint --edit "$1"
language: system
pass_filenames: false
stages: [commit-msg]
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"printWidth": 90,
"singleQuote": true,
"trailingComma": "none",
"semi": true,
"arrowParens": "always"
}
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-python.python",
"ms-python.vscode-pylance",
"streetsidesoftware.code-spell-checker",
"eamodio.gitlens"
]
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"javascript.validate.enable": false,
"search.exclude": {
"node_modules": true,
"dist": true,
"build": true
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions BazaarBids.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
listingId,listingTitle,tokenId,wallet,amount,currency,depositTx,message,status,createdAt,updatedAt,bidderMemberId,bidderDisplayName,verified,createdByIp,createdByUserAgent
2 changes: 2 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO: replace with the real maintainers
* @TODO-ADD-YOUR-GITHUB-USERNAME
Loading