Skip to content

Commit 996150b

Browse files
committed
Update all files
1 parent 8bc9c06 commit 996150b

File tree

751 files changed

+27573
-28584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

751 files changed

+27573
-28584
lines changed

.github/workflows/node.js.yml

-5
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,3 @@ jobs:
3939
if: ${{ success() }}
4040
run: |
4141
npm run security:check
42-
43-
- name: Test
44-
if: ${{ success() }}
45-
run: |
46-
npm run test

gulpfile.js

+39-55
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,55 @@
1-
"use strict";
1+
'use strict';
22

3-
var gulp = require("gulp"),
4-
concat = require("gulp-concat"),
5-
uglifycss = require("gulp-uglifycss"),
6-
rename = require("gulp-rename"),
7-
flatten = require("gulp-flatten");
3+
var gulp = require('gulp'),
4+
concat = require('gulp-concat'),
5+
uglifycss = require('gulp-uglifycss'),
6+
rename = require('gulp-rename'),
7+
flatten = require('gulp-flatten');
88

9-
gulp.task("build-css", function() {
10-
return gulp.src([
11-
"src/app/components/common/common.css",
12-
"src/app/components/**/*.css"
13-
])
14-
.pipe(concat("primeng.css"))
15-
.pipe(gulp.dest("dist/resources"));
9+
gulp.task('build-css', function () {
10+
return gulp.src(['src/app/components/common/common.css', 'src/app/components/**/*.css']).pipe(concat('primeng.css')).pipe(gulp.dest('dist/resources'));
1611
});
1712

18-
gulp.task("build-css-prod", function() {
19-
return gulp.src([
20-
"src/app/components/common/common.css",
21-
"src/app/components/badge/badge.css",
22-
"src/app/components/button/button.css",
23-
"src/app/components/checkbox/checkbox.css",
24-
"src/app/components/colorpicker/colorpicker-images.css",
25-
"src/app/components/inputtext/inputtext.css",
26-
"src/app/components/inputtextarea/inputtextarea.css",
27-
"src/app/components/password/password.css",
28-
"src/app/components/radiobutton/radiobutton.css",
29-
"src/app/components/ripple/ripple.css",
30-
"src/app/components/tooltip/tooltip.css"
31-
])
32-
.pipe(concat("primeng.css"))
33-
.pipe(gulp.dest("dist/resources"))
34-
.pipe(uglifycss({"uglyComments": true}))
35-
.pipe(rename("primeng.min.css"))
36-
.pipe(gulp.dest("dist/resources"));
13+
gulp.task('build-css-prod', function () {
14+
return gulp
15+
.src([
16+
'src/app/components/common/common.css',
17+
'src/app/components/badge/badge.css',
18+
'src/app/components/button/button.css',
19+
'src/app/components/checkbox/checkbox.css',
20+
'src/app/components/colorpicker/colorpicker-images.css',
21+
'src/app/components/inputtext/inputtext.css',
22+
'src/app/components/inputtextarea/inputtextarea.css',
23+
'src/app/components/password/password.css',
24+
'src/app/components/radiobutton/radiobutton.css',
25+
'src/app/components/ripple/ripple.css',
26+
'src/app/components/tooltip/tooltip.css'
27+
])
28+
.pipe(concat('primeng.css'))
29+
.pipe(gulp.dest('dist/resources'))
30+
.pipe(uglifycss({ uglyComments: true }))
31+
.pipe(rename('primeng.min.css'))
32+
.pipe(gulp.dest('dist/resources'));
3733
});
3834

39-
gulp.task("copy-component-css", function () {
40-
return gulp.src([
41-
"src/app/components/**/*.css",
42-
"src/app/components/**/images/*.png",
43-
"src/app/components/**/images/*.gif"
44-
])
45-
.pipe(gulp.dest("dist/resources/components"));
35+
gulp.task('copy-component-css', function () {
36+
return gulp.src(['src/app/components/**/*.css', 'src/app/components/**/images/*.png', 'src/app/components/**/images/*.gif']).pipe(gulp.dest('dist/resources/components'));
4637
});
4738

48-
gulp.task("images", function() {
49-
return gulp.src(["src/app/components/**/images/*.png", "src/app/components/**/images/*.gif"])
50-
.pipe(flatten())
51-
.pipe(gulp.dest("dist/resources/images"));
39+
gulp.task('images', function () {
40+
return gulp.src(['src/app/components/**/images/*.png', 'src/app/components/**/images/*.gif']).pipe(flatten()).pipe(gulp.dest('dist/resources/images'));
5241
});
5342

54-
gulp.task("themes", function() {
55-
return gulp.src(["src/assets/components/themes/**/*",
56-
"!src/assets/components/themes/soho-*/**/*",
57-
"!src/assets/components/themes/viva-*/**/*",
58-
"!src/assets/components/themes/mira/**/*",
59-
"!src/assets/components/themes/nano/**/*"])
60-
.pipe(gulp.dest("dist/resources/themes"));
43+
gulp.task('themes', function () {
44+
return gulp
45+
.src(['src/assets/components/themes/**/*', '!src/assets/components/themes/soho-*/**/*', '!src/assets/components/themes/viva-*/**/*', '!src/assets/components/themes/mira/**/*', '!src/assets/components/themes/nano/**/*'])
46+
.pipe(gulp.dest('dist/resources/themes'));
6147
});
6248

6349
//Copy readme
64-
gulp.task("readme", function() {
65-
return gulp.src(["README.md"])
66-
.pipe(gulp.dest("dist"));
50+
gulp.task('readme', function () {
51+
return gulp.src(['README.md']).pipe(gulp.dest('dist'));
6752
});
6853

6954
//Building project with run sequence
70-
gulp.task("build-assets", gulp.series("copy-component-css", "build-css-prod", "images", "themes", "readme"));
71-
55+
gulp.task('build-assets', gulp.series('copy-component-css', 'build-css-prod', 'images', 'themes', 'readme'));

karma.conf.js

+25-34
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,29 @@
22
// https://karma-runner.github.io/1.0/config/configuration-file.html
33

44
module.exports = function (config) {
5-
config.set({
6-
basePath: '',
7-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
8-
plugins: [
9-
require('karma-jasmine'),
10-
require('karma-chrome-launcher'),
11-
require('karma-jasmine-html-reporter'),
12-
require('karma-coverage'),
13-
require('@angular-devkit/build-angular/plugins/karma')
14-
],
15-
client: {
16-
clearContext: false, // leave Jasmine Spec Runner output visible in browser
17-
jasmine: {
18-
random: false,
19-
stopOnFailure: true
20-
}
21-
},
22-
coverageReporter: {
23-
dir: require('path').join(__dirname, './coverage/ng11'),
24-
subdir: '.',
25-
reporters: [
26-
{ type: 'html' },
27-
{ type: 'text-summary' }
28-
]
29-
},
30-
reporters: ['progress', 'kjhtml'],
31-
port: 9876,
32-
colors: true,
33-
logLevel: config.LOG_INFO,
34-
autoWatch: true,
35-
browsers: ['Chrome'],
36-
singleRun: false,
37-
restartOnFileChange: true
38-
});
5+
config.set({
6+
basePath: '',
7+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
8+
plugins: [require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage'), require('@angular-devkit/build-angular/plugins/karma')],
9+
client: {
10+
clearContext: false, // leave Jasmine Spec Runner output visible in browser
11+
jasmine: {
12+
random: false,
13+
stopOnFailure: true
14+
}
15+
},
16+
coverageReporter: {
17+
dir: require('path').join(__dirname, './coverage/ng11'),
18+
subdir: '.',
19+
reporters: [{ type: 'html' }, { type: 'text-summary' }]
20+
},
21+
reporters: ['progress', 'kjhtml'],
22+
port: 9876,
23+
colors: true,
24+
logLevel: config.LOG_INFO,
25+
autoWatch: true,
26+
browsers: ['Chrome'],
27+
singleRun: false,
28+
restartOnFileChange: true
29+
});
3930
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"format:check": "prettier --check \"**/*.{js,ts,d.ts}\"",
1414
"build:lib": "npm run build:check && npm run build:package",
1515
"build:package": "BROWSERSLIST_ENV=library ng build primeng-library && gulp build-assets",
16-
"build:check": "npm run format:check && npm run security:check && npm run test",
16+
"build:check": "npm run format:check && npm run security:check",
1717
"security:check": "npm audit --production --audit-level high"
1818
},
1919
"repository": {

0 commit comments

Comments
 (0)