Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modularization helper #168

Closed
ArnaudBuchholz opened this issue May 9, 2017 · 1 comment
Closed

Modularization helper #168

ArnaudBuchholz opened this issue May 9, 2017 · 1 comment
Assignees

Comments

@ArnaudBuchholz
Copy link
Owner

ArnaudBuchholz commented May 9, 2017

As a developer, I want a way to include resource files and be notified when it has been loaded and evaluated

Acceptance criteria:

  • The api is named gpf.require.define, it accepts up to two parameters: a dictionary specifying the dependant resources and a factory function. The optional result of the factory function is associated to the resource file so that if the resource is required a second time, this result is recalled.
  • The api must a return a promise that is resolved (to the result of the factory function if any) on success or rejected if the require fails
  • Resources are referenced using their relative path. A root can be define through the API gpf.require.configure that is used for the first gpf.require call.
  • JSON resources must be evaluated to their parsed result.
  • A JavaScript resource may respect one of the following formats:
    • Use of require and module.exports from CommonJS. The resource is associated with the value assigned to module.exports.
    • Use of AMD's define operator. The resource is associated with the result value of the factory function.
    • Use of gpf.require. The resource is associated with the result value of the factory function.
    • None of the three formats above, no association will be made to the resource.
@ArnaudBuchholz ArnaudBuchholz self-assigned this May 9, 2017
@ArnaudBuchholz ArnaudBuchholz added this to the Release 0.2.2: to be defined milestone May 9, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 4, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 4, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 4, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 4, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 4, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 4, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 5, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 5, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 5, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 5, 2017
require calls in CommonJS modules will be fetched upon format detection
ArnaudBuchholz added a commit that referenced this issue Oct 5, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 6, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 6, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 6, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 6, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 6, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 6, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 6, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 6, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 6, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 6, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 6, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 14, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 14, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 14, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 14, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 14, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 14, 2017
@ArnaudBuchholz ArnaudBuchholz changed the title Include helper Modularization helper Oct 14, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 16, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 16, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 16, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 16, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 18, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 18, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 18, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 20, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 20, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 20, 2017
ArnaudBuchholz added a commit that referenced this issue Oct 20, 2017
@ArnaudBuchholz
Copy link
Owner Author

First version of documentation finalized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant