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 🙏

© 2026 – Pkg Stats / Ryan Hefner

generator-tfc

v0.0.4

Published

Yeoman generator

Downloads

11

Readme

generator-tfc

Yeoman generator for Toolkit for CreateJS with tfcsprite and balmung

Getting Started

npm install -g yo
npm install -g generator-tfc

Ex. sampleというタイトルのアニメーション開発

fla開発ワークフロー

0). (初回のみ)ツールのインストール

  • yo - YEOMANというツール
  • generator-tfc - createjsの作業環境を生成するジェネレータ
npm install -g yo
npm install -g generator-tfc

1). 作業前のディレクトリ構成

$ cd sample
$ yo tfc

     _-----_
    |       |    .--------------------------.
    |--(o)--|    |      Welcome to the      |
   `---------´   |  marvelousTfc generator! |
    ( _´U`_ )    '--------------------------'
    /___A___\    
     |  ~  |     
   __'.___.'__   
 ´   `  |° ´ Y ` 

[?] What is this animation name? (sample) {{Enter}} 

これでflaの開発環境が勝手にインストールされます。

sample
├── assets // 解像度3の素材画像を入れるフォルダ
├── conf // balmung設定が入ったフォルダ
├── gulpfile.js // gulp定義フォルダ
├── node_modules // nodeのモジュールが入ったフォルダ
├── package.json
└── public
    ├── images // flashが画像を出力するフォルダ
    ├── sprites // flash上で作ったスプライト画像とJSONを入れるフォルダ
    └── sample.fla // メインのflaファイル

2). 解像度3の素材画像から解像度2の素材画像を作り出す

photoshopなどで書き出す画像は、解像度3のままで、sample/assetsの中に入れてください。 下記のコマンドを実行すれば、解像度2用の画像を自動で生成します。

$ cd sample
$ gulp assets

実行後は、解像度3から2にコンバートされた画像がpublic以下の_imagesに入ります。

sample
├── assets
├── conf
├── gulpfile.js
├── node_modules
├── package.json
└── public
    ├── _images // flashに読み込ませる素材画像が入るフォルダ
    ├── images
    ├── sprites
    └── sample.fla

flaに画像素材を読み込ませるときは、_imagesの中のものを使ってください。

3). flaで演出をつくる

※追加の素材などがあったら

  1. assetsに解像度3の画像を入れる
  2. もう一度gulp assetsを実行する
  3. public/_images内に画像が出力されるので、flashで読み込んで配置する

4). flaでの演出が決まったら

fla上でスプライト画像を作る

  1. どの画像郡をスプライト画像化するか決めます。
  2. flaのライブラリ上で、スプライト画像化する画像名の先頭に_をつけてまとめます。
  3. fla上でスプライト画像を生成します。(※出力先はpublic/sprites)

5). モック確認

$ cd sample
$ gulp build

上記を実行すると、tfcspriteやbalmungなどが実行され、buildディレクトリが出力されます。

sample
├── assets
├── build // モック確認用のファイルが入るディレクトリ
│   ├── sample.html
│   ├── sample.js
│   ├── images
│   └── sprites
└── public
    ├── sample.fla
    ├── _images
    ├── images
    └── sprites

buildフォルダ内のhtmlを開くか、buildフォルダをモックサーバーにあげれば、アニメーションを確認することができます。

6). SVNにコミット

sampleフォルダごとsvnにコミットしてください。(※その他はsvnignoreします)

SVNにコミットするもの

  • sample/assets 解像度3の画像が入っています。
  • sample/public/sample.fla メインのfla
  • sample/public/images/ flaが出力した画像群
  • sample/public/sprites スプライト画像とjsonデータ

License

MIT