Skip to content

Commit

Permalink
Merge pull request #164 from online-go/v0.8
Browse files Browse the repository at this point in the history
V0.8
  • Loading branch information
anoek authored Jun 21, 2024
2 parents 810355f + b8b5cce commit b513fb1
Show file tree
Hide file tree
Showing 107 changed files with 13,108 additions and 9,721 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
9 changes: 8 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"words": [
"aabc",
"abcdefghjklmnopqrstuvwxyz",
"AILR",
"aireview",
Expand Down Expand Up @@ -61,6 +62,7 @@
"goban",
"Gobans",
"goquest",
"goscorer",
"groupify",
"Gulpfile",
"hane",
Expand Down Expand Up @@ -89,6 +91,7 @@
"kyus",
"Leela",
"lerp",
"lightvector",
"linebreak",
"localstorage",
"malk",
Expand Down Expand Up @@ -140,6 +143,7 @@
"shownotesindicator",
"Sitewide",
"slowstrobe",
"snapbacks",
"sodos",
"stdev",
"styl",
Expand Down Expand Up @@ -170,6 +174,7 @@
"unhighlight",
"unitify",
"Unranked",
"unscorable",
"unstarted",
"uservoice",
"usgc",
Expand All @@ -188,6 +193,8 @@
],
"language": "en,en-GB",
"ignorePaths": [
"test/autoscore_test_files"
"test/autoscore_test_files",
"src/goscorer",
"*.d.ts"
]
}
34 changes: 24 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,59 @@ SLACK_WEBHOOK=$(shell cat ../ogs/.slack-webhook)

all dev:
yarn run dev

build: lib types

lib: build-debug build-production types

build-debug:
yarn run build-debug

build-production:
yarn run build-production

types:
yarn run dts


lint:
yarn run lint

test:
yarn run test

detect-duplicate-code duplicate-code-detection:
yarn run detect-duplicate-code

doc docs typedoc:
yarn run typedoc

publish_docs: typedoc
cd docs && git add docs && git commit -m "Update docs" && git push

clean:
rm -Rf lib node

publish push: publish_npm upload_to_cdn notify
publish push: publish_npm publish_docs 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:
rm -Rf deployment-staging-area;
mkdir deployment-staging-area;
cp lib/goban.js* deployment-staging-area
cp lib/goban.min.js* deployment-staging-area
cp lib/engine.js* deployment-staging-area
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 b513fb1

Please sign in to comment.