-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bc9c06
commit 996150b
Showing
751 changed files
with
27,573 additions
and
28,584 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,8 +39,3 @@ jobs: | |
if: ${{ success() }} | ||
run: | | ||
npm run security:check | ||
- name: Test | ||
if: ${{ success() }} | ||
run: | | ||
npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.