Skip to content

Commit

Permalink
[#78] remove +aliases option;
Browse files Browse the repository at this point in the history
- unfortunately, this is more of a headache to maintain than it is worth.
  • Loading branch information
gadfly361 committed Aug 12, 2018
1 parent ea0af5f commit 6e80eb5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 55 deletions.
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ The optional profiles include:
* Development
* [cider](https://github.com/clojure-emacs/cider) (`+cider`)
* [cljs.test](https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/test.cljs) and [doo](https://github.com/bensu/doo) (`+test`)
* Helper aliases `lein build` and `lein dev` (`+aliases`)
* Full-stack
* [compojure](https://github.com/weavejester/compojure) (`+handler`)
* Misc.
Expand Down Expand Up @@ -91,8 +90,6 @@ lein garden auto
lein less auto
```

When using +aliases css also gets automatically built when running `lein build` and recompiled on change with `lein dev`.

## Run application:

Retrieve dependencies:
Expand All @@ -106,11 +103,6 @@ lein clean
lein figwheel dev
```

When using +aliases you can just run:
```
lein dev
```

Wait a bit, then browse to [http://localhost:3449](http://localhost:3449).

## Setting Up Your Browser
Expand Down Expand Up @@ -190,12 +182,6 @@ lein clean
lein cljsbuild once min
```

Or, when using `+aliases`,

```
lein build
```

### Deploy to heroku (if using `+handler`)

Create uberjar
Expand Down
6 changes: 3 additions & 3 deletions create-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ cd resources/public
google-chrome index.html
cd ../../..

printf "\ncreating base +cider +routes +re-com +test +garden +handler +less +re-frisk +aliases +10x +re-pressed +breaking-point\n"
lein new re-frame everything +cider +routes +re-com +test +garden +handler +less +re-frisk +aliases +10x +re-pressed +breaking-point
printf "\ncreating base +cider +routes +re-com +test +garden +handler +less +re-frisk +10x +re-pressed +breaking-point\n"
lein new re-frame everything +cider +routes +re-com +test +garden +handler +less +re-frisk +10x +re-pressed +breaking-point
cd everything
lein build # from +aliases
lein cljsbuild once min
lein doo phantom test once
cd resources/public
google-chrome index.html
Expand Down
2 changes: 0 additions & 2 deletions src/leiningen/new/re_frame.clj
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
;; devlopment
:cider? (helpers/invoke-option "+cider" options)
:test? (helpers/invoke-option test/option options)
:aliases? (helpers/option? "+aliases" options)

;; full-stack
:handler? (helpers/invoke-option handler/option options)
Expand Down Expand Up @@ -100,7 +99,6 @@
;; development
"+cider"
test/option
"+aliases"

;; full-stack
handler/option
Expand Down
22 changes: 0 additions & 22 deletions src/leiningen/new/re_frame/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ Automatically recompile css file on change.
```
lein garden auto
```
{{#aliases?}}

CSS also gets automatically built when running `lein build` and recompiled on change with `lein dev`.
{{/aliases?}}

{{/garden?}}{{#less?}}### Compile css:

Expand All @@ -49,25 +45,14 @@ Automatically recompile css file on change.
```
lein less auto
```
{{#aliases?}}

CSS also gets automatically built when running `lein build` and recompiled on change with `lein dev`.
{{/aliases?}}

{{/less?}}
### Run application:

{{#aliases?}}
```
lein dev
```
{{/aliases?}}
{{^aliases?}}
```
lein clean
lein figwheel dev
```
{{/aliases?}}

Figwheel will automatically push cljs changes to the browser.

Expand Down Expand Up @@ -120,14 +105,7 @@ git push heroku master

To compile clojurescript to javascript:

{{#aliases?}}
```
lein build
```
{{/aliases?}}
{{^aliases?}}
```
lein clean
lein cljsbuild once min
```
{{/aliases?}}
15 changes: 1 addition & 14 deletions src/leiningen/new/re_frame/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,6 @@
{{/less?}}{{#cider?}}
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
{{/cider?}}
{{#aliases?}}

:aliases {"dev" ["do" "clean"
["pdo" ["figwheel" "dev"]{{#less?}}
["less" "auto"]{{/less?}}{{#garden?}}
["garden" "auto"]{{/garden?}}]]
"build" ["with-profile" "+prod,-dev" "do"
["clean"]
["cljsbuild" "once" "min"]{{#less?}}
["less" "once"]{{/less?}}{{#garden?}}
["garden" "once"]{{/garden?}}]}
{{/aliases?}}

:profiles
{:dev
Expand All @@ -65,8 +53,7 @@
[re-frisk "0.5.3"]{{/re-frisk?}}]

:plugins [[lein-figwheel "0.5.16"]{{#test?}}
[lein-doo "0.1.8"]{{/test?}}{{#aliases?}}
[lein-pdo "0.1.1"]{{/aliases?}}]}
[lein-doo "0.1.8"]{{/test?}}]}
:prod { {{#10x?}}:dependencies [[day8.re-frame/tracing-stubs "0.5.1"]]{{/10x?}}}}

:cljsbuild
Expand Down

0 comments on commit 6e80eb5

Please sign in to comment.