Skip to content

Commit

Permalink
Feat: initial lib & demo (#2)
Browse files Browse the repository at this point in the history
* initial procedural noise generation, height profiles (wip), octree data struct

* external types

* use aresrpg-engine + three deps

* refactor(HeightProfiler)

* add parcel demo

* cleanup: remove no longer needed files

* add parcel demo

* fix: halfing height for demo purpose

* fix: types + misnamed file, code comments

* feat: lib

* feat(refactor): add CI config, cleanup unused files and deps, format using standard config

* chore: add Husky pre-commit hook

* chore(npm): ignore non packed files

* refactor: replace vercel with tsc for common practices

* use aresrpg-engine ts config

* move the demo to aresrpg-dapp

* fix: correct bundle path

* lint: avoid undefined

* style: linting fixes

* fix: auto-format & missing tsc lint config

* types: fix errors

* style: fix lint errors

---------

Co-authored-by: Sceat <fetch@sceat.xyz>
Co-authored-by: Jérémie Piellard <jeremie.piellard@gmail.com>
  • Loading branch information
3 people committed Mar 7, 2024
1 parent e613e8d commit 7a9ed7b
Show file tree
Hide file tree
Showing 18 changed files with 3,086 additions and 1,535 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.parcel*
dist
7 changes: 5 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": ["standard", "prettier"],
"parser": "@babel/eslint-parser",
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"requireConfigFile": false,
"sourceType": "module",
Expand All @@ -17,6 +18,8 @@
"prefer-destructuring": "error",
"prefer-numeric-literals": "error",
"import/order": ["error", { "newlines-between": "always" }],
"no-throw-literal": 0
"no-throw-literal": 0,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"]
}
}
37 changes: 27 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,36 @@ name: CI

on:
push:
branches:
- master
tags:
- v*
pull_request:

jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# - name: Publish to Registry
# uses: elgohr/Publish-Docker-Github-Action@master
# with:
# name: org/image
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# registry: ghcr.io
# tag_semver: true
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
cache: 'npm'
- run: npm ci
- run: npm run lint
publish-npm:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
cache: 'npm'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
.env
types
types
dist/
.parcel-cache
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
src
.github
test
.gitignore
.parcel-cache
.prettierrc
.eslintrc
.eslintignore
*.tgz
Loading

0 comments on commit 7a9ed7b

Please sign in to comment.