Skip to content

Commit

Permalink
Stop using sass as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Sep 9, 2016
1 parent b48a321 commit 82c3021
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 42 deletions.
44 changes: 13 additions & 31 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,8 @@ module.exports = function(grunt) {

pkg: grunt.file.readJSON('package.json'),

sass: {
options: {
},
dist: {
files: {
'build/octicons.css': 'index.scss'
}
}
},

postcss: {
options: {
processors: [
require('autoprefixer')({ browsers: '> 5%' })
]
},
build: {
src: 'build/**/*.*css'
}
},

cssnano: {
options: {
},
options: {},
dist: {
files: {
'build/octicons.min.css': 'build/octicons.css'
Expand Down Expand Up @@ -81,24 +59,28 @@ module.exports = function(grunt) {
},

clean: {
svg: [
'build/svg/*',
'build/sprite.octicons.svg',
'build/octicons.*'
build: [
'build/*'
]
},

copy: {
css: {
src: "lib/octicons.css",
dest: "build/octicons.css"
}
}
});

grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-postcss');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-svg-sprite');
grunt.loadNpmTasks('grunt-svgmin');
grunt.loadNpmTasks('grunt-cssnano');
grunt.loadNpmTasks('grunt-sass');

// build tasks
grunt.registerTask('css', ['sass', 'postcss', 'cssnano']);
grunt.registerTask('svg', ['clean:svg', 'svgmin', 'svg_sprite']);
grunt.registerTask('css', ['copy', 'cssnano']);
grunt.registerTask('svg', ['clean', 'svgmin', 'svg_sprite']);

// default task, build /dist/
grunt.registerTask('default', [ 'svg', 'css', 'svg_json']);
Expand Down
1 change: 0 additions & 1 deletion index.scss

This file was deleted.

6 changes: 0 additions & 6 deletions lib/octicons.scss

This file was deleted.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"homepage": "https://octicons.github.com",
"author": "GitHub Inc.",
"license": "(OFL-1.1 OR MIT)",
"style": "index.scss",
"style": "build/octicons.css",
"main": "index.js",
"files": [
"index.scss",
"index.js",
"lib",
"build"
Expand All @@ -27,9 +26,8 @@
"ava": "^0.16.0",
"grunt": "^1.0.1",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-cssnano": "^2.1.0",
"grunt-postcss": "^0.8.0",
"grunt-sass": "^1.2.0",
"grunt-svg-sprite": "^1.2.19",
"grunt-svgmin": "^3.2.0"
},
Expand Down

0 comments on commit 82c3021

Please sign in to comment.