eatdrinksleepcode / casper Goto Github PK
View Code? Open in Web Editor NEWA cross-platform .NET build system using the Boo language. Deprecated; see website for new version.
Home Page: https://gitlab.com/casper-build/casper
License: MIT License
A cross-platform .NET build system using the Boo language. Deprecated; see website for new version.
Home Page: https://gitlab.com/casper-build/casper
License: MIT License
What needs to be done to:
Show output if the task fails?
Tasks with the same name in different imported projects are currently resolved via "first in wins", which is not intuitive. Instead, require specifying the full "path" to the task (i.e. the delimited list of project names) for all tasks.
Currently, task configuration is typically done via constructors, using Boo's version of object initializers:
task Pack(Exec,
Executable: 'nuget.exe')
This essentially requires all task configuration to be done within a single expression which can get unwieldy. It would be great if we could do task configuration within a closure, which would allow each configuration entry to be its own statement:
task Pack(Exec):
Executable = 'nuget.exe'
However, because Boo does not have the concept of function "receivers" (what Groovy would refer to as a "delegate"), the "Executable" identifier in this example cannot be resolved, resulting in a compiler error. An instance of the task would have to be passed in as a parameter, and code in the function would have to refer to the task explicitly:
task Pack(Exec):
task.Executable = 'nuget.exe'
This is not much different - and arguably not even any better - than not even using a closure, but configuring the task directly:
task Pack(Exec)
Pack.Executable = 'nuget.exe'
But while this works and is highly flexible, it fails to create a natural structure in the build script, and is also quite redundant. Both of these factors hurt script readability.
One option to consider would be creating Boo macros for the major built-in tasks. A reference to the task parameter could then be injected automatically:
task Pack(Exec):
executable 'nuget.exe'
While this comes very close to emulating our desired form, it requires a macro to be written for every property of every task, which is a lot to maintain. It would also be more to understand and more work for custom task authors. But IF we think that Boo will ultimately implement some form of receiver functions, this could be a temporary stepping stone to our desired end state.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.