Remove unused build steps.

* autoprefixer
* ngAnnotate
* imagemin
* svgmin
This commit is contained in:
baldo 2022-07-21 12:26:02 +02:00
parent d76c530431
commit cf890c21cb
3 changed files with 42 additions and 2381 deletions

View file

@ -35,7 +35,7 @@ module.exports = function (grunt) {
}, },
compass: { compass: {
files: ['<%= yeoman.app %>/styles/{,**/}*.{scss,sass}'], files: ['<%= yeoman.app %>/styles/{,**/}*.{scss,sass}'],
tasks: ['compass:server', 'autoprefixer'] tasks: ['compass:server']
}, },
gruntfile: { gruntfile: {
files: ['Gruntfile.js'] files: ['Gruntfile.js']
@ -46,8 +46,7 @@ module.exports = function (grunt) {
}, },
files: [ files: [
'<%= yeoman.app %>/{,**/}*.html', '<%= yeoman.app %>/{,**/}*.html',
'.tmp/styles/{,**/}*.css', '.tmp/styles/{,**/}*.css'
'<%= yeoman.app %>/images/{,**/}*.{png,jpg,jpeg,gif,webp,svg}'
] ]
} }
}, },
@ -136,23 +135,6 @@ module.exports = function (grunt) {
server: '.tmp' server: '.tmp'
}, },
// Add vendor prefixed styles
autoprefixer: {
options: {
browsers: ['last 1 version']
},
dist: {
files: [
{
expand: true,
cwd: '.tmp/styles/',
src: '{,*/}*.css',
dest: '.tmp/styles/'
}
]
}
},
wiredep: { wiredep: {
task: { task: {
src: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'], src: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
@ -166,7 +148,6 @@ module.exports = function (grunt) {
sassDir: '<%= yeoman.app %>/styles', sassDir: '<%= yeoman.app %>/styles',
cssDir: '.tmp/styles', cssDir: '.tmp/styles',
generatedImagesDir: '.tmp/images/generated', generatedImagesDir: '.tmp/images/generated',
imagesDir: '<%= yeoman.app %>/images',
javascriptsDir: '<%= yeoman.app %>/scripts', javascriptsDir: '<%= yeoman.app %>/scripts',
fontsDir: '<%= yeoman.app %>/fonts', fontsDir: '<%= yeoman.app %>/fonts',
importPath: '<%= yeoman.app %>/bower_components', importPath: '<%= yeoman.app %>/bower_components',
@ -215,8 +196,7 @@ module.exports = function (grunt) {
files: { files: {
src: [ src: [
'<%= yeoman.dist %>/client/scripts/{,*/}*.js', '<%= yeoman.dist %>/client/scripts/{,*/}*.js',
'<%= yeoman.dist %>/client/styles/{,*/}*.css', '<%= yeoman.dist %>/client/styles/{,*/}*.css'
'<%= yeoman.dist %>/client/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
] ]
} }
} }
@ -257,32 +237,6 @@ module.exports = function (grunt) {
} }
}, },
imagemin: {
dist: {
files: [
{
expand: true,
cwd: '<%= yeoman.app %>/images',
src: '{,*/}*.{png,jpg,jpeg,gif}',
dest: '<%= yeoman.dist %>/client/images'
}
]
}
},
svgmin: {
dist: {
files: [
{
expand: true,
cwd: '<%= yeoman.app %>/images',
src: '{,*/}*.svg',
dest: '<%= yeoman.dist %>/client/images'
}
]
}
},
htmlmin: { htmlmin: {
dist: { dist: {
options: { options: {
@ -302,19 +256,6 @@ module.exports = function (grunt) {
} }
}, },
ngAnnotate: {
dist: {
files: [
{
expand: true,
cwd: '.tmp/concat/scripts',
src: '*.js',
dest: '.tmp/concat/scripts'
}
]
}
},
uglify: { uglify: {
options: { options: {
mangle: false mangle: false
@ -409,9 +350,7 @@ module.exports = function (grunt) {
'compass:server' 'compass:server'
], ],
dist: [ dist: [
'compass:dist', 'compass:dist'
'imagemin',
'svgmin'
] ]
} }
}); });
@ -426,7 +365,6 @@ module.exports = function (grunt) {
'clean:server', 'clean:server',
'wiredep', 'wiredep',
'concurrent:server', 'concurrent:server',
'autoprefixer',
'configureProxies', 'configureProxies',
'connect:livereload', 'connect:livereload',
'watch' 'watch'
@ -444,9 +382,7 @@ module.exports = function (grunt) {
'html2js', 'html2js',
'useminPrepare', 'useminPrepare',
'concurrent:dist', 'concurrent:dist',
'autoprefixer',
'concat', 'concat',
'ngAnnotate',
'copy:dist', 'copy:dist',
'replace:dist', 'replace:dist',
'cssmin', 'cssmin',

View file

@ -21,7 +21,7 @@
"scripts": { "scripts": {
"test": "yarn run server:test", "test": "yarn run server:test",
"build": "yarn run server:build && grunt build && rsync -avzL --exclude='*/__mocks__/' --exclude='*.test.*' server-build/ dist/server/", "build": "yarn run server:build && grunt build && rsync -avzL --exclude='*/__mocks__/' --exclude='*.test.*' server-build/ dist/server/",
"clean": "rm -rf server-build/ && grunt clean", "clean": "rm -rf server-build/ dist/ && grunt clean",
"dist": "yarn run clean && yarn run build && ./bin/dist-fix-symlinks.sh && yarn run test", "dist": "yarn run clean && yarn run build && ./bin/dist-fix-symlinks.sh && yarn run test",
"client:serve": "grunt serve", "client:serve": "grunt serve",
"server:test": "jest --config=jest.server.config.js", "server:test": "jest --config=jest.server.config.js",
@ -75,7 +75,6 @@
"bower": "^1.8.13", "bower": "^1.8.13",
"escape-string-regexp": "^5.0.0", "escape-string-regexp": "^5.0.0",
"grunt": "^1.4.1", "grunt": "^1.4.1",
"grunt-autoprefixer": "^3.0.4",
"grunt-cli": "^1.4.3", "grunt-cli": "^1.4.3",
"grunt-concurrent": "^3.0.0", "grunt-concurrent": "^3.0.0",
"grunt-connect-proxy": "^0.2.0", "grunt-connect-proxy": "^0.2.0",
@ -86,20 +85,16 @@
"grunt-contrib-copy": "^1.0.0", "grunt-contrib-copy": "^1.0.0",
"grunt-contrib-cssmin": "^4.0.0", "grunt-contrib-cssmin": "^4.0.0",
"grunt-contrib-htmlmin": "^3.1.0", "grunt-contrib-htmlmin": "^3.1.0",
"grunt-contrib-imagemin": "^4.0.0",
"grunt-contrib-jshint": "^3.1.1", "grunt-contrib-jshint": "^3.1.1",
"grunt-contrib-uglify": "^5.2.2", "grunt-contrib-uglify": "^5.2.2",
"grunt-contrib-watch": "^1.1.0", "grunt-contrib-watch": "^1.1.0",
"grunt-develop": "^0.4.0", "grunt-develop": "^0.4.0",
"grunt-html2js": "^0.8.0", "grunt-html2js": "^0.8.0",
"grunt-newer": "^1.3.0", "grunt-newer": "^1.3.0",
"grunt-ng-annotate": "^4.0.0",
"grunt-replace": "^2.0.2", "grunt-replace": "^2.0.2",
"grunt-rev": "^0.1.0", "grunt-rev": "^0.1.0",
"grunt-svgmin": "^6.0.1",
"grunt-usemin": "^3.1.1", "grunt-usemin": "^3.1.1",
"grunt-wiredep": "^3.0.1", "grunt-wiredep": "^3.0.1",
"imagemin-gifsicle": "^7.0.0",
"jest": "^28.1.3", "jest": "^28.1.3",
"jshint-stylish": "^2.2.1", "jshint-stylish": "^2.2.1",
"load-grunt-tasks": "^5.1.0", "load-grunt-tasks": "^5.1.0",

2344
yarn.lock

File diff suppressed because it is too large Load diff