@vixoniccom/news-internal 0.4.20-dev.2 → 0.4.20-dev.4
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/npm-publish.yml +98 -0
- package/.github/workflows/sonarqube.yml +30 -0
- package/CHANGELOG.md +19 -0
- package/build.zip +0 -0
- package/configuration/newsGroup/newsInputs.ts +4 -0
- package/configuration.json +17 -13
- package/package.json +2 -2
- package/sonar-project.properties +1 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
name: Publish to NPM
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
- main
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
publish:
|
|
11
|
+
# Solo ejecutar si es un push a main/master
|
|
12
|
+
if: github.event_name == 'push'
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
|
|
21
|
+
- name: Setup Node.js 20
|
|
22
|
+
uses: actions/setup-node@v4
|
|
23
|
+
with:
|
|
24
|
+
node-version: '20'
|
|
25
|
+
registry-url: 'https://registry.npmjs.org'
|
|
26
|
+
scope: '@vixoniccom'
|
|
27
|
+
|
|
28
|
+
- name: Configure npm authentication
|
|
29
|
+
run: |
|
|
30
|
+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
31
|
+
echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
32
|
+
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
33
|
+
|
|
34
|
+
- name: Cache node modules
|
|
35
|
+
uses: actions/cache@v4
|
|
36
|
+
with:
|
|
37
|
+
path: ~/.npm
|
|
38
|
+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
39
|
+
restore-keys: |
|
|
40
|
+
${{ runner.os }}-node-
|
|
41
|
+
|
|
42
|
+
- name: Install dependencies
|
|
43
|
+
run: npm ci
|
|
44
|
+
env:
|
|
45
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
46
|
+
|
|
47
|
+
- name: Build package
|
|
48
|
+
run: npm run prepublish
|
|
49
|
+
env:
|
|
50
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
51
|
+
|
|
52
|
+
- name: Verify build.zip exists
|
|
53
|
+
run: |
|
|
54
|
+
if [ ! -f "build.zip" ]; then
|
|
55
|
+
echo "❌ Error: build.zip not found after build process"
|
|
56
|
+
exit 1
|
|
57
|
+
fi
|
|
58
|
+
echo "✅ build.zip found successfully"
|
|
59
|
+
ls -la build.zip
|
|
60
|
+
|
|
61
|
+
- name: Check if version already exists on npm
|
|
62
|
+
id: check-version
|
|
63
|
+
run: |
|
|
64
|
+
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
65
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
66
|
+
|
|
67
|
+
echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION exists on npm..."
|
|
68
|
+
|
|
69
|
+
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
70
|
+
echo "version-exists=true" >> $GITHUB_OUTPUT
|
|
71
|
+
echo "⚠️ Version $PACKAGE_VERSION already exists on npm"
|
|
72
|
+
else
|
|
73
|
+
echo "version-exists=false" >> $GITHUB_OUTPUT
|
|
74
|
+
echo "✅ Version $PACKAGE_VERSION does not exist on npm - ready to publish"
|
|
75
|
+
fi
|
|
76
|
+
|
|
77
|
+
- name: Publish to npm
|
|
78
|
+
if: steps.check-version.outputs.version-exists == 'false'
|
|
79
|
+
run: |
|
|
80
|
+
echo "Publishing to npm..."
|
|
81
|
+
npm publish --access public
|
|
82
|
+
env:
|
|
83
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
84
|
+
|
|
85
|
+
- name: Publication success
|
|
86
|
+
if: steps.check-version.outputs.version-exists == 'false'
|
|
87
|
+
run: |
|
|
88
|
+
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
89
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
90
|
+
echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
|
|
91
|
+
echo "📦 Package includes build.zip with the compiled application"
|
|
92
|
+
|
|
93
|
+
- name: Skip publication
|
|
94
|
+
if: steps.check-version.outputs.version-exists == 'true'
|
|
95
|
+
run: |
|
|
96
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
97
|
+
echo "⏭️ Skipping publication - version $PACKAGE_VERSION already exists on npm"
|
|
98
|
+
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@master
|
|
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@master
|
|
27
|
+
timeout-minutes: 5
|
|
28
|
+
env:
|
|
29
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
30
|
+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.4.20-dev.4](https://github.com/Vixonic/store-news-internal/compare/v0.4.20-dev.3...v0.4.20-dev.4) (2025-09-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* non empty pattern readded to textArea fields ([df87664](https://github.com/Vixonic/store-news-internal/commit/df8766449c4c789698b9e249cab1aad2aa8aa787))
|
|
11
|
+
|
|
12
|
+
### [0.4.20-dev.3](https://github.com/Vixonic/store-news-internal/compare/v0.4.20-dev.2...v0.4.20-dev.3) (2025-09-03)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* add github actions ([088820c](https://github.com/Vixonic/store-news-internal/commit/088820cbd30efe246cadf1e61bb15d1e88722952))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* colon removed in the character count ([b00b4fe](https://github.com/Vixonic/store-news-internal/commit/b00b4fe1656430603b20122718b8b7f4ecae6cfe))
|
|
23
|
+
|
|
5
24
|
### [0.4.20-dev.2](https://github.com/Vixonic/store-news-internal/compare/v0.4.20-dev.1...v0.4.20-dev.2) (2025-09-03)
|
|
6
25
|
|
|
7
26
|
|
package/build.zip
CHANGED
|
Binary file
|
|
@@ -43,6 +43,7 @@ export const newsInputs = [
|
|
|
43
43
|
show: ShowValidations.shortDescriptionEnabled,
|
|
44
44
|
range: new NumberRangeValue(1, 80),
|
|
45
45
|
html: true,
|
|
46
|
+
pattern: '^(?!\\s*$).+',
|
|
46
47
|
}),
|
|
47
48
|
|
|
48
49
|
new TextArea({
|
|
@@ -52,6 +53,7 @@ export const newsInputs = [
|
|
|
52
53
|
show: ShowValidations.mediumDescriptionEnabled,
|
|
53
54
|
range: new NumberRangeValue(1, 180),
|
|
54
55
|
html: true,
|
|
56
|
+
pattern: '^(?!\\s*$).+',
|
|
55
57
|
}),
|
|
56
58
|
|
|
57
59
|
new TextArea({
|
|
@@ -61,6 +63,7 @@ export const newsInputs = [
|
|
|
61
63
|
show: ShowValidations.largeDescriptionEnabled,
|
|
62
64
|
range: new NumberRangeValue(1, 350),
|
|
63
65
|
html: true,
|
|
66
|
+
pattern: '^(?!\\s*$).+',
|
|
64
67
|
}),
|
|
65
68
|
|
|
66
69
|
new TextArea({
|
|
@@ -70,6 +73,7 @@ export const newsInputs = [
|
|
|
70
73
|
show: ShowValidations.extraLargeDescriptionEnabled,
|
|
71
74
|
range: new NumberRangeValue(1, 500),
|
|
72
75
|
html: true,
|
|
76
|
+
pattern: '^(?!\\s*$).+',
|
|
73
77
|
}),
|
|
74
78
|
|
|
75
79
|
new SelectAssetKna({
|
package/configuration.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"type": "text-input",
|
|
14
14
|
"required": true,
|
|
15
15
|
"pattern": "^(?!\\s*$).+",
|
|
16
|
-
"range": "[1:25
|
|
16
|
+
"range": "[1:25]"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"id": "title",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"type": "text-input",
|
|
23
23
|
"required": true,
|
|
24
24
|
"pattern": "^(?!\\s*$).+",
|
|
25
|
-
"range": "[1:40
|
|
25
|
+
"range": "[1:40]"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"id": "title",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"type": "text-input",
|
|
32
32
|
"required": true,
|
|
33
33
|
"pattern": "^(?!\\s*$).+",
|
|
34
|
-
"range": "[1:50
|
|
34
|
+
"range": "[1:50]"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"id": "title",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"type": "text-input",
|
|
41
41
|
"required": true,
|
|
42
42
|
"pattern": "^(?!\\s*$).+",
|
|
43
|
-
"range": "[1:70
|
|
43
|
+
"range": "[1:70]"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"id": "description",
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
"show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'short')",
|
|
49
49
|
"type": "text-area",
|
|
50
50
|
"required": true,
|
|
51
|
-
"
|
|
51
|
+
"pattern": "^(?!\\s*$).+",
|
|
52
|
+
"range": "[1:80]",
|
|
52
53
|
"html": true
|
|
53
54
|
},
|
|
54
55
|
{
|
|
@@ -57,7 +58,8 @@
|
|
|
57
58
|
"show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'medium')",
|
|
58
59
|
"type": "text-area",
|
|
59
60
|
"required": true,
|
|
60
|
-
"
|
|
61
|
+
"pattern": "^(?!\\s*$).+",
|
|
62
|
+
"range": "[1:180]",
|
|
61
63
|
"html": true
|
|
62
64
|
},
|
|
63
65
|
{
|
|
@@ -66,7 +68,8 @@
|
|
|
66
68
|
"show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'large')",
|
|
67
69
|
"type": "text-area",
|
|
68
70
|
"required": true,
|
|
69
|
-
"
|
|
71
|
+
"pattern": "^(?!\\s*$).+",
|
|
72
|
+
"range": "[1:350]",
|
|
70
73
|
"html": true
|
|
71
74
|
},
|
|
72
75
|
{
|
|
@@ -75,7 +78,8 @@
|
|
|
75
78
|
"show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'extra-large')",
|
|
76
79
|
"type": "text-area",
|
|
77
80
|
"required": true,
|
|
78
|
-
"
|
|
81
|
+
"pattern": "^(?!\\s*$).+",
|
|
82
|
+
"range": "[1:500]",
|
|
79
83
|
"html": true
|
|
80
84
|
},
|
|
81
85
|
{
|
|
@@ -183,7 +187,7 @@
|
|
|
183
187
|
"id": "showTime",
|
|
184
188
|
"label": "Persistencia",
|
|
185
189
|
"type": "number-input",
|
|
186
|
-
"range": "[5:9999
|
|
190
|
+
"range": "[5:9999]",
|
|
187
191
|
"description": "Tiempo en segundos por noticia. Por defecto 10"
|
|
188
192
|
},
|
|
189
193
|
{
|
|
@@ -267,7 +271,7 @@
|
|
|
267
271
|
"label": "Altura de línea",
|
|
268
272
|
"show": "{{titleEnabled}} === true",
|
|
269
273
|
"type": "number-input",
|
|
270
|
-
"range": "[0.8:100
|
|
274
|
+
"range": "[0.8:100]"
|
|
271
275
|
},
|
|
272
276
|
{
|
|
273
277
|
"id": "descriptionEnabled",
|
|
@@ -286,7 +290,7 @@
|
|
|
286
290
|
"label": "Altura de línea",
|
|
287
291
|
"show": "{{descriptionEnabled}} === true",
|
|
288
292
|
"type": "number-input",
|
|
289
|
-
"range": "[0.8:100
|
|
293
|
+
"range": "[0.8:100]"
|
|
290
294
|
},
|
|
291
295
|
{
|
|
292
296
|
"id": "textSeparation",
|
|
@@ -333,7 +337,7 @@
|
|
|
333
337
|
"label": "Tamaño personalizado",
|
|
334
338
|
"show": "{{imageEnabled}} === true && ( ( {{template}} === 'gallery' ) === false ) && ( ( {{template}} === 'gradient' ) === false ) && ( {{imageSize}} === 'custom' )",
|
|
335
339
|
"type": "number-input",
|
|
336
|
-
"range": "[1:100
|
|
340
|
+
"range": "[1:100]",
|
|
337
341
|
"description": "En porcentaje.",
|
|
338
342
|
"required": true
|
|
339
343
|
},
|
|
@@ -439,7 +443,7 @@
|
|
|
439
443
|
"label": "Porcentje de degradado",
|
|
440
444
|
"show": "{{template}} === 'gradient'",
|
|
441
445
|
"type": "number-input",
|
|
442
|
-
"range": "[1:100
|
|
446
|
+
"range": "[1:100]",
|
|
443
447
|
"description": "Por defecto 50"
|
|
444
448
|
},
|
|
445
449
|
{
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"author": {
|
|
9
9
|
"name": ""
|
|
10
10
|
},
|
|
11
|
-
"version": "0.4.20-dev.
|
|
11
|
+
"version": "0.4.20-dev.4",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"prepublish": "vixonic-module-packager --mode=build",
|
|
14
14
|
"watch": "vixonic-module-packager --mode=watch",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"react": "^18.3.1",
|
|
26
26
|
"react-dom": "^18.3.1",
|
|
27
27
|
"react-qr-code": "^2.0.18",
|
|
28
|
-
"react-quill": "^
|
|
28
|
+
"react-quill": "^2.0.0",
|
|
29
29
|
"react-transition-group": "^4.4.5",
|
|
30
30
|
"uuid": "^9.0.0"
|
|
31
31
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sonar.projectKey=Vixonic_store-news-internal_7997a402-cbee-4f01-a556-e7f3da37d90d
|