Skip to content

Commit

Permalink
Bundle node modules into .vts_c file
Browse files Browse the repository at this point in the history
  • Loading branch information
Peterclark1996 committed Aug 3, 2024
1 parent da9b83a commit 2c214e2
Show file tree
Hide file tree
Showing 11 changed files with 846 additions and 44 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Source 2 TypeScript
A counter strike 2 typescript compiler that automatically compiles `.vts` and `.ts` typescript files into valve `.vts_c` files. Also includes type defintions for the `Instance` object used to interface with CS2.
A counter strike 2 typescript bundler that automatically compiles `.vts` and `.ts` typescript files into valve `.vts_c` files, and also bundles imported modules. Also includes type defintions for the `Instance` object used to interface with CS2.

## Features
- Partial type definitions for cspointscript's `Instance` class
- Auto compile `.vts` and `.ts` typescript files into `.vts_c`, the format needed to run in CS2 maps
- Auto bundling of imports from node modules
- Auto transpiling of typescript to javascript (Needed for `.vts_c` files)

## Installation
Expand Down
2 changes: 1 addition & 1 deletion packages/create-s2ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-s2ts",
"version": "0.2.2",
"version": "0.3.0",
"description": "A tool to scaffold a s2ts project",
"main": "dist/index.js",
"bin": {
Expand Down
3 changes: 2 additions & 1 deletion packages/s2ts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
/dist
tsconfig.tsbuildinfo
tsconfig.tsbuildinfo
.rollup.cache
Loading

0 comments on commit 2c214e2

Please sign in to comment.