Skip to content
This repository was archived by the owner on Dec 21, 2019. It is now read-only.

Conversation

@holyshared
Copy link

When TestA and TestB need each other, an infinite loop is generated.
The verification prepared and confirmed following test files TestA and TestB.

Source header of TestA.js

#JS
/*

---
name: TestA

description: Test file A for operation verification

license: MIT-style

authors:
- Noritaka Horio

requires: [Core/Core, TestB]

provides: [TestA]
...
*/

Source header of TestB.js

#JS
/*

---
name: TestB

description: Test file B for operation verification

license: MIT-style

authors:
- Noritaka Horio

requires: [Core/Core, TestA]

provides: TestB
...
*/

To solve an infinite loop, it was corrected that the file processed once was not processed.

ibolmo and others added 3 commits October 15, 2010 09:05
…dynamic loading of scripts. Supported methods:

- build_from_components
- write_from_components
What processed once excluded it.

Signed-off-by: holy <holy.shared.design@gmail.com>
@kamicane
Copy link
Owner

cool stuff, I'll test and pull asap.

@subtleGradient
Copy link
Contributor

Nice!

slik and others added 24 commits November 29, 2010 18:18
Signed-off-by: Noritaka Horio <holy.shared.design@gmail.com>
… the build

Signed-off-by: Noritaka Horio <holy.shared.design@gmail.com>
…od of outputting the message is appropriately changed.

php://stderr to php://stdout
Signed-off-by: Noritaka Horio <holy.shared.design@gmail.com>
…thout breaking the interface) needs to be refactored. Going to start testing for correctness next.
…but could be changed in the future. I also organized, in alphabetical order packager.php. /me gets the shield ready.
…oing to add a source dynamically into a package.
ibolmo and others added 28 commits April 27, 2011 01:43
…ckager. As on now, Package is just a nice container of sources. Sources are a container of requires and provides, and each requires and provides is added to Packager so that it builds the graph. Next, I need to create and populate the graph, search and find components, iterate the graph for dependencies, and build a chain.
The graph structure is just two arrays. First for sources, and the other
for source index keys. The keys are generated by generators that can be
programmatically be added. See #configure method. Tip: override
configure and add your own generators above or below the
parent::configure call.

Still missing the add_dependency and build methods.
that should be doing the processing of the output. Perhaps build should
return a 'Build' class that has a lot of utility functions like
strip_blocks.
order (Core, for example, would be first). This is now the case, since I
needed to recursively look for the most required component.

I've also added the ability to pass Source instances to required method
in Source.
…of refactoring for more DRY. This also includes a shift from throwing an Exception if the source is not found in the build process. This would allow for -packages or +use-only in cli (that's next).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants