shadow-cljs
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "shadow-cljs", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "ClojureScript for JS tools", | ||
@@ -8,8 +8,8 @@ "author": "Thomas Heller", | ||
"bugs": { | ||
"url": "https://github.com/thheller/shadow-devtools/issues" | ||
"url": "https://github.com/thheller/shadow-cljs/issues" | ||
}, | ||
"homepage": "https://github.com/thheller/shadow-devtools#readme", | ||
"homepage": "https://github.com/thheller/shadow-cljs#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/thheller/shadow-devtools.git" | ||
"url": "git+https://github.com/thheller/shadow-cljs.git" | ||
}, | ||
@@ -16,0 +16,0 @@ "keywords": [ |
# ClojureScript for JS devs | ||
You can use `npm` or `yarn`. | ||
``` | ||
yarn add shadow-cljs | ||
./node_modules/shadow-cljs/bin/shadow-cljs | ||
``` | ||
You can also `yarn global add shadow-cljs` and just use `shadow-cljs` globally. | ||
The package should be added to your `package.json` though since `yarn` will remove the directory otherwise. We need to keep that. | ||
## Usage | ||
`shadow-cljs` | ||
See `shadow-cljs -h` for options. | ||
By default it will look for CLJS sources in `src-cljs`. | ||
You may add some configuration to your `package.json` under the `shadow-cljs` key | ||
```javascript | ||
"shadow-cljs": { | ||
"version":"1.0.20170516", | ||
"dependencies": [ | ||
["some-cljs-package", "1.0.0"] | ||
], | ||
"source-paths": [ | ||
"src" | ||
] | ||
} | ||
``` | ||
- `version` is the version of `shadow-devtools` to use (optional) | ||
- `source-paths` defaults to `["src-cljs"]` | ||
- `dependencies` extra CLJS dependencies you want | ||
Please refer to the [shadow-cljs wiki](https://github.com/thheller/shadow-cljs/wiki/ClojureScript-for-JS-Devs) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7397627
4