Skip to content

Commit

Permalink
Modernize Gruntfile
Browse files Browse the repository at this point in the history
  • Loading branch information
TotalVerb committed Sep 28, 2019
1 parent f0bd80b commit a0f892c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
13 changes: 2 additions & 11 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,13 @@ module.exports = function (grunt) {
colorizeOutput: true
},
},
shell: {
target: {
command: 'grep -q -r 2015-' + new Date().getFullYear()
+ ' --include "*.scss"'
+ ' --include "*.js"'
+ ' .'
}
}
}
);
require('load-grunt-tasks') (grunt, { scope: 'devDependencies' });
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-scss-lint');
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default', ['scsslint', 'sass:dist', 'shell']);
grunt.registerTask('rultor', ['scsslint', 'sass:dist', 'sass:uncompressed', 'shell']);
grunt.registerTask('default', ['scsslint', 'sass:dist']);
grunt.registerTask('rultor', ['scsslint', 'sass:dist', 'sass:uncompressed']);
grunt.registerTask('dev', ['scsslint', 'sass:dev', 'watch']);
}

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)

Copyright (c) 2015–2017 Yegor Bugayenko
Copyright (c) 2016–2017 Fengyang Wang
Copyright (c) 2016–2019 Fengyang Wang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion scss/_defs.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// The MIT License (MIT)
//
// Copyright (c) 2015-2017 Yegor Bugayenko
// Copyright (c) 2017 Fengyang Wang
// Copyright (c) 2017-2019 Fengyang Wang
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion scss/_headings.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// The MIT License (MIT)
//
// Copyright (c) 2015-2017 Yegor Bugayenko
// Copyright (c) 2017 Fengyang Wang
// Copyright (c) 2017-2019 Fengyang Wang
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit a0f892c

Please sign in to comment.