-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: turn into npx package #8
base: master
Are you sure you want to change the base?
Conversation
@1Marc you fine with these changes? I am. could make it easier, but would require the team to put a small note in the pressy |
@omar2205 could we also get an update in the readme on how to use this? |
Would these do? Getting Started
If you want to try other DSA, you can run |
scripts/generate
Outdated
@@ -1,7 +1,7 @@ | |||
#!/usr/bin/env node | |||
const fs = require("fs"); | |||
const path = require("path"); | |||
const config = require("../ligma.config"); | |||
const config = JSON.parse(fs.readFileSync("./ligma.config.json", "utf-8")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path!
there is the /
in there, i think there is another issue right now via windows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, i am ready to get this is @omar2205 |
This adds a CLI to be used as
![image](https://user-images.githubusercontent.com/1373867/190379460-c9846a35-3599-4746-b8d7-07791da37c23.png)
npx @primeagen/kata
Usage
npm run build
to generatedist/index.js
node dist/index.js
, creating a kata folder with the selected dsa.