0.3.1 • Published 5 months ago

create-cssharp-plugin v0.3.1

Weekly downloads
-
License
AGPL-3.0-only
Repository
github
Last release
5 months ago

Create CounterStrike Sharp Plugin

Bootstrap your CounterStrike Sharp plugin project in no time at all!

create-cssharp-plugin offers a mighty fine project template to get you started quickly.

Features

  • Generates a .sln file with your .csproj already referenced*
  • Bootstraps a .cs entry file with Module(.*) fields populated based on input
  • Comes with a complementary .gitignore out of the box!

* dotnet CLI must be installed

Planned and potential features

  • git init
  • Unit test template
  • Opinionated project structure (directories for commands, hooks, etc.)
  • GitHub actions release workflow (build plugin and generate GH release with plugin artifacts attached)

Prerequisites

You can get NodeJS by going to their website and selecting your OS, node version, and package manager.\ https://nodejs.org/en/download

The dotnet CLI should come with .NET SDK.\ Install .NET SDK\ Linux - Windows

Learn more: https://learn.microsoft.com/en-us/dotnet/core/tools/

Installation

Run using your favourite package manager:

Run on-demand via npm:

npx create-cssharp-plugin

OR install as a command globally:

npm install -g create-cssharp-plugin
create-cssharp-plugin

Run on-demand via yarn:

yarn exec create-cssharp-plugin

OR install as a command globally:

yarn global add create-cssharp-plugin
create-cssharp-plugin

Run on-demand via pnpm:

pnpm dlx create-cssharp-plugin

OR install as a command globally:

pnpm add -g create-cssharp-plugin
create-cssharp-plugin

Usage

Follow the prompts to generate your CounterStrike Sharp plugin!

Projects generated using create-cssharp-plugin have the following structure:

./projectName
├── projectName.sln
├── src
│   ├── pluginName.cs
│   └── pluginName.csproj
└── test

!NOTE create-cssharp-plugin will create a project directory relative to your current working directory.

Contributing

  1. Clone this repository
git clone https://github.com/uFloppyDisk/create-cssharp-plugin.git
cd create-cssharp-plugin
  1. Install dependancies
npm install
  1. Open another shell and watch for changes
npm run dev
  1. Run the CLI
npx .

When running the CLI this way, all plugin projects will be placed in the .playground directory to avoid mixing with the rest of your filesystem and this repo's files.

0.3.1

5 months ago

0.1.0

5 months ago

0.3.0

5 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.0.2

5 months ago

0.0.4

5 months ago

0.0.1

5 months ago