Skip to content

Commit

Permalink
fix: log an under developement warn
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdibha committed Oct 12, 2024
1 parent 6439b2b commit 8e882a0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-zebras-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"dotui-cli": patch
---

Log under developement warn
12 changes: 12 additions & 0 deletions packages/cli/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
extends: ["@dotui/eslint-config/library.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
rules: {
"@next/next/no-img-element": "off",
},
};
4 changes: 4 additions & 0 deletions packages/cli/src/commands/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export const addCommand = new Command()
)
.action(async (components, opts) => {
try {
logger.log(`${highlight.warn("⚠️ dotui-cli is under development.")}`);
logger.log(`You can follow the progress on https://x.com/mehdibha_.`);
logger.break();
return;
const options = addOptionsSchema.parse({
components,
cwd: path.resolve(opts.cwd),
Expand Down
6 changes: 6 additions & 0 deletions packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ export const init = new Command()
.option("--skip-install", "skip install", false)
.action(async (projectDir, opts) => {
try {
logger.log(
`${highlight.warn("⚠️ dotui-cli is still under development.")}`
);
logger.log(`You can follow the progress on https://x.com/mehdibha_.`);
logger.break();
return;
const options = initOptionsSchema.parse({ projectDir, ...opts });
await runInit(options);
logger.log(
Expand Down

0 comments on commit 8e882a0

Please sign in to comment.