Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mauricioszabo/cljs-skeleton
https://github.com/mauricioszabo/cljs-skeleton
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/mauricioszabo/cljs-skeleton
- Owner: mauricioszabo
- License: mit
- Created: 2020-03-05T16:21:07.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T10:01:17.000Z (almost 4 years ago)
- Last Synced: 2024-11-09T05:31:52.435Z (about 2 months ago)
- Language: Clojure
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# cljs-skeleton - a ClojureScript Atom package example code
This code is meant only as a skeleton to generate ClojureScript packages. It is not
meant to be used.To start a project with this template, clone it to some folder normally, rename all entries of `cljs-skeleton` to, for example, `my-plugin` (remember to fix folder names too!) and run `apm link my-plugin` to link the local copy to the Atom package folder.
To start compilation, run: `npm install` then `npx shadow-cljs watch package`. Please wait until Shadow-CLJS compiles the first version before trying to run `Activate` command, otherwise you'll get an error and will need to restart Atom before you can make changes.
All "interactive coding" that ClojureScript is famous for works for Atom plug-ins. It also means that after saving any code, you'll be able to see changes on your commands, subscriptions, and so on (so it reloads all your callbacks too!)
## Common bugs:
### Strange errors on activation (`$cljs is not defined`):
You can only develop a SINGLE ClojureScript package per time. If you have multiple
Atom packages written in ClojureScript, compile one as a release build (with
`shadow-cljs release ` for example) then develop the other normally.![A screenshot of your package](https://f.cloud.github.com/assets/69169/2290250/c35d867a-a017-11e3-86be-cd7c5bf3ff9b.gif)