hds-web 1.32.9 → 1.33.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +6 -0
- package/dist/index.es.css +6 -0
- package/dist/index.es.js +29 -0
- package/dist/index.js +29 -0
- package/package.json +2 -3
- package/.github/workflows/chromatic.yml +0 -25
- package/rollup.config.js +0 -55
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "hds-web",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.33.1",
|
4
4
|
"private": false,
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"module": "dist/index.es.js",
|
@@ -28,8 +28,7 @@
|
|
28
28
|
"watch:storybook": "start-storybook -p 6006 -s public",
|
29
29
|
"watch:tailwind": "npx tailwindcss -i ./src/index.css -o ./src/styles/tailwind.css --watch",
|
30
30
|
"build": "build-storybook -s public",
|
31
|
-
"build-lib": "rollup -c"
|
32
|
-
"chromatic": "npx chromatic --project-token=chpt_522a228102c089e"
|
31
|
+
"build-lib": "rollup -c"
|
33
32
|
},
|
34
33
|
"eslintConfig": {
|
35
34
|
"extends": [
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# .github/workflows/chromatic.yml
|
2
|
-
|
3
|
-
# Workflow name
|
4
|
-
name: Chromatic
|
5
|
-
|
6
|
-
# Event for the workflow
|
7
|
-
on:
|
8
|
-
push:
|
9
|
-
branches:
|
10
|
-
- release-chromatic # Adjust the branch name as needed
|
11
|
-
|
12
|
-
# List of jobs
|
13
|
-
jobs:
|
14
|
-
chromatic-deployment:
|
15
|
-
# Operating System
|
16
|
-
runs-on: ubuntu-latest
|
17
|
-
# Job steps
|
18
|
-
steps:
|
19
|
-
- uses: actions/checkout@v1
|
20
|
-
- run: npm install
|
21
|
-
#👇 Adds Chromatic as a step in the workflow
|
22
|
-
- uses: chromaui/action@v1
|
23
|
-
# Options required for Chromatic's GitHub Action
|
24
|
-
with:
|
25
|
-
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
package/rollup.config.js
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
import babel from 'rollup-plugin-babel';
|
2
|
-
import resolve from '@rollup/plugin-node-resolve';
|
3
|
-
import external from 'rollup-plugin-peer-deps-external';
|
4
|
-
import { terser } from 'rollup-plugin-terser';
|
5
|
-
import postcss from 'rollup-plugin-postcss';
|
6
|
-
import image from '@rollup/plugin-image';
|
7
|
-
import svgr from '@svgr/rollup'
|
8
|
-
import url from '@rollup/plugin-url'
|
9
|
-
import commonjs from '@rollup/plugin-commonjs';
|
10
|
-
import json from '@rollup/plugin-json';
|
11
|
-
export default [
|
12
|
-
{
|
13
|
-
input: './src/index.js',
|
14
|
-
output: [
|
15
|
-
{
|
16
|
-
file: 'dist/index.js',
|
17
|
-
format: 'cjs',
|
18
|
-
exports: 'named',
|
19
|
-
},
|
20
|
-
{
|
21
|
-
file: 'dist/index.es.js',
|
22
|
-
format: 'es',
|
23
|
-
exports: 'named',
|
24
|
-
},
|
25
|
-
],
|
26
|
-
plugins: [
|
27
|
-
json(),
|
28
|
-
postcss({
|
29
|
-
extensions: ['.css'],
|
30
|
-
extract: true,
|
31
|
-
modules: false,
|
32
|
-
config: {
|
33
|
-
path: './postcss.config.js',
|
34
|
-
},
|
35
|
-
plugins: [],
|
36
|
-
minimize: true,
|
37
|
-
}),
|
38
|
-
image(),
|
39
|
-
url(),
|
40
|
-
svgr({ icon: true }),
|
41
|
-
babel({
|
42
|
-
exclude: 'node_modules/**',
|
43
|
-
presets: ['@babel/preset-react'],
|
44
|
-
}),
|
45
|
-
external(),
|
46
|
-
resolve(),
|
47
|
-
commonjs({
|
48
|
-
namedExports: {
|
49
|
-
'prop-types': ['PropTypes'],
|
50
|
-
},
|
51
|
-
}),
|
52
|
-
terser(),
|
53
|
-
],
|
54
|
-
},
|
55
|
-
];
|