Remove unused build steps.
* autoprefixer * ngAnnotate * imagemin * svgmin
This commit is contained in:
parent
d76c530431
commit
cf890c21cb
3 changed files with 42 additions and 2381 deletions
72
Gruntfile.js
72
Gruntfile.js
|
@ -35,7 +35,7 @@ module.exports = function (grunt) {
|
|||
},
|
||||
compass: {
|
||||
files: ['<%= yeoman.app %>/styles/{,**/}*.{scss,sass}'],
|
||||
tasks: ['compass:server', 'autoprefixer']
|
||||
tasks: ['compass:server']
|
||||
},
|
||||
gruntfile: {
|
||||
files: ['Gruntfile.js']
|
||||
|
@ -46,8 +46,7 @@ module.exports = function (grunt) {
|
|||
},
|
||||
files: [
|
||||
'<%= yeoman.app %>/{,**/}*.html',
|
||||
'.tmp/styles/{,**/}*.css',
|
||||
'<%= yeoman.app %>/images/{,**/}*.{png,jpg,jpeg,gif,webp,svg}'
|
||||
'.tmp/styles/{,**/}*.css'
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -136,23 +135,6 @@ module.exports = function (grunt) {
|
|||
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: {
|
||||
task: {
|
||||
src: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
|
||||
|
@ -166,7 +148,6 @@ module.exports = function (grunt) {
|
|||
sassDir: '<%= yeoman.app %>/styles',
|
||||
cssDir: '.tmp/styles',
|
||||
generatedImagesDir: '.tmp/images/generated',
|
||||
imagesDir: '<%= yeoman.app %>/images',
|
||||
javascriptsDir: '<%= yeoman.app %>/scripts',
|
||||
fontsDir: '<%= yeoman.app %>/fonts',
|
||||
importPath: '<%= yeoman.app %>/bower_components',
|
||||
|
@ -215,8 +196,7 @@ module.exports = function (grunt) {
|
|||
files: {
|
||||
src: [
|
||||
'<%= yeoman.dist %>/client/scripts/{,*/}*.js',
|
||||
'<%= yeoman.dist %>/client/styles/{,*/}*.css',
|
||||
'<%= yeoman.dist %>/client/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
|
||||
'<%= yeoman.dist %>/client/styles/{,*/}*.css'
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -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: {
|
||||
dist: {
|
||||
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: {
|
||||
options: {
|
||||
mangle: false
|
||||
|
@ -409,9 +350,7 @@ module.exports = function (grunt) {
|
|||
'compass:server'
|
||||
],
|
||||
dist: [
|
||||
'compass:dist',
|
||||
'imagemin',
|
||||
'svgmin'
|
||||
'compass:dist'
|
||||
]
|
||||
}
|
||||
});
|
||||
|
@ -426,7 +365,6 @@ module.exports = function (grunt) {
|
|||
'clean:server',
|
||||
'wiredep',
|
||||
'concurrent:server',
|
||||
'autoprefixer',
|
||||
'configureProxies',
|
||||
'connect:livereload',
|
||||
'watch'
|
||||
|
@ -444,9 +382,7 @@ module.exports = function (grunt) {
|
|||
'html2js',
|
||||
'useminPrepare',
|
||||
'concurrent:dist',
|
||||
'autoprefixer',
|
||||
'concat',
|
||||
'ngAnnotate',
|
||||
'copy:dist',
|
||||
'replace:dist',
|
||||
'cssmin',
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"scripts": {
|
||||
"test": "yarn run server:test",
|
||||
"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",
|
||||
"client:serve": "grunt serve",
|
||||
"server:test": "jest --config=jest.server.config.js",
|
||||
|
@ -75,7 +75,6 @@
|
|||
"bower": "^1.8.13",
|
||||
"escape-string-regexp": "^5.0.0",
|
||||
"grunt": "^1.4.1",
|
||||
"grunt-autoprefixer": "^3.0.4",
|
||||
"grunt-cli": "^1.4.3",
|
||||
"grunt-concurrent": "^3.0.0",
|
||||
"grunt-connect-proxy": "^0.2.0",
|
||||
|
@ -86,20 +85,16 @@
|
|||
"grunt-contrib-copy": "^1.0.0",
|
||||
"grunt-contrib-cssmin": "^4.0.0",
|
||||
"grunt-contrib-htmlmin": "^3.1.0",
|
||||
"grunt-contrib-imagemin": "^4.0.0",
|
||||
"grunt-contrib-jshint": "^3.1.1",
|
||||
"grunt-contrib-uglify": "^5.2.2",
|
||||
"grunt-contrib-watch": "^1.1.0",
|
||||
"grunt-develop": "^0.4.0",
|
||||
"grunt-html2js": "^0.8.0",
|
||||
"grunt-newer": "^1.3.0",
|
||||
"grunt-ng-annotate": "^4.0.0",
|
||||
"grunt-replace": "^2.0.2",
|
||||
"grunt-rev": "^0.1.0",
|
||||
"grunt-svgmin": "^6.0.1",
|
||||
"grunt-usemin": "^3.1.1",
|
||||
"grunt-wiredep": "^3.0.1",
|
||||
"imagemin-gifsicle": "^7.0.0",
|
||||
"jest": "^28.1.3",
|
||||
"jshint-stylish": "^2.2.1",
|
||||
"load-grunt-tasks": "^5.1.0",
|
||||
|
|
Loading…
Reference in a new issue