Skip to content

Commit cdc53e7

Browse files
authored
README - restructure and streamline
1 parent a71e211 commit cdc53e7

File tree

1 file changed

+27
-59
lines changed

1 file changed

+27
-59
lines changed

README.md

Lines changed: 27 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,20 @@ Ensure you have [Node.js](https://nodejs.org) installed. Then, install all of th
104104

105105
npm install
106106

107-
To execute a build of the engine to build/playcanvas-latest.js, do:
107+
Now you can run various build options:
108108

109-
npm run build
109+
| Command | Description | Outputs |
110+
|-------------------|----------------------------------|----------------------------------|
111+
| npm run build | Build unminified release engine | `build\output\playcanvas.js` |
112+
| npm run build:min | Build minified release engine | `build\output\playcanvas.min.js` |
113+
| npm run build:prf | Build unminified profiler engine | `build\output\playcanvas.prf.js` |
114+
| npm run build:dbg | Build unminified debug engine | `build\output\playcanvas.dbg.js` |
115+
| npm run tsd | Build engine Typescript bindings | `build\output\playcanvas.d.ts` |
116+
| npm run doc | Build engine [API reference docs](https://developer.playcanvas.com/en/api/) | `docs` |
110117

111118
Pre-built versions of the engine are also available.
112119

113-
Latest development release:
120+
Latest development release (head revision of master branch):
114121

115122
* https://code.playcanvas.com/playcanvas-latest.js
116123
* https://code.playcanvas.com/playcanvas-latest.min.js
@@ -125,79 +132,40 @@ Specific engine versions:
125132
* https://code.playcanvas.com/playcanvas-0.181.11.js
126133
* https://code.playcanvas.com/playcanvas-0.181.11.min.js
127134

128-
## How to get models?
129-
130-
To convert any models created using a 3D modelling package see [this page](https://developer.playcanvas.com/en/engine/) in the developer documentation.
131-
132-
## How to run tests
133-
134-
PlayCanvas makes use of Karma for running unit tests, and provides three test ways of executing them depending on what phase of development you're in:
135-
136-
# Runs the tests once over the unbuilt source files - useful if you just want a quick 'all-clear'
137-
npm run test
138-
139-
# Watches all source and test files for changes, and automatically re-runs the tests when they change.
140-
# Open http://localhost:9876/debug.html in your browser to debug the tests in real time.
141-
#
142-
# You can also edit the `tests/**/test_*.js` glob in tests/karma.conf.js to run a subset of the tests,
143-
# during development.
144-
npm run test:watch
145-
146-
# Runs the tests once over playcanvas.js - mainly used by CI, but sometimes useful if you want to
147-
# test the engine after building it. Make sure to do `npm run build` first to make sure you have
148-
# an up-to-date build.
149-
npm run test:release
150-
151-
## Documentation
152-
153-
Full documentation available on the [PlayCanvas Developer](https://developer.playcanvas.com) site including [API reference](https://developer.playcanvas.com/en/api/). To build a local copy of the API reference manual to the docs folder, do:
154-
155-
npm run docs
156-
157-
## Tutorials & Examples
135+
### Generate Source Maps
158136

159-
See all the [tutorials](https://developer.playcanvas.com/tutorials/) here.
137+
To build the source map to allow for easier engine debugging, you can add `-- -m` to any engine build command. For example:
160138

161-
## TypeScript Bindings
162-
163-
You can develop TypeScript applications against the PlayCanvas engine. To generate a TypeScript definitions file for the entire API, do:
139+
npm run build -- -m
164140

165-
npm run tsd
141+
This will output to `build/output/playcanvas.js.map`
166142

167-
This will output to build/output/playcanvas.d.ts
143+
## How to run tests
168144

169-
## Generating Source Map
145+
PlayCanvas uses of Karma for unit testing. There are three ways of running the tests:
170146

171-
To build the source map to allow for easier engine debugging, use the following command:
147+
| Command | Description |
148+
|----------------------|---------------------------------------------------------------------------------------|
149+
| npm run test | Runs unit tests over unbuilt engine source |
150+
| npm run test:watch | Re-runs unit tests when changes are detected - open http://localhost:9876/debug.html |
151+
| npm run test:release | Runs unit tests on a built `playcanvas.js` |
172152

173-
npm run build -- -m
153+
## How to get models?
174154

175-
This will output to build/output/playcanvas.js.map
155+
To convert any models created using a 3D modelling package see [this page](https://developer.playcanvas.com/en/engine/) in the developer documentation.
176156

177-
## Getting Help
157+
## Useful Links
178158

179-
[**Forums**](https://forum.playcanvas.com) - Use the forum to ask/answer questions about PlayCanvas.
159+
* [Forum](https://forum.playcanvas.com)
160+
* [Developer Site](https://developer.playcanvas.com)
161+
* [Blog](https://blog.playcanvas.com)
180162

181163
## Contributing
182164

183165
Want to help us make the best 3D engine on the web? Great!
184166
Check out [CONTRIBUTING.md](https://github.com/playcanvas/engine/blob/master/.github/CONTRIBUTING.md) that will get you started.
185167
And look for ["good first PR"](https://github.com/playcanvas/engine/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+PR%22) label in Issues.
186168

187-
### Github Issues
188-
189-
Please use [Github Issues](https://github.com/playcanvas/engine/issues) to report bugs or request features.
190-
191-
### Reporting bugs
192-
193-
Please follow these steps to report a bug
194-
195-
1. **Search for related issues** - search the existing issues so that you don't create duplicates
196-
197-
2. **Create a testcase** - Please create the smallest isolated testcase that you can that reproduces your bug
198-
199-
3. **Share as much information as possible** - everything little helps, OS, browser version, all that stuff.
200-
201169
## PlayCanvas Platform
202170

203171
The PlayCanvas Engine is an open source engine which you can use to create games and 3D visualisation in the browser. In addition to the engine we also make the [PlayCanvas development platform](https://playcanvas.com/) which features an Visual Editor, asset management, code editing, hosting and publishing services.

0 commit comments

Comments
 (0)