Skip to content

Commit

Permalink
Update all files
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Oct 21, 2022
1 parent 8bc9c06 commit 996150b
Show file tree
Hide file tree
Showing 751 changed files with 27,573 additions and 28,584 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ jobs:
if: ${{ success() }}
run: |
npm run security:check
- name: Test
if: ${{ success() }}
run: |
npm run test
94 changes: 39 additions & 55 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,71 +1,55 @@
"use strict";
'use strict';

var gulp = require("gulp"),
concat = require("gulp-concat"),
uglifycss = require("gulp-uglifycss"),
rename = require("gulp-rename"),
flatten = require("gulp-flatten");
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglifycss = require('gulp-uglifycss'),
rename = require('gulp-rename'),
flatten = require('gulp-flatten');

gulp.task("build-css", function() {
return gulp.src([
"src/app/components/common/common.css",
"src/app/components/**/*.css"
])
.pipe(concat("primeng.css"))
.pipe(gulp.dest("dist/resources"));
gulp.task('build-css', function () {
return gulp.src(['src/app/components/common/common.css', 'src/app/components/**/*.css']).pipe(concat('primeng.css')).pipe(gulp.dest('dist/resources'));
});

gulp.task("build-css-prod", function() {
return gulp.src([
"src/app/components/common/common.css",
"src/app/components/badge/badge.css",
"src/app/components/button/button.css",
"src/app/components/checkbox/checkbox.css",
"src/app/components/colorpicker/colorpicker-images.css",
"src/app/components/inputtext/inputtext.css",
"src/app/components/inputtextarea/inputtextarea.css",
"src/app/components/password/password.css",
"src/app/components/radiobutton/radiobutton.css",
"src/app/components/ripple/ripple.css",
"src/app/components/tooltip/tooltip.css"
])
.pipe(concat("primeng.css"))
.pipe(gulp.dest("dist/resources"))
.pipe(uglifycss({"uglyComments": true}))
.pipe(rename("primeng.min.css"))
.pipe(gulp.dest("dist/resources"));
gulp.task('build-css-prod', function () {
return gulp
.src([
'src/app/components/common/common.css',
'src/app/components/badge/badge.css',
'src/app/components/button/button.css',
'src/app/components/checkbox/checkbox.css',
'src/app/components/colorpicker/colorpicker-images.css',
'src/app/components/inputtext/inputtext.css',
'src/app/components/inputtextarea/inputtextarea.css',
'src/app/components/password/password.css',
'src/app/components/radiobutton/radiobutton.css',
'src/app/components/ripple/ripple.css',
'src/app/components/tooltip/tooltip.css'
])
.pipe(concat('primeng.css'))
.pipe(gulp.dest('dist/resources'))
.pipe(uglifycss({ uglyComments: true }))
.pipe(rename('primeng.min.css'))
.pipe(gulp.dest('dist/resources'));
});

gulp.task("copy-component-css", function () {
return gulp.src([
"src/app/components/**/*.css",
"src/app/components/**/images/*.png",
"src/app/components/**/images/*.gif"
])
.pipe(gulp.dest("dist/resources/components"));
gulp.task('copy-component-css', function () {
return gulp.src(['src/app/components/**/*.css', 'src/app/components/**/images/*.png', 'src/app/components/**/images/*.gif']).pipe(gulp.dest('dist/resources/components'));
});

gulp.task("images", function() {
return gulp.src(["src/app/components/**/images/*.png", "src/app/components/**/images/*.gif"])
.pipe(flatten())
.pipe(gulp.dest("dist/resources/images"));
gulp.task('images', function () {
return gulp.src(['src/app/components/**/images/*.png', 'src/app/components/**/images/*.gif']).pipe(flatten()).pipe(gulp.dest('dist/resources/images'));
});

gulp.task("themes", function() {
return gulp.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/**/*"])
.pipe(gulp.dest("dist/resources/themes"));
gulp.task('themes', function () {
return gulp
.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/**/*'])
.pipe(gulp.dest('dist/resources/themes'));
});

//Copy readme
gulp.task("readme", function() {
return gulp.src(["README.md"])
.pipe(gulp.dest("dist"));
gulp.task('readme', function () {
return gulp.src(['README.md']).pipe(gulp.dest('dist'));
});

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

gulp.task('build-assets', gulp.series('copy-component-css', 'build-css-prod', 'images', 'themes', 'readme'));
59 changes: 25 additions & 34 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,29 @@
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
jasmine: {
random: false,
stopOnFailure: true
}
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/ng11'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage'), require('@angular-devkit/build-angular/plugins/karma')],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
jasmine: {
random: false,
stopOnFailure: true
}
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/ng11'),
subdir: '.',
reporters: [{ type: 'html' }, { type: 'text-summary' }]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"format:check": "prettier --check \"**/*.{js,ts,d.ts}\"",
"build:lib": "npm run build:check && npm run build:package",
"build:package": "BROWSERSLIST_ENV=library ng build primeng-library && gulp build-assets",
"build:check": "npm run format:check && npm run security:check && npm run test",
"build:check": "npm run format:check && npm run security:check",
"security:check": "npm audit --production --audit-level high"
},
"repository": {
Expand Down
Loading

0 comments on commit 996150b

Please sign in to comment.