Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/green-coder/vrac-template
Template for Vrac projects
https://github.com/green-coder/vrac-template
clojure clojuscript deps template vrac
Last synced: about 1 month ago
JSON representation
Template for Vrac projects
- Host: GitHub
- URL: https://github.com/green-coder/vrac-template
- Owner: green-coder
- License: epl-1.0
- Created: 2020-01-11T03:30:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-03T00:35:17.000Z (almost 5 years ago)
- Last Synced: 2024-11-30T18:08:22.275Z (about 2 months ago)
- Topics: clojure, clojuscript, deps, template, vrac
- Language: Clojure
- Homepage: https://github.com/green-coder/vrac
- Size: 11.7 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vrac-template
A template to scaffold a Shadow-CLJS project which uses Vrac.
## Usage
First, prepare your `~/.clojure/deps.edn` [accordingly](https://github.com/seancorfield/clj-new#getting-started).
Then, to create a new Vrac project:
```shell script
clj -A:new vrac group-id/project-name
```You may use your name as a `group-id` in the command above.
## Notes for template developers
- Generating the template without deployment or jar building:
```shell script
clj -m clj-new.create vrac group-id/project-name
```
- Building the jar file:
```shell script
clojure -A:jar
```
- Generating the template using the jar file:
```shell script
clojure -Sdeps '{:deps {vrac/clj-template {:local/root "/path/to/clj-template.jar"}}}' -A:new vrac vincent/test-case
```
- Uploading the jar to Clojars:
```shell script
mvn deploy:deploy-file -Dfile=clj-template.jar -DpomFile=pom.xml -DrepositoryId=clojars -Durl=https://clojars.org/repo/
```## Thanks
Big thank to Sean Corfield for implementing [clj-new](https://github.com/seancorfield/clj-new).
## License
Copyright © 2020 Vincent Cantin
Distributed under the Eclipse Public License either version 2.0 or (at your option) any later version.