Skip to content

Commit

Permalink
Remove grunt packages for compiling CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
sesemaya committed Nov 17, 2017
1 parent e6597a7 commit 1318ba7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 91 deletions.
92 changes: 5 additions & 87 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,6 @@ module.exports = function(grunt) {
}
},

cssmin: {
options: {
rebaseTo: 'css',
report: 'gzip',
sourceMap: true
},
material: {
dest: 'css/material.min.css',
src: '<%= postcss.material.dest %>'
},
project: {
dest: 'css/project.min.css',
src: '<%= postcss.project.dest %>'
}
},

jekyll: {
options: {
bundleExec: true,
Expand All @@ -146,38 +130,6 @@ module.exports = function(grunt) {
doc: {}
},

postcss: {
options: {
map: {
annotation: true,
inline: false,
sourcesContent: true
},
processors: [
require('autoprefixer')({
browsers: [
'Android >= 4.4',
'Chrome >= 45',
'Edge >= 12',
'Explorer >= 10',
'Firefox ESR',
'iOS >= 9',
'Opera >= 30',
'Safari >= 9'
]
})
]
},
material: {
dest: 'css/material.css',
src: '<%= sass.material.dest %>'
},
project: {
dest: 'css/project.css',
src: '<%= sass.project.dest %>'
}
},

prettify: {
options: {
indent_inner_html: false
Expand All @@ -198,29 +150,6 @@ module.exports = function(grunt) {
files: 'assets/js/tests/index.html'
},

sass: {
options: {
precision: 6,
style: 'expanded'
},
material: {
dest: 'css/material.css',
src: 'assets/sass/material.scss'
},
project: {
dest: 'css/project.css',
src: 'assets/sass-project/project.scss'
}
},

scsslint: {
options: {
config: 'assets/sass/.scss-lint.yml'
},
material: ['assets/sass/**/*.scss'],
project: ['assets/sass-project/**/*.scss']
},

uglify: {
material: {
dest: 'js/material.min.js',
Expand All @@ -235,26 +164,23 @@ module.exports = function(grunt) {
watch: {
default: {
files: [
'assets/**/*.js',
'assets/**/*.scss'
'assets/**/*.js'
],
tasks: [
'default'
]
},
material: {
files: [
'assets/js/**/*.js',
'assets/sass/**/*.scss'
'assets/js/**/*.js'
],
tasks: [
'material'
]
},
project: {
files: [
'assets/js-project/**/*.js',
'assets/sass-project/**/*.scss'
'assets/js-project/**/*.js'
],
tasks: [
'project'
Expand Down Expand Up @@ -292,11 +218,7 @@ module.exports = function(grunt) {

grunt.registerTask(
'material-css',
[
'sass:material',
'postcss:material',
'cssmin:material'
]
[]
)

grunt.registerTask(
Expand All @@ -319,11 +241,7 @@ module.exports = function(grunt) {

grunt.registerTask(
'project-css',
[
'sass:project',
'postcss:project',
'cssmin:project'
]
[]
)

grunt.registerTask(
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@
"grunt-contrib-concat": "^1.0.1",
"grunt-contrib-connect": "^1.0.2",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-cssmin": "^2.2.1",
"grunt-contrib-qunit": "^2.0.0",
"grunt-contrib-sass": "^1.0.0",
"grunt-contrib-uglify": "^3.0.1",
"grunt-contrib-watch": "^1.0.0",
"grunt-jekyll": "^0.4.6",
"grunt-postcss": "^0.8.0",
"grunt-prettify": "^0.4.0",
"grunt-scss-lint": "^0.5.0",
"load-grunt-tasks": "^3.5.2",
"node-sass": "^4.6.1",
"npm-run-all": "^4.1.2",
Expand Down

0 comments on commit 1318ba7

Please sign in to comment.