@canopycanopycanopy/b-ber-resources 3.0.8-nav.0 → 3.0.8-next.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# b-ber-resources
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Provides static image assets used by b-ber builds as fallback or default resources. During a build, the main export reads its own directory and returns a map of `{ baseName: absoluteFilePath }` for every PNG or JPEG file it finds. Consumers use this map to locate assets (e.g. a default publisher logo) without hard-coding paths.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Contents
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
| Path | Purpose |
|
|
8
|
+
| ----------------------------- | ----------------------------------------------------------------- |
|
|
9
|
+
| `b-ber-logo.png` | b-ber project logo |
|
|
10
|
+
| `default-publishers-logo.png` | Fallback publisher logo used when a project has no custom logo |
|
|
11
|
+
| `src/index.js` | Source: reads the package directory and returns an asset path map |
|
|
12
|
+
| `index.js` | Built output of `src/index.js` (generated by `npm run build`) |
|
|
13
|
+
|
|
14
|
+
## Dev
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm test # runs jest (test suite currently contains only a placeholder todo)
|
|
18
|
+
npm run build # transpiles src/ to index.js via Babel
|
|
9
19
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canopycanopycanopy/b-ber-resources",
|
|
3
|
-
"version": "3.0.8-
|
|
3
|
+
"version": "3.0.8-next.61+2bbec564",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"url": "https://maxwellsimmer.com"
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2bbec5643278f53becb0d2ba1f55edfe379d5587"
|
|
50
50
|
}
|