Giter VIP home page Giter VIP logo

phina-ts-template-test1's Introduction

phina-ts-template-test1

このリポジトリは phina.js での開発を TypeScript で行うための実験的なテンプレートです。 class 構文を用いたクラスの定義と継承ができるため、型定義の入力補完を子クラスでも利用することが可能になります。

ソースコードのエントリポイントは src/app.ts です。

機能

以下の機能が使用可能になっています。

phina.js の TypeScript 型定義

phina.js.d.ts を用いた簡易的な型定義が利用可能です。

class 構文のサポート

phina-patch-es-classes-support を用いて phina.createClass で生成されたクラスを ES Classes 互換にしています。 phina.js の全てのビルトインクラスを class 構文で継承可能です。

TypeScript のコンパイルとバンドル

webpack を用いて TypeScript のコンパイルとバンドルが可能です。

アセットファイルの自動読み込み

dimic を用いて src/assets 以下のアセットファイルを自動的に src/assets/index.ts にリストアップします。

ソースコードの自動フォーマット

ESLint と Prettier を用いてソースコードの自動フォーマットが可能です。 Visual Studio Code で利用するには ESLint プラグインが必要です。

ライブリロード

webpack-dev-server を用いてライブリロードが可能です。

スクリプト

npm start

開発モードでアプリをビルドし、起動します。 ビルドされたアプリは www に配置されます。 ライブリロードが利用可能です。

npm build

アプリを production モードでビルドします。 ビルドされたアプリは www に配置されます。

主な採用ライブラリ

Lisence

WTFPL

phina-ts-template-test1's People

Contributors

negiwine avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.