build(aio): migrate plunker to stackblitz (#20165)

PR Close #20165
This commit is contained in:
Jesus Rodriguez
2017-11-03 18:08:28 +01:00
committed by Miško Hevery
parent ed670a36fb
commit 0cbccc06dd
123 changed files with 735 additions and 1317 deletions

View File

@ -5,14 +5,13 @@ runnable project packaged as a zip file. These zip files are generated by the ut
## Example zipper
The `exampleZipper.js` tool is very similar to the Plunker's `builder.js`. The latter creates an HTML file
with all the examples' files and the former creates a zip file instead. They both use the `plnkr.json` file
to flag an example as something to plunker or zip. For example:
The `exampleZipper.js` tool is very similar to the Stackblitz's `builder.js`. The latter creates an HTML file
with all the examples' files and the former creates a zip file instead. They both use the `stackblitz.json` file
to flag an example as something to stackblitz or zip. For example:
```json
{
"description": "Tour of Heroes: Part 6",
"basePath": "src/",
"files":[
"!**/*.d.ts",
"!**/*.js",
@ -55,15 +54,15 @@ The tool will also give some standard names to the scripts.
## The zipper.json
As mentioned, the tool uses the `plnkr.json` as a flag and also a configuration file for the zipper.
The problem is that not all examples have a plunker but they could offer a zip instead.
As mentioned, the tool uses the `stackblitz.json` as a flag and also a configuration file for the zipper.
The problem is that not all examples have a stackblitz but they could offer a zip instead.
In those cases, you can create a `zipper.json` file with the same syntax. It will be ignored by the
plunker tool.
stackblitz tool.
## Choosing the zip "type"
In both `plnkr.json` and `zipper.json` you can use two extra properties for the zipper configuration:
In both `stackblitz.json` and `zipper.json` you can use two extra properties for the zipper configuration:
```
{
@ -78,7 +77,7 @@ SystemJS.
## Executing the zip generation
`generateZips.js` will create a zip for each `plnkr.json` or `zipper.json` it finds.
`generateZips.js` will create a zip for each `stackblitz.json` or `zipper.json` it finds.
Where? At `src/generated/zips/`.