buildgrid-ui 0.0.1-alpha.1 → 1.0.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/.github/workflows/release.yml +22 -0
- package/.husky/commit-msg +1 -0
- package/.releaserc.json +26 -0
- package/.storybook/main.ts +7 -2
- package/.storybook/preview.ts +1 -0
- package/CHANGELOG.md +6 -0
- package/commitlint.config.js +3 -0
- package/package.json +15 -2
- package/postcss.config.js +6 -0
- package/src/styles/tailwind.css +3 -0
- package/tailwind.config.js +8 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- name: Checkout code
|
|
11
|
+
uses: actions/checkout@v3
|
|
12
|
+
- name: Setup Node.js
|
|
13
|
+
uses: actions/setup-node@v3
|
|
14
|
+
with:
|
|
15
|
+
node-version: "20.8.1"
|
|
16
|
+
- name: Install dependencies
|
|
17
|
+
run: npm ci
|
|
18
|
+
- name: Run semantic-release
|
|
19
|
+
env:
|
|
20
|
+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
21
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
22
|
+
run: npm run release
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
npx --no-install commitlint --edit "$1"
|
package/.releaserc.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"branches": ["main"],
|
|
3
|
+
"plugins": [
|
|
4
|
+
"@semantic-release/commit-analyzer",
|
|
5
|
+
"@semantic-release/release-notes-generator",
|
|
6
|
+
[
|
|
7
|
+
"@semantic-release/changelog",
|
|
8
|
+
{
|
|
9
|
+
"changelogFile": "CHANGELOG.md"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"@semantic-release/npm",
|
|
14
|
+
{
|
|
15
|
+
"npmPublish": true
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"@semantic-release/git",
|
|
20
|
+
{
|
|
21
|
+
"assets": ["package.json", "CHANGELOG.md"],
|
|
22
|
+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
]
|
|
26
|
+
}
|
package/.storybook/main.ts
CHANGED
|
@@ -8,14 +8,19 @@ const config: StorybookConfig = {
|
|
|
8
8
|
"@storybook/addon-essentials",
|
|
9
9
|
"@chromatic-com/storybook",
|
|
10
10
|
"@storybook/addon-interactions",
|
|
11
|
+
"storybook-css-modules-preset",
|
|
11
12
|
],
|
|
12
13
|
framework: {
|
|
13
14
|
name: "@storybook/react-vite",
|
|
14
15
|
options: {},
|
|
15
16
|
},
|
|
16
|
-
viteFinal
|
|
17
|
+
async viteFinal(config) {
|
|
17
18
|
return mergeConfig(config, {
|
|
18
|
-
|
|
19
|
+
css: {
|
|
20
|
+
postcss: {
|
|
21
|
+
plugins: [require("tailwindcss"), require("autoprefixer")],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
19
24
|
});
|
|
20
25
|
},
|
|
21
26
|
};
|
package/.storybook/preview.ts
CHANGED
package/CHANGELOG.md
ADDED
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buildgrid-ui",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"main": "dist/buildgrid-ui.umd.js",
|
|
5
5
|
"module": "dist/buildgrid-ui.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
9
|
"storybook": "storybook dev -p 6006",
|
|
10
|
-
"build-storybook": "storybook build"
|
|
10
|
+
"build-storybook": "storybook build",
|
|
11
|
+
"release": "semantic-release"
|
|
11
12
|
},
|
|
12
13
|
"keywords": [],
|
|
13
14
|
"author": "",
|
|
@@ -21,6 +22,13 @@
|
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@chromatic-com/storybook": "^3.2.3",
|
|
25
|
+
"@commitlint/cli": "^19.6.1",
|
|
26
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
27
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
28
|
+
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
29
|
+
"@semantic-release/git": "^10.0.1",
|
|
30
|
+
"@semantic-release/npm": "^12.0.1",
|
|
31
|
+
"@semantic-release/release-notes-generator": "^14.0.2",
|
|
24
32
|
"@storybook/addon-essentials": "^8.4.7",
|
|
25
33
|
"@storybook/addon-interactions": "^8.4.7",
|
|
26
34
|
"@storybook/addon-onboarding": "^8.4.7",
|
|
@@ -30,7 +38,12 @@
|
|
|
30
38
|
"@storybook/test": "^8.4.7",
|
|
31
39
|
"@types/react": "^19.0.2",
|
|
32
40
|
"@vitejs/plugin-react": "^4.3.4",
|
|
41
|
+
"autoprefixer": "^10.4.20",
|
|
42
|
+
"husky": "^9.1.7",
|
|
43
|
+
"postcss": "^8.4.49",
|
|
44
|
+
"semantic-release": "^24.2.0",
|
|
33
45
|
"storybook": "^8.4.7",
|
|
46
|
+
"tailwindcss": "^3.4.17",
|
|
34
47
|
"typescript": "^5.7.2"
|
|
35
48
|
}
|
|
36
49
|
}
|