Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Preparation for 1.0 release #2

Closed
artemyarulin opened this issue Jan 21, 2016 · 2 comments
Closed

Preparation for 1.0 release #2

artemyarulin opened this issue Jan 21, 2016 · 2 comments

Comments

@artemyarulin
Copy link
Owner

For each clj(s)_module declaration we should automatically define following targets:

  • :[name] - outputs /src/, /tests/, /project.clj. Test shouldn't contain dependencies tests
  • :release - output /app.jar OR /app.js
  • :test - run tests

As we have to parse Clojure bash is not reliable for this purpose. We gonna move all the parsing to Planck, because it allows doing things really simple:

(require 'cljs.tools.reader)

(nth (first ((cljs.tools.reader/read-string (core/slurp "buck-out/gen/clojure/yieldm/project/project.yieldm/project.clj"))) 4)
# [[aleph "0.4.1-beta2"] [org.clojure/clojure "1.8.0"] [org.clojure/tools.namespace "0.3.0-alpha3"]]

Awesome thing about Planck - it allows to call shell commands. Although it's not available on Linux, so should we actually go with Clojure then?

@artemyarulin artemyarulin mentioned this issue Jan 21, 2016
4 tasks
@artemyarulin
Copy link
Owner Author

Fixed with f7ed663

For now we implemented it with regular expression and sed magic, things to improve in a feature

@artemyarulin
Copy link
Owner Author

#17 follows Planck idea again

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant