@carbon/vue 3.0.18 → 3.0.19
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 +19 -0
- package/dist/web-types.json +1 -1
- package/package.json +6 -9
- package/postinstall.js +9 -0
package/README.md
CHANGED
|
@@ -112,6 +112,25 @@ If you just want to build an individual package you can limit the scope:
|
|
|
112
112
|
|
|
113
113
|
To start the storybook in a local server use `yarn start`.
|
|
114
114
|
|
|
115
|
+
## Test publish
|
|
116
|
+
|
|
117
|
+
To test publishing to a npm registry:
|
|
118
|
+
|
|
119
|
+
```shell
|
|
120
|
+
cd local-dev
|
|
121
|
+
docker-compose up
|
|
122
|
+
# open a new terminal
|
|
123
|
+
yarn build
|
|
124
|
+
npm add-user --registry http://0.0.0.0:4873/
|
|
125
|
+
# any username, password, & email will work
|
|
126
|
+
# try: carbon, vue, & carbon-vue@example.com
|
|
127
|
+
yarn test:publish
|
|
128
|
+
# maybe change some things and try again
|
|
129
|
+
yarn build
|
|
130
|
+
yarn test:unpublish
|
|
131
|
+
yarn test:publish
|
|
132
|
+
```
|
|
133
|
+
|
|
115
134
|
## How to run the storybook
|
|
116
135
|
|
|
117
136
|
Just follow the steps listed below and you will be able to run the storybook.
|
package/dist/web-types.json
CHANGED
package/package.json
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/vue",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.19",
|
|
5
5
|
"description": "A collection of components for the Carbon Design System built using Vue.js",
|
|
6
6
|
"packageManager": "yarn@3.2.0",
|
|
7
7
|
"main": "dist/carbon-vue-3.umd.min.js",
|
|
8
8
|
"types": "src/index.d.ts",
|
|
9
9
|
"web-types": "dist/web-types.json",
|
|
10
|
-
"packrat": {
|
|
11
|
-
"prod_setup": "npx ibmtelemetry --config=telemetry.yml || true",
|
|
12
|
-
"dev_setup": "node devPreinstall.js && node .storybook/postinstall.js"
|
|
13
|
-
},
|
|
14
10
|
"scripts": {
|
|
15
|
-
"postinstall": "
|
|
16
|
-
"prepack": "node packrat.js --disable",
|
|
17
|
-
"postpack": "node packrat.js --enable",
|
|
11
|
+
"postinstall": "node postinstall.js",
|
|
18
12
|
"build": "vue-cli-service build --target lib --name carbon-vue-3 ./src/index.js --no-clean",
|
|
19
13
|
"lint": "vue-cli-service lint",
|
|
20
14
|
"build-web-types": "vue-docgen-web-types --outFile dist/web-types.json",
|
|
@@ -27,6 +21,8 @@
|
|
|
27
21
|
"lint:es": "eslint src/**/*.{js,vue}",
|
|
28
22
|
"lint:style": "vue-cli-service lint:style",
|
|
29
23
|
"serve:storybook": "cd ./storybook && yarn run serve",
|
|
24
|
+
"test:publish": "npm publish --registry http://0.0.0.0:4873",
|
|
25
|
+
"test:unpublish": "rm -rf local-dev/npm-registry/storage/data/@carbon/vue",
|
|
30
26
|
"test": "vue-cli-service test:unit --no-coverage"
|
|
31
27
|
},
|
|
32
28
|
"workspaces": [
|
|
@@ -164,6 +160,7 @@
|
|
|
164
160
|
"files": [
|
|
165
161
|
"/dist",
|
|
166
162
|
"/src",
|
|
163
|
+
"postinstall.js",
|
|
167
164
|
"telemetry.yml"
|
|
168
165
|
],
|
|
169
166
|
"commitlint": {
|
|
@@ -181,5 +178,5 @@
|
|
|
181
178
|
"url": "git+https://github.com/carbon-design-system/carbon-components-vue.git"
|
|
182
179
|
},
|
|
183
180
|
"sideEffects": true,
|
|
184
|
-
"gitHead": "
|
|
181
|
+
"gitHead": "c0f3985156cde83b216fd96f56c000c56b561ac4"
|
|
185
182
|
}
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const { spawnSync } = require('child_process');
|
|
3
|
+
|
|
4
|
+
if (fs.existsSync('./devPreinstall.js')) {
|
|
5
|
+
require('./devPreinstall.js');
|
|
6
|
+
require('./.storybook/postinstall.js');
|
|
7
|
+
} else {
|
|
8
|
+
spawnSync('npx', ['ibmtelemetry', '--config=telemetry.yml']);
|
|
9
|
+
}
|