Skip to content

Commit

Permalink
Integrate goscorer and update the stone removal phase code
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Jun 8, 2024
1 parent a3bf2e3 commit ca2b00c
Show file tree
Hide file tree
Showing 29 changed files with 2,684 additions and 354 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module.exports = {
rules: {
"file-header": [
true,
"([Cc]opyright ([(][Cc][)])?\\s*[Oo]nline-[gG]o.com)|(bin/env)", // cspell: disable-line
"([Cc]opyright ([(][Cc][)]))|(bin/env)", // cspell: disable-line
],
"import-spacing": true,
"whitespace": [
Expand Down
7 changes: 4 additions & 3 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"goban",
"Gobans",
"goquest",
"goscorer",
"groupify",
"Gulpfile",
"hane",
Expand Down Expand Up @@ -89,6 +90,7 @@
"kyus",
"Leela",
"lerp",
"lightvector",
"linebreak",
"localstorage",
"malk",
Expand Down Expand Up @@ -170,6 +172,7 @@
"unhighlight",
"unitify",
"Unranked",
"unscorable",
"unstarted",
"uservoice",
"usgc",
Expand All @@ -187,7 +190,5 @@
"zoomable"
],
"language": "en,en-GB",
"ignorePaths": [
"test/autoscore_test_files"
]
"ignorePaths": ["test/autoscore_test_files", "src/goscorer"]
}
15 changes: 8 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ SLACK_WEBHOOK=$(shell cat ../ogs/.slack-webhook)

all dev:
yarn run dev

build lib types:
yarn run build-debug
yarn run build-production
cp -Rp lib/src/* lib/

lint:
yarn run lint
Expand All @@ -20,19 +25,15 @@ publish push: publish_npm upload_to_cdn notify

beta: beta_npm upload_to_cdn

beta_npm:
yarn run build-debug
yarn run build-production
beta_npm: build
yarn publish --tag beta ./

notify:
MSG=`git log -1 --pretty="%B" | sed s/\"//g | sed s/\'//g `; \
VERSION=`git describe --long`; \
curl -X POST -H 'Content-type: application/json' --data '{"text":"'"[GOBAN] $$VERSION $$MSG"'"}' $(SLACK_WEBHOOK)

publish_npm:
yarn run build-debug
yarn run build-production
publish_npm: build
yarn publish ./

upload_to_cdn:
Expand All @@ -44,4 +45,4 @@ upload_to_cdn:
cp lib/engine.min.js* deployment-staging-area
gsutil -m rsync -r deployment-staging-area/ gs://ogs-site-files/goban/`node -pe 'JSON.parse(require("fs").readFileSync("package.json")).version'`/

.PHONY: doc docs test clean all dev typedoc publich push
.PHONY: doc build docs test clean all dev typedoc publich push lib types
Loading

0 comments on commit ca2b00c

Please sign in to comment.