0.6.0 • Published 6 years ago
lesser-panda-cli v0.6.0
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 fastlpanda 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 togame.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
- src/
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
6 years ago
0.5.0
6 years ago
0.4.4
7 years ago
0.4.3
7 years ago
0.4.2
7 years ago
0.4.1
7 years ago
0.4.0
7 years ago
0.3.8
7 years ago
0.3.7
7 years ago
0.3.6
7 years ago
0.3.5
7 years ago
0.3.4
7 years ago
0.3.3
7 years ago
0.3.2
7 years ago
0.3.1
7 years ago
0.3.0
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.0
7 years ago
0.0.13
8 years ago
0.0.12
8 years ago
0.0.11
8 years ago
0.0.10
8 years ago
0.0.9
8 years ago
0.0.8
8 years ago
0.0.7
8 years ago
0.0.6
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.1
8 years ago