New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@atamore/rsl

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atamore/rsl

React Server Launcher

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

RSL

rsl is a tool which helps you to bootstrap your universal React application.

While developing your app with rsl you can achieve the same convenience as with next.js, but forget about any restrictions.

Features

  • Hot reloading (HMR) both on client and server. No more restarts.
  • Single webpack configuration entry for all the environments. You no longer need to create a dozen of webpack.config files.
  • Extremely simple CLI. When your project is set, just run npx rsl start and start developing.
  • Flexibility. With rsl you can configure your application any way you desire. While the project was initially made for React applications, it should also work for Angular or any other framework which supports SSR.

Example

Check out the examples folder for a sample project configuration.

Usage

  • npm install @atamore/rsl or yarn install @atamore/rsl
  • Add a rsl section to your package.json with the following fields:
"rsl": {
    "entry": "server.js",
    "client": "src/core/client/entry.js",
    "server": "src/core/server/entry.js",
    "webpack": "webpack/compose.js"
}

entry is a path to the file, which launches the server
client is a path to file, which initializes the client side of your app
server is a path to file, which handles SSR
webpack is a path to file, which generates the webpack configs

For more information about the exported modules please refer to the examples.

  • npx rsl start

Similar packages

  • universal-webpack Works in a similar way, but is harder to configure and does not support hot reloading on the server.

FAQs

Package last updated on 14 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts