npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@write-coin/ceres-ts-template

v1.0.6

Published

This repository has a configuration template for using Ceres with TypeScript.

Downloads

6

Readme

Ceres + TypeScript + Cerrie Template

This repository contains a sample configuration for using Ceres with TypeScript.

There is also a separate template for setting up Ceres with TypeScript and Cerrie - a library which aims to provide an idiomatic set of libraries for WC3, as well as offering some neat features such as Live Reload and File I/O out of the box.

Quick Start

Prerequisites:

  1. Make sure you have NPM installed.
  2. Make sure you have downloaded Ceres and put it either into this project, or your $PATH

Steps

  1. Clone the repository - git clone [email protected]:ceres-wc3/ceres-ts-template.git.
  2. Run npm install to download all necessary dependencies.
  3. Run npm run build to compile all TypeScript code into Lua.
  4. Run ceres build -- --map mpq.w3x --output mpq to build the map. The final map will be placed in target/

Extra Things

Running the map via Ceres

If you want to make Ceres to run WC3 by itself, you can use the ceres run command. However, before you can do that, it requires some configuration on your part. Open up runconfig.lua and fill out the necessary configuration parameters. As a minimal example:

ceres.runConfig = {
    command = "C:/Program Files/Warcraft III/x86_64/Warcraft III.exe",
    args = {"-windowmode", "windowed"}
}

Compilation in "watch" mode

You can also run the TSTL compiler in "watch" mode, so that it automatically recompiles code as soon as you edit it. There's a convenience NPM script to do that - npm run watch. Alternatively, you could start the compiler manually by using npx ceres-tstl --watch and specify whichever paramterers you so desire.

VS Code Tasks

This project also includes some convenience VS Code tasks to be able to run the above things from within VS Code if you use it. Simply press Ctrl-Shift-P and type runtask, and select what you want to run.

Project Anatomy

maps/           - folder to put your map files in
src/
    lua/        - pure Lua files which can be included by Ceres
    ts/         - TypeScript files which will be compiled into Lua files
target/         - directory where build artifacts will be placed
    compiled/   - artifact directory for Lua files produced by TSTL
build.lua       - Ceres build script, can be used to customize the build process
runconfig.lua   - user-local configuration for `ceres.runConfig`
tsconfig.json   - TSC/TSTL configuration, contains some Lua-specific settings