项目作者: lambrospetrou

项目描述 :
Easy creation of ClojureScript applications using Shadow-CLJS
高级语言: Clojure
项目地址: git://github.com/lambrospetrou/create-shadow-cljs-app.git
创建时间: 2019-08-24T16:39:51Z
项目社区:https://github.com/lambrospetrou/create-shadow-cljs-app

开源协议:MIT License

下载


create-shadow-cljs-app

This is an NPM initializer to ease the creation of projects using the awesome Shadow-CLJS.

The default template provides out-of-the-box setup for a Node script, a standard commonjs library, and a browser-compatible output.

Get started

To create a project named cljs-app, run any of the following commands:

  1. npx create-shadow-cljs-app cljs-app
  2. # or
  3. npm init shadow-cljs-app cljs-app

This will create a directory cljs-app with code for the three main targets supported.

To create release artifacts for all of the available targets run npm run release.

Check the README.md of the created project for more details on what you get.

Options

To see all the options available run npx create-shadow-cljs-app --help.

Contributing

The goal of this project is to provide a no-fuss starting template for projects to use Shadow-CLJS.

I am happy to accept pull requests as long as the goal of the projects remains as is.

When choosing between simplicity and features, always prefer simplicity.

Local testing

In order to test the initializer locally you can use npx to simulate the flow using a local directory.

  1. # Checkout the initializer code
  2. mkdir -p ~/dev && cd ~/dev
  3. git clone https://github.com/lambrospetrou/create-shadow-cljs-app.git
  4. pushd create-shadow-cljs-app && npm install && npm pack && popd
  5. # Create the new app using the local version of the initializer (use the right version in the `*.tgz` file)
  6. npx ~/dev/create-shadow-cljs-app/create-shadow-cljs-app-1.1.1.tgz --name cljs-app