Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code management video #3

Open
zcaudate opened this issue Dec 12, 2022 · 3 comments
Open

code management video #3

zcaudate opened this issue Dec 12, 2022 · 3 comments

Comments

@zcaudate
Copy link
Collaborator

https://www.youtube.com/watch?v=dO7eyFtDDOY

the namespaces in the video correspond to:

hara.publish -> code.doc
hara.deploy -> code.maven
hara.code -> code.manage
hara.test -> code.test

@zcaudate
Copy link
Collaborator Author

  • @ 6min mark, (./install :all {:tag :all}) will install the jars into ~/.m2 folder
  • ./deploy to clojars does not work anymore (because of bug in aether and needs fixing)
  • you also need to generate a gpg key and stuff for signing.I was a bit too ambitious and the tests work but I think that needs to be looked at.
  • second proudest library besides std.lang is code.block. It is my version of rewrite-clj in less loc.
  • alot of bulk items/project management rely on std.task for the output framework.

helper functions to call in namespace for emacs:
https://github.com/zcaudate/etude/blob/master/etude/lib/etude-foundation.el

things that may need to be installed to work for tests
https://github.com/zcaudate/infra-testing/blob/main/infra/Dockerfile_foundation

  • the redis stuff is not needed for foundation-base
  • the openresty and luarockt stuff are needed for lua.nginx namespace
  • for some languages, an external json library is needed for the internal eval and an external web socket library needed for the websocket runtime (for webpages to connect back, much like cljs)

@zcaudate
Copy link
Collaborator Author

just so you know with the video... half of the demos didn't work because I wasn't prepared properly and forgot the function invocations. However the code structure is there and there are some invocations you can try here:

https://github.com/zcaudate/foundation-base/blob/main/project.clj#L6-L11

@zcaudate
Copy link
Collaborator Author

some invocations:

(./create-tests :all) or (./create-tests '[]) will create test scaffolding
(./incomplete :all) or (./incomplete '[]) will list all namespaces with incomplete tests

that's the ones I used more. There's also ./pedantic, which will output if test does not have a check associated.

(./import) will import docstrings from tests back into the namespace
(./purge) will remove docstrings in the namespace.

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

No branches or pull requests

1 participant