@toptal/davinci-storybook 0.2.1-alpha-feat-fx-2770-init-command.21 → 0.3.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci-storybook",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Davinci Storybook support project, containing configurations, themes, webpack plugins and related tools",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,9 +15,6 @@
|
|
|
15
15
|
"homepage": "https://github.com/toptal/davinci/tree/master/packages/storybook#readme",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"main": "src/index.js",
|
|
18
|
-
"bin": {
|
|
19
|
-
"davinci-storybook-init": "bin/davinci-storybook-init.sh"
|
|
20
|
-
},
|
|
21
18
|
"files": [
|
|
22
19
|
"src"
|
|
23
20
|
],
|
|
@@ -35,15 +32,14 @@
|
|
|
35
32
|
},
|
|
36
33
|
"dependencies": {
|
|
37
34
|
"@babel/core": "^7.18.5",
|
|
35
|
+
"@toptal/davinci-storybook-addons": "^0.2.0",
|
|
38
36
|
"@storybook/builder-webpack5": "^6.5.9",
|
|
39
37
|
"@storybook/manager-webpack5": "^6.5.9",
|
|
40
38
|
"@storybook/react": "^6.5.9",
|
|
41
39
|
"@storybook/testing-library": "^0.0.13",
|
|
42
|
-
"@toptal/davinci-storybook-addons": "0.2.1-alpha-feat-fx-2770-init-command.41+21283b1e",
|
|
43
40
|
"babel-loader": "^8.2.5"
|
|
44
41
|
},
|
|
45
42
|
"devDependencies": {
|
|
46
43
|
"yargs": "^17.5.1"
|
|
47
|
-
}
|
|
48
|
-
"gitHead": "21283b1ec005275971b9cd3ce876eda55c14da3a"
|
|
44
|
+
}
|
|
49
45
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
|
|
3
|
-
set -euo pipefail
|
|
4
|
-
|
|
5
|
-
echo "Installing storybook..."
|
|
6
|
-
# Description of options https://github.com/storybookjs/storybook/blob/next/lib/cli/src/generate.ts#L30
|
|
7
|
-
npx storybook init --force --yes
|
|
8
|
-
echo "Copying storybook files..."
|
|
9
|
-
# Copy .storybook folder from skeleton
|
|
10
|
-
cp -r ./node_modules/@toptal/davinci-skeleton/.storybook .
|
|
11
|
-
# Copy GH Workflow to deploy storybook to staging
|
|
12
|
-
cp ./node_modules/@toptal/davinci-skeleton/.github/workflows/davinci-deploy-storybook-staging.yml .github/workflows/davinci-deploy-storybook-staging.yml
|
|
13
|
-
# Copy GH Workflow to deploy storybook to temploy
|
|
14
|
-
cp ./node_modules/@toptal/davinci-skeleton/.github/workflows/davinci-deploy-storybook-temploy.yml .github/workflows/davinci-deploy-storybook-temploy.yml
|
|
15
|
-
echo "Injecting commands to package.json..."
|
|
16
|
-
HYGEN_TMPLS=./node_modules/@toptal/davinci-storybook/_templates npx hygen storybook init
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|