deps-new

practicalli-johnny 2020-09-07T09:02:41.004Z

@jr0cket has joined the channel

2020-09-07T12:09:02.004200Z

@tbrooke has joined the channel

lread 2020-09-07T13:39:42.004400Z

@lee has joined the channel

thomascothran 2020-09-07T14:55:11.004600Z

@thomas559 has joined the channel

Joe Lane 2020-09-07T16:18:49.004800Z

@joe.lane has joined the channel

practicalli-johnny 2020-09-07T16:39:53.006900Z

I do like the command line structure when using the -X flag with the pre-release version of Clojure CLI tools. For example if a clj-new alias is defined as follows:

:project-new
  {:extra-deps {seancorfield/clj-new {:mvn/version "1.1.215"}}
   :ns-default clj-new
   :exec-fn    clj-new/create
   :exec-args  {:template lib :name practicalli/playground}}
Then the commands available would be clojure -X:project-new to create a quick library project for some experiments clojure -X:project-new :name practicalli/my-library create a new library project with a specific name clojure -X:project-new :template app :name practicalli/my-application as above but with the app template clojure -X:project-new :template luminus :name practicalli/full-stack-app +http-kit +h2 +reagent +auth a new project based on the luminus template with options passed into that template. This keeps everything nicely distinct from each other and people/teams can update the alias with their own default values.

seancorfield 2020-09-07T16:55:56.008400Z

You don't need :ns-default in there unless you want to override the :exec-fn with generate I guess.

👍 1
seancorfield 2020-09-07T16:56:48.009800Z

i.e., clojure -X:project-new generate ...

Joe Lane 2020-09-07T16:57:42.010600Z

Nice job @seancorfield, I just used this project today for Yet-Another-Experiment. I haven't used the new stuff yet so maybe I'll check that out later today. I wanted to chime in here and thank you for building and maintaining this project, it is the only way I make new projects these days and I use it for experiments at least twice a week.

👍🏻 1
Jakub Holý (HolyJak) 2020-09-07T18:33:07.011100Z

@holyjak has joined the channel

seancorfield 2020-09-07T19:02:12.012100Z

seancorfield/clj-new {:mvn/version "1.1.216"} is available -- restores support for older Clojure CLI versions, so now it works with both stable 1.10.1.561 and prerelease 1.10.1.672

Stel Clementine 2020-09-07T19:02:49.012600Z

@stelabrego has joined the channel

seancorfield 2020-09-07T19:03:05.012900Z

Thanks for the bug report @stelabrego!

Alaa Abdelwahed 2020-09-07T23:15:48.013100Z

@alaa.t.abdelwahed has joined the channel

seancorfield 2020-09-07T01:24:32.000200Z

@seancorfield has joined the channel

seancorfield 2020-09-07T01:24:32.000300Z

set the channel description: Discussion around https://github.com/seancorfield/clj-new

logbot 2020-09-07T01:28:09.000500Z

@logbot has joined the channel

2020-09-07T01:28:15.000700Z

@zulip-mirror-bot has joined the channel

seancorfield 2020-09-07T01:28:31.000800Z

set the channel topic: Discussion around https://github.com/seancorfield/clj-new

dorab 2020-09-07T02:19:25.001Z

@dorab has joined the channel

Janne Sauvala 2020-09-07T04:29:23.001200Z

@janne.sauvala has joined the channel

seancorfield 2020-09-07T06:46:58.002500Z

The new 1.1.215 release supports the clojure -X option but the main readme instructions still refer to -A and -M -- with a separate section at the bottom about -X. I don't know how long it will take folks to update to the latest CLI.

seancorfield 2020-09-07T06:48:07.003800Z

Also, the generated (app, lib, template) projects in this release do not yet have the :exec-fn/`:exec-args` forms of aliases for depstar even tho' the dependency has been bumped. I'll add those in the next release I expect.