Introducing third-party libraries PureMVC
This time we want to use an MVC development framework-PUREMVC, familiar with AS3 friends must also be unfamiliar with this framework. Not familiar, it doesn't matter, this frame is not the protagonist. We download the typescript version of PureMVC from here. Get puremvc-typescript-standard-1.0.d.ts and Puremvc-typescript-standard-1.0.js these two files, actually. D.ts is similar to C + + Inside of the. h header file, only the empty method and the empty property, the real implementation is in the JS file or TS file inside. Create a PureMVC folder under the SRC folder in the project, and put the JS file and the D.ts file in it. Then create a Puremvc.json file in the project root directory as follows
{ "name": "puremvc", "source":"src/puremvc/", "file_list": [ "puremvc-typescript-standard-1.0.js", "puremvc-typescript-standard-1.0.d.ts" ]}
This means that a third-party module is configured. Then, when the compiler compiles, the corresponding Module JS folder will be compiled into the Libs folder. In the project we also used the GUI module, which is configured in Egretproperties.json, some of the code is as follows
"modules": [ { "name": "core" }, { "name": "gui" }, { "name": "puremvc","path":"." }],
Path must be relative.
Egret integration of third-party library records