@gatsbyjs/parcel-namer-relative-to-cwd
Parcel namer that preserves directory structures to stabilize output and keep the hierarchy.
Last updated 10 months ago by serhalp-netlify .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @gatsbyjs/parcel-namer-relative-to-cwd 
SYNC missed versions from official npm registry.

@gatsbyjs/parcel-namer-relative-to-cwd

This namer plugin is used by Gatsby internally. You can reuse it inside your app if you want.

If you're just using Gatsby, you don't need to care about this package/plugin.

Usage

npm install --save-dev @gatsbyjs/parcel-namer-relative-to-cwd

And inside your .parcelrc:

{
  "extends": "@parcel/config-default",
  "namers": ["@gatsbyjs/parcel-namer-relative-to-cwd", "..."]
}

Why & How

By default, Parcel is trying to find common/shared directories between entries and output paths that are impacted by it. See this issue comment for more information.

With these inputs files:

a.html
sub/b.html

You get:

  • parcel build a.html => dist/a.html
  • parcel build sub/b.html => dist/b.html
  • parcel build a.html sub/b.html => dist/a.html, dist/sub/b.html

You can see that sub/b.html entry might result in either dist/b.html or dist/sub/b.html (depending wether a.html is entry or not). This makes builds not deterministic, which is very problematic where entries are "optional".

This namer plugin stabilizes the output, so inside distDir the hierarchy is the same as entry file in relation to current working directory (CWD):

  • parcel build a.html => dist/a.html
  • parcel build sub/b.html => dist/sub/b.html
  • parcel build a.html sub/b.html => dist/a.html, dist/sub/b.html

Current Tags

  • 1.8.0-alpha-9689ff.25                                ...           alpha-9689ff (4 years ago)
  • 1.3.0-alpha-mdx-v2.68                                ...           alpha-mdx-v2 (4 years ago)
  • 2.0.0-alpha-transformer-json.20740                                ...           alpha-transformer-json (4 years ago)
  • 2.0.0-alpha-v5.d20221012t101120.57                                ...           alpha-v5 (4 years ago)
  • 2.0.0-alpha-drupal-proxyurl.14                                ...           drupal-proxyurl (4 years ago)
  • 1.3.0-alpha-drupal-self-reference.18                                ...           drupal-self-reference (4 years ago)
  • 2.16.0                                ...           latest (10 months ago)
  • 1.10.0                                ...           latest-v4 (4 years ago)
  • 1.5.0-mdxv4-rc.124                                ...           mdxv4-rc (4 years ago)
  • 2.17.0-next.0                                ...           next (a year ago)
  • 1.8.0-alpha-preview-gh-api.26                                ...           preview-gh-api (4 years ago)
  • 1.1.0-alpha-wp-image-cdn-auth.20253                                ...           wp-image-cdn-auth (5 years ago)

