scalajs-minesweeper is an implementation of Minesweeper in Scala JS.
bin/sbt
> ~fastOptJS
Navigate to: js/target/scala-2.13/classes/index-dev.html
Or download devd from https://github.com/cortesi/devd and run:
devd -ol js/target/scala-2.13/
and navigate to: http://localhost:8000/classes/index-dev.html
Use sbt fullOptJS
and open index-opt.html
for the optimized version.
https://s3.eu-west-2.amazonaws.com/scalajs-minesweeper/resources/index-opt.html
To upload a new version:
set -x -g AWS_REGION eu-west-2
bin/sbt
> fullOptJs
> s3Upload
(this depends on having appropriate S3 credentials)
The S3 bucket is set up with a public read policy:
{
"Version":"2012-10-17",
"Statement":[{
"Sid":"PublicReadGetObject",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::scalajs-minesweeper/*"
]
}
]
}
Copyright (C) 2017 Inigo Surguy.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.