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.
@@ -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"
@@ -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
+ }
@@ -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: (config) => {
17
+ async viteFinal(config) {
17
18
  return mergeConfig(config, {
18
- plugins: [],
19
+ css: {
20
+ postcss: {
21
+ plugins: [require("tailwindcss"), require("autoprefixer")],
22
+ },
23
+ },
19
24
  });
20
25
  },
21
26
  };
@@ -1,4 +1,5 @@
1
1
  import type { Preview } from "@storybook/react";
2
+ import "../src/styles/tailwind.css";
2
3
 
3
4
  const preview: Preview = {
4
5
  parameters: {
package/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # 1.0.0 (2025-01-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * add Button component with Storybook integration and initial configuration ([bbc4e9a](https://github.com/adrianomaringolo/buildgrid-ui/commit/bbc4e9a54e3ea295622c8598d51576f3cddd1b3d))
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ extends: ["@commitlint/config-conventional"],
3
+ };
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "buildgrid-ui",
3
- "version": "0.0.1-alpha.1",
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
  }
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ };
@@ -0,0 +1,3 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
@@ -0,0 +1,8 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: ["./src/**/*.{js,ts,jsx,tsx}"],
4
+ theme: {
5
+ extend: {},
6
+ },
7
+ plugins: [],
8
+ };