107 Versions

  • 2.16.0                                ...           10 months ago
  • 2.17.0-next.0                                ...           a year ago
  • 2.15.0                                ...           a year ago
  • 2.16.0-next.0                                ...           a year ago
  • 2.15.0-next.0                                ...           2 years ago
  • 2.14.0                                ...           2 years ago
  • 2.13.1                                ...           3 years ago
  • 2.14.0-next.2                                ...           3 years ago
  • 2.14.0-next.1                                ...           3 years ago
  • 2.13.0                                ...           3 years ago
  • 2.14.0-next.0                                ...           3 years ago
  • 2.13.0-next.1                                ...           3 years ago
  • 2.12.1                                ...           3 years ago
  • 2.12.0                                ...           3 years ago
  • 2.13.0-next.0                                ...           3 years ago
  • 2.12.0-next.1                                ...           3 years ago
  • 2.11.0                                ...           3 years ago
  • 2.12.0-next.0                                ...           3 years ago
  • 2.11.0-next.1                                ...           3 years ago
  • 2.10.0                                ...           4 years ago
  • 2.11.0-next.0                                ...           4 years ago
  • 2.10.0-next.2                                ...           4 years ago
  • 2.10.0-next.1                                ...           4 years ago
  • 2.9.0                                ...           4 years ago
  • 2.10.0-next.0                                ...           4 years ago
  • 2.9.0-next.1                                ...           4 years ago
  • 2.8.0                                ...           4 years ago
  • 2.9.0-next.0                                ...           4 years ago
  • 2.7.0                                ...           4 years ago
  • 2.8.0-next.0                                ...           4 years ago
  • 2.6.0                                ...           4 years ago
  • 2.7.0-next.0                                ...           4 years ago
  • 2.5.0                                ...           4 years ago
  • 2.6.0-next.0                                ...           4 years ago
  • 2.5.0-next.1                                ...           4 years ago
  • 2.4.0                                ...           4 years ago
  • 2.5.0-next.0                                ...           4 years ago
  • 2.4.0-next.2                                ...           4 years ago
  • 2.3.1                                ...           4 years ago
  • 2.4.0-next.1                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.4.0-next.0                                ...           4 years ago
  • 1.10.0                                ...           4 years ago
  • 2.3.0-next.2                                ...           4 years ago
  • 2.3.0-next.1                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.3.0-next.0                                ...           4 years ago
  • 2.0.0-alpha-drupal-proxyurl.14                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.2.0-next.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 2.1.0-next.0                                ...           4 years ago
  • 2.0.0-next.2                                ...           4 years ago
  • 2.0.0-next.1                                ...           4 years ago
  • 2.0.0-alpha-transformer-json.20740                                ...           4 years ago
  • 2.0.0-next.0                                ...           4 years ago
  • 2.0.0-alpha-v5.d20221012t101120.57                                ...           4 years ago
  • 2.0.0-alpha-v5.d20221010t183635.51                                ...           4 years ago
  • 2.0.0-alpha-v5.d20221007t081809.41                                ...           4 years ago
  • 2.0.0-alpha-v5.d20221005t111511.35                                ...           4 years ago
  • 2.0.0-alpha-v5.16                                ...           4 years ago
  • 1.9.0                                ...           4 years ago
  • 1.10.0-next.0                                ...           4 years ago
  • 1.9.0-next.1                                ...           4 years ago
  • 2.0.0-alpha-v5.26                                ...           4 years ago
  • 1.8.0                                ...           4 years ago
  • 1.8.0-alpha-preview-gh-api.26                                ...           4 years ago
  • 1.9.0-next.0                                ...           4 years ago
  • 1.8.0-alpha-v5.26                                ...           4 years ago
  • 1.8.0-alpha-9689ff.25                                ...           4 years ago
  • 2.0.0-alpha-v5.25                                ...           4 years ago
  • 2.0.0-alpha-v5.24                                ...           4 years ago
  • 1.7.0                                ...           4 years ago
  • 1.8.0-next.0                                ...           4 years ago
  • 1.6.0                                ...           4 years ago
  • 1.7.0-next.0                                ...           4 years ago
  • 1.6.0-next.2                                ...           4 years ago
  • 1.6.0-next.1                                ...           4 years ago
  • 1.5.0                                ...           4 years ago
  • 1.6.0-next.0                                ...           4 years ago
  • 1.5.0-mdxv4-rc.124                                ...           4 years ago
  • 1.5.0-mdxv4-rc.109                                ...           4 years ago
  • 1.3.0-mdxv4-rc.76                                ...           4 years ago
  • 1.3.0-alpha-drupal-self-reference.18                                ...           4 years ago
  • 1.4.0                                ...           4 years ago
  • 1.5.0-next.0                                ...           4 years ago
  • 1.3.2                                ...           4 years ago
  • 1.3.1                                ...           4 years ago
  • 1.3.0-mdxv4-rc.68                                ...           4 years ago
  • 1.4.0-next.2                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.4.0-next.1                                ...           4 years ago
  • 1.4.0-next.0                                ...           4 years ago
  • 1.3.0-alpha-mdx-v2.68                                ...           4 years ago
  • 1.3.0-alpha-mdx-v2.66                                ...           4 years ago
  • 1.3.0-next.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.3.0-next.0                                ...           4 years ago
  • 1.2.0-next.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.2.0-next.0                                ...           4 years ago
  • 1.1.0-next.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 1.1.0-alpha-wp-image-cdn-auth.20253                                ...           5 years ago
  • 1.1.0-next.0                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Downloads
Total 232
Today 0
This Week 0
This Month 93
Last Day 0
Last Week 1
Last Month 132
Dependencies (4)
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE