Soya Next
  • Introduction
  • Packages
    • soya-next
    • soya-next-cli
    • soya-next-scripts
    • soya-next-server
  • Getting Started
    • Setup
    • Directory Structure
    • Creating an App
    • Build the App for Production
  • User Guide
    • Analyzing Dependencies
    • Configure Redux Store
    • Custom Babel Configuration
    • Custom Document
    • Custom Marlint Configuration
    • Custom Routing
    • Typescript Configuration
    • Universal Environment Configuration
  • Migration Guide
    • 0.4.x to 0.5.x
  • API Reference
    • applyReducers([reducers])
    • createPage([...connectArgs])(Page, [reducers])
    • createRouter(app, [options])
    • withLocale
    • LocaleLink
  • Examples
    • Apollo
    • Authentication
    • CSS Modules
    • CSS Modules with SCSS
    • Custom Routes
    • Internationalization
    • Internationalization with Redux
    • Redirection
    • TodoMVC
  • License
Powered by GitBook
On this page
  • Installation
  • Usage
  1. Packages

soya-next-scripts

Previoussoya-next-cliNextsoya-next-server

Last updated 7 years ago

A CLI which contains configuration and scripts used by .

Installation

To install it, run the following:

npm install --save soya-next-scripts

Note: If you're starting a new project, consider using instead for easier setup.

Usage

To start your development server, run the following:

soya-next-scripts dev

To build for production, run the following:

soya-next-scripts build

To start your production server, run the following:

soya-next-scripts start

To analyze output bundles, run the following:

# Build and analyze the back end server bundle
BUNDLE_ANALYZE=server soya-next-scripts build

# Build and analyze the front end browser bundle
BUNDLE_ANALYZE=browser soya-next-scripts build

# Build and analyze both server and browser
BUNDLE_ANALYZE=both soya-next-scripts build

To run unit tests, run the following:

soya-next-scripts test
soya-next-cli
soya-next-cli
NPM Version