Skip to content

mart3323/jsmacros-typescript-dev-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM skeleton for developing jsmacros scripts

Basic usage:

  1. Clone the project
  2. Run npm install
  3. Create a subfolder in src (f.ex. see src/helloWorld)
  4. Ensure that the subfolder has an index.ts file
  5. Run npm run build:watch
  6. In game, select the file from the dist folder
  7. Edit your code, webpack will automatically recompile whenever you save any of the source files

To use a different project structure

  1. Tweak the entry field in webpack.config.js

To update the typings

Get new ts files from JsMacros-Examples#typescriptdev/headers and put them in the typedef folder (really anywhere in src should work)

Prior work

Project bootstrapped with typescript-webpack-starter
JSMacros typedefs taken from JsMacros-Examples
Intended to develop scripts for the JsMacros mod

About

npm skeleton for compiling typescript ES6 modules into single script files for use in the jsmacros mod

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published