Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goscorer integration and stone removal phase overhaul #162

Closed
wants to merge 14 commits into from
Closed
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
Loading