@vixoniccom/menu-daily 0.2.0-dev.0 → 0.2.0-dev.2

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,105 @@
1
+ name: Publish to NPM
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - main
8
+ pull_request:
9
+ branches:
10
+ - master
11
+ - main
12
+ types: [closed]
13
+
14
+ jobs:
15
+ publish:
16
+ # Solo ejecutar si es un push a main/master o un merge a main/master
17
+ if: github.event_name == 'push' || (github.event.pull_request.merged == true && (github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main'))
18
+ runs-on: ubuntu-latest
19
+
20
+ steps:
21
+ - name: Checkout code
22
+ uses: actions/checkout@v4
23
+ with:
24
+ fetch-depth: 0
25
+
26
+ - name: Setup Node.js 20
27
+ uses: actions/setup-node@v4
28
+ with:
29
+ node-version: '20'
30
+ registry-url: 'https://registry.npmjs.org'
31
+ scope: '@vixoniccom'
32
+
33
+ - name: Configure npm authentication
34
+ run: |
35
+ echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
36
+ echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
37
+ echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
38
+ env:
39
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40
+
41
+ - name: Cache node modules
42
+ uses: actions/cache@v4
43
+ with:
44
+ path: ~/.npm
45
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
46
+ restore-keys: |
47
+ ${{ runner.os }}-node-
48
+
49
+ - name: Install dependencies
50
+ run: npm ci --ignore-scripts
51
+ env:
52
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
53
+
54
+ - name: Build package
55
+ run: npm run prepublish
56
+ env:
57
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
58
+
59
+ - name: Verify build.zip exists
60
+ run: |
61
+ if [ ! -f "build.zip" ]; then
62
+ echo "❌ Error: build.zip not found after build process"
63
+ exit 1
64
+ fi
65
+ echo "✅ build.zip found successfully"
66
+ ls -la build.zip
67
+
68
+ - name: Check if version already exists on npm
69
+ id: check-version
70
+ run: |
71
+ PACKAGE_NAME=$(node -p "require('./package.json').name")
72
+ PACKAGE_VERSION=$(node -p "require('./package.json').version")
73
+
74
+ echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION exists on npm..."
75
+
76
+ if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
77
+ echo "version-exists=true" >> $GITHUB_OUTPUT
78
+ echo "⚠️ Version $PACKAGE_VERSION already exists on npm"
79
+ else
80
+ echo "version-exists=false" >> $GITHUB_OUTPUT
81
+ echo "✅ Version $PACKAGE_VERSION does not exist on npm - ready to publish"
82
+ fi
83
+
84
+ - name: Publish to npm
85
+ if: steps.check-version.outputs.version-exists == 'false'
86
+ run: |
87
+ echo "Publishing to npm..."
88
+ npm publish --access public
89
+ env:
90
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
91
+
92
+ - name: Publication success
93
+ if: steps.check-version.outputs.version-exists == 'false'
94
+ run: |
95
+ PACKAGE_NAME=$(node -p "require('./package.json').name")
96
+ PACKAGE_VERSION=$(node -p "require('./package.json').version")
97
+ echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
98
+ echo "📦 Package includes build.zip with the compiled application"
99
+
100
+ - name: Skip publication
101
+ if: steps.check-version.outputs.version-exists == 'true'
102
+ run: |
103
+ PACKAGE_VERSION=$(node -p "require('./package.json').version")
104
+ echo "⏭️ Skipping publication - version $PACKAGE_VERSION already exists on npm"
105
+ echo "💡 To publish a new version, update the version in package.json or run 'npm run release'"
@@ -0,0 +1,30 @@
1
+ name: Sonarqube Analysis
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - development
7
+ pull_request:
8
+ types: [opened, synchronize, reopened]
9
+
10
+ jobs:
11
+ sonarqube:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ with:
16
+ # Disabling shallow clone is recommended for improving relevancy of reporting.
17
+ fetch-depth: 0
18
+
19
+ - name: SonarQube Scan
20
+ uses: sonarsource/sonarqube-scan-action@c8357220fa7152a7881d87dcaefafbd129e37cb9
21
+ env:
22
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
23
+ SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
24
+
25
+ - name: SonarQube Quality Gate Check
26
+ uses: sonarsource/sonarqube-quality-gate-action@cb3ed20f9fec62b4c3b8ad9e77656c6adaade913
27
+ timeout-minutes: 5
28
+ env:
29
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30
+ SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
@@ -1,3 +1,7 @@
1
1
  {
2
- "js/ts.tsdk.path": "node_modules/typescript/lib"
2
+ "js/ts.tsdk.path": "node_modules/typescript/lib",
3
+ "sonarlint.connectedMode.project": {
4
+ "connectionId": "https://sonar.visma.com",
5
+ "projectKey": "Vixonic_store-menu-daily_1e47740b-90ac-4376-9fb7-5d97065b6387"
6
+ }
3
7
  }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [0.2.0-dev.2](https://github.com/Vixonic/store-menu-daily/compare/v0.2.0-dev.1...v0.2.0-dev.2) (2026-06-24)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * apply sonar suggestions ([45476ce](https://github.com/Vixonic/store-menu-daily/commit/45476ced842624cb770ee735b6e8d29b8b292fc8))
11
+ * apply sonar suggestions ([b9c04e6](https://github.com/Vixonic/store-menu-daily/commit/b9c04e613957b81031d452921e3ce3da6099dea4))
12
+ * **GridItem:** prevent infinite loop in componentDidUpdate ([9682e77](https://github.com/Vixonic/store-menu-daily/commit/9682e776e56928248211a464c1f13dc6fed9e4c7)), closes [#185](https://github.com/Vixonic/store-menu-daily/issues/185)
13
+ * read props from this.props so sonar detects them as used ([6102474](https://github.com/Vixonic/store-menu-daily/commit/61024742d10b755b3f2b1ec80a190eabfee46fca))
14
+ * resolve sonar false positives for undetected props ([414c373](https://github.com/Vixonic/store-menu-daily/commit/414c3735744c7e3167541cfbc4caf4c97a30f3f2))
15
+
16
+ ## [0.2.0-dev.1](https://github.com/Vixonic/store-menu-daily/compare/v0.2.0-dev.0...v0.2.0-dev.1) (2026-06-24)
17
+
18
+
19
+ ### Features
20
+
21
+ * add CI workflows and replace deprecated ReactDOM.render ([6a2657b](https://github.com/Vixonic/store-menu-daily/commit/6a2657b8092c1d819c0e31a1bef117ad041017a1))
22
+
5
23
  ## [0.2.0-dev.0](https://github.com/Vixonic/store-menu-daily/compare/v0.1.2-dev.1...v0.2.0-dev.0) (2026-06-24)
6
24
 
7
25
 
package/build/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html><head><title></title><meta charset="utf-8"><style>@font-face{font-family:FrutigerLTStdBoldCn;src:url('./static/fonts/FrutigerLTStdBoldCn.ttf')}@font-face{font-family:FrutigerLTStdCn;src:url('./static/fonts/FrutigerLTStdCn.otf')}@font-face{font-family:FrutigerLTStdBlackCn;src:url('./static/fonts/FrutigerLTStdBlackCn.ttf')}@font-face{font-family:FrutigerLTStdLightCn;src:url('./static/fonts/FrutigerLTStdLightCn.ttf')}</style></head><body><div id="root" style="position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden"></div><script src="./main.js"></script></body></html>
1
+ <!doctype html><html lang="en"><head><title></title><meta charset="utf-8"/><style>@font-face{font-family:FrutigerLTStdBoldCn;src:url('./static/fonts/FrutigerLTStdBoldCn.ttf')}@font-face{font-family:FrutigerLTStdCn;src:url('./static/fonts/FrutigerLTStdCn.otf')}@font-face{font-family:FrutigerLTStdBlackCn;src:url('./static/fonts/FrutigerLTStdBlackCn.ttf')}@font-face{font-family:FrutigerLTStdLightCn;src:url('./static/fonts/FrutigerLTStdLightCn.ttf')}</style></head><body><div id="root" style="position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden"></div><script src="./main.js"></script></body></html>