Gathering detailed insights and metrics for create-ks-ext
Gathering detailed insights and metrics for create-ks-ext
Gathering detailed insights and metrics for create-ks-ext
Gathering detailed insights and metrics for create-ks-ext
A CLI tool enables you to quickly set up a KubeSphere Console extension project.
npm install create-ks-ext
Typescript
Module System
Node Version
NPM Version
57.9
Supply Chain
86.9
Quality
67.2
Maintenance
30
Vulnerability
96.2
License
TypeScript (57.95%)
JavaScript (42.05%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
3,902
Last Day
1
Last Week
4
Last Month
24
Last Year
2,649
3 Stars
62 Commits
8 Forks
7 Watching
1 Branches
9 Contributors
Latest Version
0.0.8
Package Id
create-ks-ext@0.0.8
Unpacked Size
719.15 kB
Size
197.69 kB
File Count
18
NPM Version
8.12.1
Node Version
16.13.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-73.3%
4
Compared to previous week
Last month
1,100%
24
Compared to previous month
Last year
394.2%
2,649
Compared to previous year
19
16
Heavily inspired by create-next-app and create-react-app. This CLI tool can help you quickly setting up a KubeSphere extension project. You don't need to install or configure tools like webpack, Babel, TypeScript, etc. Just run the command and your project will be ready to go.
curl
or wget
installednvm
(recommended)
yarn
Installationgit
installationRun the command:
yarn create ks-ext
The wizard will ask you the directory name(default is my-app
) to be installed in. and create the directory in the current directory.
Inside that directory, it will generate the initial project structure and install the dependencies.
It might take a little while, but as soon as the message below, you can go to the next step.
1Success! Created my-ext at /Users/chenzhen/Workspace/qingcloud/create-ks-app/dist/my-ext 2Inside that directory, you can run several commands: 3 4 yarn create:ext 5 Create a new extension. 6 7 yarn dev 8 Starts the development server. 9 10 yarn build:prod 11 Builds the app for production. 12 13 yarn start 14 Runs the built app in production mode. 15 16We suggest that you begin by typing: 17 18 cd my-ext 19 yarn create:ext 20 21And 22 23 yarn dev 24
create-ks-ext
comes with the following option:
Switch to the directory you just created and run the command:
yarn create:ext
the wizard will ask you the extension name, displayName, description and author.
1$ ksc create:ext 2? Extension Name demo 3? Display Name Demo 4? Description this is demo 5? Author chenzhen 6? Language JavaScript 7? Are you sure you want to create extension: [demo] ? Yes 8✨ Done in 12.64s.
Then the extension will be created in the extensions
directory. The files structure of the extension is as follows:
1. 2├── Dockerfile 3├── README.md 4├── package.json 5└── src 6 ├── App.jsx 7 ├── index.js 8 ├── locales 9 │ ├── en 10 │ │ ├── base.json 11 │ │ └── index.js 12 │ ├── index.js 13 │ └── zh 14 │ ├── base.json 15 │ └── index.js 16 └── routes 17 └── index.js 18
configs
directory. Replace the apiServer value with the real value1server: 2 apiServer: 3 url: http://apiserver.local 4 wsUrl: ws://apiserver.local
1yarn dev
And open the browser to http://localhost:8000/, you will see the kubesphere page. for more information about the development environment, please refer to the development documentation
No vulnerabilities found.
No security vulnerabilities found.