Skip to content
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 .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/coverage
/node_modules
/types
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/coverage
/node_modules
/package-lock.json
/types
.claude/
CLAUDE.md
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
COVERAGE_DIR := coverage
NODE_MODULES := node_modules
SRC_FILES := $(wildcard src/*.mjs)
TEST_GLOB := tests/**/*.test.mjs
TYPES_DIR := types

$(NODE_MODULES): package.json package-lock.json
npm install
touch $(NODE_MODULES)

$(TYPES_DIR): $(SRC_FILES) tsconfig.build.json $(NODE_MODULES)
npx tsc --project tsconfig.build.json
touch $(TYPES_DIR)
Comment thread
mcharytoniuk marked this conversation as resolved.

.PHONY: clean
clean:
rm -rf $(COVERAGE_DIR)
rm -rf $(COVERAGE_DIR) $(TYPES_DIR)

.PHONY: coverage
coverage: $(NODE_MODULES)
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Layouting and tiling engine.

## Installation

```sh
npm install glazur
```

## Radial layout

`RadialLayout` grows a rooted tree outward from its root as an evenly spaced radial burst:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,28 @@
"name": "glazur",
"version": "0.1.0",
"description": "Layouting and tiling engine",
"files": [
"src",
"types"
],
"types": "./types/index.d.mts",
"exports": {
".": "./src/index.mjs"
".": {
"types": "./types/index.d.mts",
"default": "./src/index.mjs"
}
},
"scripts": {
"coverage": "make coverage",
"prepack": "make types",
"test": "make test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/intentee/glazur.git"
},
"author": "",
"license": "MIT",
"author": "Mateusz Charytoniuk <mateusz@intentee.com>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/intentee/glazur/issues"
},
Expand Down
10 changes: 10 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"noEmit": false,
"outDir": "types",
"rootDir": "src"
}
}