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

moe.mochizuki.variation-packager

v0.3.1

Published

A Unity editor extension for creating multiple packages from Scene or JSON.

Downloads

8

Readme

Unity-VariationPackager

A Unity editor extension for creating multiple packages from Scene or JSON.

Requirements

  • Unity 2018.3 or higher

Features

  • Create a single or multiple packages (e.g. different editions) in a single operation
    • Only the difference between including and excluding assets is supported
  • Support package.json like NPM (UPM)
  • Support C# Script in current scene
  • Glob pattern supported in listing files

Package Configuration

You can choose from two configuration types.

Scene

Attach Mochizuki/VariationPackager/Package to GameObject in your scene and configure it.

| Key | Required | Description | | ------------------------------------------- | :------: | ---------------------------------------------------------------------------- | | Name | Yes | Package Name | | Version | Yes | Package Version | | Describe.Output | Yes | Destination directory path for the generated packages | | Describe.Variations.Name | No | A unique name to distinguish between editions | | Describe.Variations.Archive.Name | No | The name of the zip archive | | Describe.Variations.Archive.BaseDir | No | The base directory to which the output will be placed, relative to this path | | Describe.Variations.Archive.Includes | No | Array of file paths (support glob) that including to package | | Describe.Variations.Archive.Excludes | No | Array of file paths (support glob) that excluding from package | | Describe.Variations.UnityPackage.Name | No | The name of the UnityPackage | | Describe.Variations.UnityPackage.BaseDir | No | Unused in Unity Package. Ignored. | | Describe.Variations.UnityPackage.Includes | Yes | Array of file paths (support glob) that including to package | | Describe.Variations.UnityPackage.Excludes | No | Array of file paths (support glob) that excluding from package | | PreProcessors | No | Array of pre-process C# scripts for building packages | | PostProcessors | No | Array of post-process C# scripts for builded packages |

JSON Schema

Create the following JSON file in your Assets directory that named as package.json.
If this file exists, you can add it to the moe.mochizuki.unity.packaging entry.
JSON type build manifest does not support pre/post processors.

{
  "name": "Package Name",
  "version": "Version",
  "moe.mochizuki.unity.packaging": {
    // Destination directory path for the generated packages.
    "output": "Assets/Path/To/Packages/Destination",
    // Describe the configuration for each package.
    "variations": [
      {
        // A unique name to distinguish between types, spaces are allowed if it is unique.
        "name": "",
        // (Optional)
        // List the files you want to include or exclude to/from Zip Archive.
        // Files generated in the UnityPackage section are automatically included.
        // If omitted this section, the zip archive is not generated.
        "archive": {
          // (Optional)
          // The name of the zip archive. If omitted, `.name` will be used.
          // The name is automatically given `-VERSION` suffix.
          "name": "ZipArchiveName",
          // (Optional)
          // The base directory to which the output will be placed, relative to this path.
          "basedir": "Assets",
          "includes": [
            // (Optional)
            // Array of file paths (support glob) that including to package.
          ],
          "excludes": [
            // (Optional)
            // Array of file paths (support glob) that excluding from package.
          ]
        },
        // List the files you want to include or exclude to/from UnityPackage.
        "unitypackage": {
          // (Optional)
          // The name of the UnityPackage. If omitted, `.name` will be used.
          "name": "UnityPackageName",
          "includes": [
            // Array of file paths (support glob) that including to package.
          ],
          "excludes": [
            // (Optional)
            // Array of file paths (support glob) that excluding from package.
          ]
        }
      }
    ]
  }
}