Egret integration of third-party library records

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.