Code Monkey home page Code Monkey logo

template-ssr's Introduction

Omis

Omi server side rendering

Getting Start

$ npm i omi-cli -g      # install cli
$ omi init-s my-app     # init project
$ cd my-app           
$ npm start             # develop
$ npm run build         # release

Other Cmds

npm start (start.js)

npm run build (build.js)

  • Cleans up the output /build folder (clean.js)
  • Copies static files to the output folder (copy.js)
  • Creates application bundles with Webpack (bundle.js, webpack.config.js)

npm run deploy (deploy.js)

  • Builds the project from source files (build.js)
  • Pushes the contents of the /build folder to a remote server with Git

Options

Flag Description
--release Minimizes and optimizes the compiled output
--verbose Prints detailed information to the console
--analyze Launches Webpack Bundle Analyzer
--static Renders specified routes as static html files
--docker Build an image from a Dockerfile
--silent Do not open the default browser

For example:

$ npm run build --release --verbose      # Build the app in production mode

or

$ npm start --release                    # Launch dev server in production mode

Misc

  • webpack.config.js - Webpack configuration for both client-side and server-side bundles
  • postcss.config.js - PostCSS configuration for transforming styles with JS plugins
  • run.js - Helps to launch other scripts with babel-node (e.g. babel-node tools/run build)
  • .eslintrc - ESLint overrides for built automation scripts

License

MIT © dntzhang

Open Source Software Licensed Under the MIT License:

react-starter-kit Copyright © 2014-present Kriasoft, LLC.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.