Skip to content

Commit

Permalink
Use suffix-matching for task-runner config files
Browse files Browse the repository at this point in the history
Closes #284: Use pattern matching for names.
  • Loading branch information
Alhadis committed Feb 29, 2016
1 parent 50754c2 commit 85c7012
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions styles/file-icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
&[data-name$="TODO"]:before { .checklist-icon; .medium-yellow; }

// Makefile icon
&[data-name$="Makefile"]:before { .checklist-icon; .medium-yellow; }
&[data-name$="makefile"]:before { .checklist-icon; .medium-yellow; }
&[data-name*="Makefile"]:before { .checklist-icon; .medium-yellow; }
&[data-name*="makefile"]:before { .checklist-icon; .medium-yellow; }
&[data-name$=".mk"]:before { .checklist-icon; .medium-yellow; }
&[data-name$=".mak"]:before { .checklist-icon; .medium-yellow; }

Expand Down Expand Up @@ -398,23 +398,23 @@
&[data-name="composer.json"]:before { .composer-icon; .medium-yellow; }

// Grunt icon
&[data-name="GRUNTFILE.js"]:before,
&[data-name="Gruntfile.js"]:before,
&[data-name="gruntfile.js"]:before { .grunt-icon; .medium-yellow; }
&[data-name="GRUNTFILE.coffee"]:before,
&[data-name="Gruntfile.coffee"]:before,
&[data-name="gruntfile.coffee"]:before { .grunt-icon; .medium-maroon; }
&[data-name$="GRUNTFILE.js"]:before,
&[data-name$="Gruntfile.js"]:before,
&[data-name$="gruntfile.js"]:before { .grunt-icon; .medium-yellow; }
&[data-name$="GRUNTFILE.coffee"]:before,
&[data-name$="Gruntfile.coffee"]:before,
&[data-name$="gruntfile.coffee"]:before { .grunt-icon; .medium-maroon; }

// Gulp icon
&[data-name="GULPFILE.js"]:before,
&[data-name="Gulpfile.js"]:before,
&[data-name="gulpfile.js"]:before { .gulp-icon; .medium-red; }
&[data-name="GULPFILE.coffee"]:before,
&[data-name="Gulpfile.coffee"]:before,
&[data-name="gulpfile.coffee"]:before { .gulp-icon; .medium-maroon; }
&[data-name="GULPFILE.babel.js"]:before,
&[data-name="Gulpfile.babel.js"]:before,
&[data-name="gulpfile.babel.js"]:before { .gulp-icon; .medium-red; }
&[data-name$="GULPFILE.js"]:before,
&[data-name$="Gulpfile.js"]:before,
&[data-name$="gulpfile.js"]:before { .gulp-icon; .medium-red; }
&[data-name$="GULPFILE.coffee"]:before,
&[data-name$="Gulpfile.coffee"]:before,
&[data-name$="gulpfile.coffee"]:before { .gulp-icon; .medium-maroon; }
&[data-name$="GULPFILE.babel.js"]:before,
&[data-name$="Gulpfile.babel.js"]:before,
&[data-name$="gulpfile.babel.js"]:before { .gulp-icon; .medium-red; }

// Riot.js
&[data-name$=".tag"]:before { .riot-icon; .medium-red; }
Expand Down

0 comments on commit 85c7012

Please sign in to comment.