build script

This commit is contained in:
Alexander Popov 2023-04-30 16:22:50 +03:00
parent 7b9c1b4bc8
commit fff2882583
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
3 changed files with 19 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist/

View File

@ -1,3 +1,5 @@
# ⚠️ STATUS: DEVELOPMENT
![engine_icon](/src/icons/apple-touch-icon.png) ![engine_icon](/src/icons/apple-touch-icon.png)
# Documentation # Documentation
@ -15,8 +17,17 @@ cd src/js/
rollup main.js --file engine.js --format es rollup main.js --file engine.js --format es
``` ```
# Use it
...
# Contribute # Contribute
## Branch info
- `master` — current `dev` branch.
- `release` — latest **stable** version branch.
## Git hooks ## Git hooks
### pre-commit ### pre-commit

View File

@ -1,4 +1,11 @@
{ {
"version": "beeeeeeta",
"scripts": {
"build": "rm -rf ./dist/ && rollup src/js/main.js --file dist/engine-$(npm pkg get version | tr -d '\"').js --format es",
"prettier-check": "prettier --check .",
"prettier-write": "prettier --write .",
"editorconfig-check": "ec ."
},
"devDependencies": { "devDependencies": {
"prettier": "2.8.7" "prettier": "2.8.7"
} }