• Stars
    star
    257
  • Rank 158,728 (Top 4 %)
  • Language
    JavaScript
  • Created almost 11 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Source for https://www.scala-js.org/

Website for Scala.js

This is the source code for the Scala.js website at http://www.scala-js.org/.

If you intended to look at the Scala.js source code itself, you can find it here: github.com/scala-js/scala-js.

Contributing

The key to contributing is being able to edit and preview your content. Your pull requests are welcome!

Set up

With Docker

You need to have Docker Engine and Docker Compose installed on your machine. Under Mac OS (Intel or Apple silicon), instead of installing Docker Desktop you can also use HomeBrew with Colima: brew install colima docker docker-compose.

docker-compose up --build

On Linux you may have to prefix that command with sudo, depending on your Docker setup.

The generated site is available at http://localhost:4000.

When the website dependencies change (the content of the Gemfile), you have to kill and re-run the command.

If you have problems with the Docker image or want to force the rebuild of the Docker image:

docker-compose build --no-cache

Manually with Ruby tooling

As this website is built with Jekyll, we will need to set up some Ruby tooling.

First, install RVM (Ruby Version Manager): https://rvm.io/rvm/install Then run the following commands:

$ rvm use 2.7.5 --install

# Set up Bundler, a Ruby package manager
# It downloads dependencies specified in a Gemfile
# but into a local path unlike gem
$ gem install bundler
 # and if this fails, try installing libffi first (distro-specific):
 # sudo apt install libffi-dev

# Install dependencies such as Jekyll and its plugins:
$ bundle install

# Do a full build:
$ bundle exec jekyll build

Editing live

This is what you would do after the initial installation:

$ bundle exec jekyll serve --watch

More Repositories

1

scala-js

Scala.js, the Scala to JavaScript compiler
Scala
4,484
star
2

scala-js-dom

Statically typed DOM API for Scala.js
Scala
302
star
3

scala-js-java-time

Scala.js implementation for java.time in JDK8
Scala
87
star
4

scalajs-tutorial

Source code accompanying the Scala.js tutorial
Scala
66
star
5

scala-js-env-selenium

Scala.js environment
Scala
47
star
6

scalajs-cross-compile-example

A small example project on how to cross compile Scala.js and Scala JVM
Scala
41
star
7

vite-plugin-scalajs

Vite plugin for integration of Scala.js
TypeScript
34
star
8

scala-js-macrotask-executor

Scala
33
star
9

vite.g8

Template for Scala.js with Vite
Scala
18
star
10

jsdependencies

An sbt plugin to manage JS dependencies in Scala.js, in the good old script style
Scala
11
star
11

scala-js-java-logging

Scala.js implementation for java.logging
Scala
10
star
12

scala-js-stubs

Stubs to use Scala.js annotations in cross-platform codebases
Scala
9
star
13

scala-js-env-jsdom-nodejs

Node.js with jsdom environment for Scala.js
Scala
8
star
14

scala-js-java-securerandom

Implementation of java.security.SecureRandom for Scala.js in browsers and Node.js
Scala
6
star
15

scala-js-cli

Command Line Interface for the Scala.js compiler and linker
Scala
5
star
16

scala-js-test-scala-nightly

Builds Scala.js against the nightly builds of Scala
Shell
3
star
17

scala-js-weakreferences

Implementation of java.lang.ref.{WeakReference,ReferenceQueue} for Scala.js
Scala
3
star
18

scala-js-env-phantomjs

PhantomJS environment for Scala.js
Scala
2
star
19

scala-js-logging

Tiny logging API for use by the Scala.js linker and JS envs.
Scala
1
star