@box/readable-time 2.1.25 → 2.1.27
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 +3 -14
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -90,10 +90,8 @@ All commands used with Nx can be found in `project.json` file within your packag
|
|
|
90
90
|
- `nx build-storybook readable-time` - build static version of storybook with all stories.
|
|
91
91
|
- `nx build readable-time` - build package using `shared-feature-builder` executor from `automation` package.
|
|
92
92
|
- `nx build readable-time --watch` - build package with --watch flag enabled, which rebuilds `dist` content based on
|
|
93
|
-
changes in `src
|
|
94
|
-
- `nx
|
|
95
|
-
to be imported by `react-intl`.
|
|
96
|
-
- `nx lint readable-time` - run linter over package files,
|
|
93
|
+
changes in `src`.
|
|
94
|
+
- `nx lint readable-time` - runs linter over package files.
|
|
97
95
|
- `nx test readable-time` - runs storybook tests (visual/interactions) and jest unit tests, producing coverage report at
|
|
98
96
|
the end.
|
|
99
97
|
- `nx test-storybook readable-time` - runs storybook tests. You need first to start storybook in separate terminal for
|
|
@@ -117,13 +115,4 @@ team, owning or requesting, will be responsible for implementing changes to code
|
|
|
117
115
|
|
|
118
116
|
## Translations
|
|
119
117
|
|
|
120
|
-
|
|
121
|
-
Box way, for more information on this checkout their i18n
|
|
122
|
-
docs [here](https://git.dev.box.net/Box/frontend/tree/master/i18n)
|
|
123
|
-
|
|
124
|
-
The `i18n/` dir is bundled with this package to enable the consuming app to use the translations included in this
|
|
125
|
-
component it need to adjust
|
|
126
|
-
it's [TranslationsPlugin](https://git.dev.box.net/Box/frontend/blob/master/webpack/README.md#translationsplugin),
|
|
127
|
-
see
|
|
128
|
-
EUA's [webpack.base.config.js](https://git.dev.box.net/Box/EndUserApp/blob/master/conf/webpack/webpack.base.js#L270-L273)
|
|
129
|
-
and [i18n.config.js](https://git.dev.box.net/Box/EndUserApp/blob/master/i18n.config.js) for reference.
|
|
118
|
+
Per-locale `i18n/*.js` files are generated and committed by the Moji Jenkins pipeline. The shared-feature builder copies them into `dist/i18n/` during `build`. Consuming applications list this package in `i18n.config.js` under `translationDependencies`.
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/readable-time",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.27",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@box/blueprint-web": "^16.8.
|
|
7
|
-
"@box/blueprint-web-assets": "^5.5.
|
|
6
|
+
"@box/blueprint-web": "^16.8.4",
|
|
7
|
+
"@box/blueprint-web-assets": "^5.5.2",
|
|
8
8
|
"react": "^18.0.0",
|
|
9
9
|
"react-dom": "^18.0.0",
|
|
10
10
|
"react-intl": "^6.4.2"
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@box/blueprint-web": "^16.8.
|
|
17
|
-
"@box/blueprint-web-assets": "^5.5.
|
|
16
|
+
"@box/blueprint-web": "^16.8.4",
|
|
17
|
+
"@box/blueprint-web-assets": "^5.5.2",
|
|
18
18
|
"@box/eslint-plugin-blueprint": "2.1.10",
|
|
19
|
-
"@box/storybook-utils": "1.1.
|
|
19
|
+
"@box/storybook-utils": "1.1.26",
|
|
20
20
|
"react-intl": "^6.4.2"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|