Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paxperscientiam/generate-phaser3-filepack

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paxperscientiam/generate-phaser3-filepack

[Phaser 3](https://github.com/photonstorm/phaser) Pack File Generator ---

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Phaser 3 Pack File Generator

WARNING

This is still a work in progress. Until complete, it will not write a file; however, you can pipe the output to a file.

This script generates a File Pack in JSON form according to the framework definition.

Features

Generates a Pack File based on organization of asset files, using a configuration file to shape output.

Usage

This script requires a configuration file following the following structure:

{
  "extensions?": string // optional comma-separated list of allowed file extensions, default action is not to filter by extension
  "targets": [
    {
      "hint"?: ["audio"|"image"|"bitmapFont"] // optionally assert asset type
      "key": string // unique key to describe set of targeted files
      "basePath": string // which directory to search
      "extensions": string // comma separated list of allowed file extensions, takes precedence over higher-level definition
    },
    {
     // additional targets
    }
   ]
}

For assets that are not automatically inferred, you'll probably want to take advantage of hint options.

Invocation:

npx  @paxperscientiam/generate-phaser3-filepack <configfile.json>

Notes

  • this script does NOT write anything to file; it's up to you to do so.

Auto inferred types

  • image (:IPhaserFilePackGenericAsset)
  • audio (:IPhaserFilePackGenericAsset)
  • css
  • binary (:IPhaserFilePackBinaryAsset)
  • html
  • json
  • svg
  • txt

Contributors

  • All the programmers Copilot ripped off
  • Fine folks at liberachat
  • Phaser community

FAQs

Package last updated on 01 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc