All Projects → Atry → scalajs-all-in-one-template

Atry / scalajs-all-in-one-template

Licence: Unlicense License
The All-in-One Scala.js static web project template

Programming Languages

scala
5932 projects
HTML
75241 projects
SCSS
7915 projects

Projects that are alternatives of or similar to scalajs-all-in-one-template

queueable
Convert streams to async ⌛ iterables ➰
Stars: ✭ 43 (-8.51%)
Mutual labels:  reactive-programming
gatsby-theme-amsterdam
A Gatsby theme for artists, photographers and other creative folks 👨‍🎨
Stars: ✭ 133 (+182.98%)
Mutual labels:  static-site
chatr
Chat app using Azure Web PubSub, Static Web Apps and other Azure services
Stars: ✭ 51 (+8.51%)
Mutual labels:  static-site
subtle-ui
A collection of clever yet understated user interactions found on the web
Stars: ✭ 39 (-17.02%)
Mutual labels:  static-site
sbt-jni
SBT Plugin to ease working with JNI
Stars: ✭ 110 (+134.04%)
Mutual labels:  sbt
steren
My personal website
Stars: ✭ 36 (-23.4%)
Mutual labels:  static-site
headless-chrome
Implementation of the new headless chrome with chromedriver and selenium.
Stars: ✭ 34 (-27.66%)
Mutual labels:  sbt
gatsby-starter-landing-page
🖱 A simple, minimal Gatsby starter for quick and easy landing pages
Stars: ✭ 132 (+180.85%)
Mutual labels:  static-site
contentz
Create Content, Get a Highly Optimized Website
Stars: ✭ 57 (+21.28%)
Mutual labels:  static-site
emanote
Spiritual successor to neuron, based on Ema.
Stars: ✭ 301 (+540.43%)
Mutual labels:  static-site
jekyll-skeleton
Scaffolding to start with a Jekyll website
Stars: ✭ 27 (-42.55%)
Mutual labels:  static-site
kitsu-season-trends
🦊 Kitsu seasonal anime trends
Stars: ✭ 13 (-72.34%)
Mutual labels:  static-site
website
The source code of Benjamin Lupton's website
Stars: ✭ 22 (-53.19%)
Mutual labels:  static-site
nera
A lightweight static site generator
Stars: ✭ 12 (-74.47%)
Mutual labels:  static-site
artisan-static
A feature-rich starter template for building a static Jigsaw blog hosted on Netlify.
Stars: ✭ 40 (-14.89%)
Mutual labels:  static-site
aleksandrhovhannisyan.com
My online resume and blog, created with 11ty, Sass, and JavaScript.
Stars: ✭ 50 (+6.38%)
Mutual labels:  static-site
landing
This project builds the static and internationalized landing page of Upplication.
Stars: ✭ 26 (-44.68%)
Mutual labels:  static-site
wobbuffetch
Reactive wrapper for Fetch API
Stars: ✭ 28 (-40.43%)
Mutual labels:  reactive-programming
react-mobx-router5
React components for routing solution using router5 and mobx
Stars: ✭ 58 (+23.4%)
Mutual labels:  reactive-programming
dimension-jekyll-theme
A Jekyll version of the "Dimension" theme by HTML5 UP.
Stars: ✭ 29 (-38.3%)
Mutual labels:  static-site

All-in-One Scala.js Static Web Project Template

Open in Gitpod Scala CI

This repository is a template of the basic structure for a Scala.js web project, contains all the best technologies in Scala.js community until 2021:

Other libraries and tools can be found in sbt settings.

This template contains settings for a static web project, and you can additionally configure Play or Akka HTTP dependencies in web/build.sbt to turn it into a dynamic web project.

Directory Structure

  • web/

    The sbt-web project for web assets

    • build.sbt

      Sbt settings for the sbt-web project, which contains WebJars dependency configurations, including SASS / SCSS dependencies and static resources from external libraries.

    • src/main/assets/

      The root directory of static assets sources.

      • index.html

        The main page in release mode, which references uglified CSS and JS resources.

      • devMod.html

        The main page in development mode, which references indented CSS and JS resources.

      • style.scss

        The style sheet used by main page in SCSS syntax, which will be compiled to style.css by a sbt-web pipeline.

    • target/web/public/main/

      The root directory of static assets output.

      • lib/

        The output directory for Webjars dependencies.

  • js/

    The Scala.js project to create JS output used in the sbt-web project.

    • build.sbt

      Sbt settings for the Scala.js project, which contains Scala.js settings, NPM dependencies and type definitions.

    • src/main/scala/

      The directory contains Scala.js source files.

  • project/

    • plugins.sbt

      Sbt plugins dependencies.

Requirements

How to use this template?

Just clone this repository, and the following sbt tasks are available.

Build

Run the following command:

sbt assets

Then visit web/target/web/public/main/devMod.html to browse the main page.

Release mode build

By default, the assets command builds Scala.js in development mode. To build this project in release mode

sbt "set scalaJSStage := FullOptStage" assets

Then visit web/target/web/public/main/index.html to browse the main page in release mode.

Test

Run the following command:

sbt test

Then the examples in Scaladoc comments will be ran by ScalaTest.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].