Opened 8 years ago

Closed 8 years ago

#17920 closed defect (patchwelcome)

Enhancement - Build Process

Reported by: ca0v Owned by: ca0v
Priority: undecided Milestone: 1.10
Component: BuildSystem Version: 1.9.3
Keywords: Cc:
Blocked By: Blocking:


The "map" feature is great in that we can redirect to various packages depending on configuration and load dynamic content. Unfortunately the build process does not have mechanism for ignoring mid's. It would be nice to be able to specify a list of mid's to ignore when doing a build. For example, adding "dojo" to this list would build all *my* code without re-building any "dojo" code. Or I could add "text!dynamic.html" to use the convenient text! plugin to load dynamic content.

My specific issue is I'm using a typescript definition do describe my server-side configuration but the actual configuration must be dynamic. The "map" feature is perfect for this but when I come to do a build I get errors. If I could add my dynamic content to an ignore list I wouldn't need to introduce a plugin for dynamic resources and complicate my typescript environment.

I hope this makes sense; I looking for a way to tell the builder to ignore content based on mid.

Change History (3)

comment:1 Changed 8 years ago by bill

Component: GeneralBuildSystem
Owner: set to Rawld Gill

Unfortunately the build process does not have mechanism for ignoring mid's.

Isn't that the whole point of building layers? This seems like a basic function of the build system.

comment:2 Changed 8 years ago by dylan

Milestone: tbd1.10
Owner: changed from Rawld Gill to ca0v
Status: newpending

Yes, as Bill said, basically in your layer, you would specify an excludes, and that module would not be built into the layer.

That said, you cannot really guarantee that you can rebuild part of your app and still use it with another part of the app. This is because private variables names may not be renamed consistently between different builds, because they're essentially renamed sequentially. It's possible things could still work if you're very careful in your usage of private variables across modules, but it's not something I've tried or tested recently.

comment:3 Changed 8 years ago by dylan

Resolution: patchwelcome
Status: pendingclosed
Note: See TracTickets for help on using tickets.