Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Support Require.js for packaging #38

@chiquitinxx

Description

@chiquitinxx

Hello!

As we have talked in issue #16, we are going to add require.js(http://requirejs.org/) as package manager. Now, the conversion is done file by file. But, with this improvement we want to give facilities to create bigger projects without a hell of files and dependencies managed manually. Seem it has good integration with Node.js, and it uses closure compiler for optimizations.

You can take a look at Serge idea project https://github.com/pioneer/grooscript-require

The hardest part is resolve dependencies. For example, if you want to convert a class, what classes are needed by that class? We have to do compiler job, see imports, classes used, inheritance, traits,... The target? When I convert a file, all dependencies are also converted and all that files are require.js modules.

Also we have to improve daemon converter, now has to listen changes in all the dependencies tree, also add more files when necessary. But this will be later.

At the moment I will create a new conversion option, when activated, conversion will be done as require.js modules. Without that conversion option, grooscript will work as it does now.

I'll create a branch called 'require' to work with. The plan: release the conversion process in 1.1 release. Later, the daemon.

If you have something to say, or if you want to contribute, please as soon as possible :). Thank you.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions