0.6.0 • Published 8 years ago

lesser-panda-cli v0.6.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

LesserPanda CLI

Commandline tool for LesserPanda engine Can also be used in any ES6/CommonJS project with similar folder structure.

Features:

  • CommonJS (including image, shader and font loading support)
  • Automatically convert resource files (image or font) that are less than 10kb to data url
  • ES6 (using loose mode if requests Babel transpile for better performance)
  • Force strict for every single file (if request Babel transpile)

Support Node.js

You need a ES6 capatable Node.js.

Any Node.js version that supports ES6 should work, v7.0.0+ tested.

Usage

Create a new project

lpanda create MyAwesomeGame

Start a dev server

  • lpanda server: by default ES6 capatable browser is required, but rebuild pretty fast
  • lpanda server -es5: transpile to ES5 on every single change, rebuild is slower but should work in any browsers without issue.

Build production bundle

  • lpanda build: compile and bundle to game.min.js (Warning: ES6 scripts won't get transpiled, and uglify doesn't work)
  • lpanda build -es5: transpile ES6 to ES5 (recommended since ES6 is not fully supported by some browsers, especially mobile)
  • lpanda build -es5 -u: transpile and bundle without minify(uglify)

Use for general(non LesserPanda) projects

The only thing you need is a similar project:

  • root
    • src/
      • game/main.js
    • index.html

And don't forget to add a script tag in the index.html file:

<script src="game.js"></script>

TODO

  • Project generating command
  • Engine upgrade command
0.6.0

8 years ago

0.5.0

8 years ago

0.4.4

8 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.8

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.13

9 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.1

10 years ago