sanyuan0704 / island.js

📝 Vite & MDX powered static site generator. Base on islands architecture

Home Page:https://islandjs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: create cli commands to initialize the project structure

inannan423 opened this issue · comments

Is your feature request related to a problem? Please describe.

For example, I want to create an island.js project that I can generate the project structure and default files with a single line of command instead of creating them one by one.

npx create-island@latest my-website

Describe the solution you'd like

Create a CLI project and declare the commands in package.json:

{
  "name": "create-island",
  "version": "1.0.0",
  "bin": {
    "create-island": "./bin/create-island.js"
  }
}

Write logic in bin/index.js to complete the task.

Describe alternatives you've considered

No response

Additional context

No response

Validations

  • Read the docs.
  • Read the Contributing Guidelines.
  • Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
commented

🙋‍♂️

cool! tks.👍