Build: Drop $web$ and $test$ placeholders

Created on 12 Dec 2019  路  5Comments  路  Source: dart-lang/build

$package$ should be used instead.

next-breaking-release build_runner

Most helpful comment

Quick prototype shows, that our builder works with $package$ just as well as with $web$. Obviously, paths had to be updated, since assets are located 1 level deeper in the directory structure but other than that, it seems to be OK at first glance.

All 5 comments

When that transition happens, please make sure to add appropriate documentation or changelog entries so that we have somewhere to look when migrating our builders. Thank you

Yes we definitely will when we do drop these. You should be able to get ahead of this and migrate to $package$ at any time though, and if that causes a problem for you it would be good to know early as well (for us).

I'd love to give you feedback on it and willing to migrate all my builders to it as a test but I am stuck at step 1: I have no idea what $package$ means. Could you point me to the right place where I could gather some info on it?

Are you familiar with $test$ and $web$? If so, $package$ is the same except that it lives at the root of the package, while those live under their corresponding subdirectories (test/$test$, web/$web$ etc).

Quick prototype shows, that our builder works with $package$ just as well as with $web$. Obviously, paths had to be updated, since assets are located 1 level deeper in the directory structure but other than that, it seems to be OK at first glance.

Was this page helpful?
0 / 5 - 0 ratings