项目作者: celwell

项目描述 :
Just an app skeleton with Re-frame, Shadow CLJS, and Semantic UI React.
高级语言: CSS
项目地址: git://github.com/celwell/re-frame-with-semantic-ui.git
创建时间: 2020-02-26T01:16:03Z
项目社区:https://github.com/celwell/re-frame-with-semantic-ui

开源协议:MIT License

下载


re-frame-with-semantic-ui

Just an app skeleton with Re-frame, Shadow CLJS, and Semantic UI React.

Getting Started

Environment Setup

  1. Install karma-cli (test runner):
    1. yarn global add karma-cli
  2. Download project dependencies:
    1. lein deps && yarn install

Development

Running the App

Start a temporary local web server, build the app with the dev profile, and serve the app with
hot reload:

  1. lein dev

Please be patient; it may take over 20 seconds to see any output, and over 40 seconds to complete.

When [:app] Build completed appears in the output, browse to
http://localhost:8280/.

shadow-cljs will automatically push ClojureScript code
changes to your browser on save. To prevent a few common issues, see
Hot Reload in ClojureScript: Things to avoid.

Opening the app in your browser starts a
ClojureScript browser REPL,
to which you may now connect.

Running Tests

Build the app with the prod profile, start a temporary local web server, launch headless
Chrome/Chromium, run tests, and stop the web server:

  1. lein karma

Please be patient; it may take over 15 seconds to see any output, and over 25 seconds to complete.

Production

Build the app with the prod profile:

  1. lein prod

Please be patient; it may take over 15 seconds to see any output, and over 30 seconds to complete.

The resources/public/js/compiled directory is created, containing the compiled app.js and
manifest.edn files.

The resources/public directory contains the complete, production web front
end of your app.

Always inspect the resources/public/js/compiled directory prior to deploying the app. Running any
lein alias in this project after lein dev will, at the very least, run lein clean, which
deletes this generated directory. Further, running lein dev will generate many, much larger
development versions of the files in this directory.