mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Merge pull request #1654 from danijar/master
Exclude minified JavaScript and CSS
This commit is contained in:
@@ -36,15 +36,16 @@
|
|||||||
# Go dependencies
|
# Go dependencies
|
||||||
- Godeps/_workspace/
|
- Godeps/_workspace/
|
||||||
|
|
||||||
# Bootstrap minified css and js
|
# Minified JavaScript and CSS
|
||||||
- (^|/)bootstrap([^.]*)(\.min)?\.(js|css)$
|
- (\.|-)min\.(js|css)$
|
||||||
|
|
||||||
|
# Bootstrap css and js
|
||||||
|
- (^|/)bootstrap([^.]*)\.(js|css)$
|
||||||
|
|
||||||
# Font Awesome
|
# Font Awesome
|
||||||
- font-awesome.min.css
|
|
||||||
- font-awesome.css
|
- font-awesome.css
|
||||||
|
|
||||||
# Foundation css
|
# Foundation css
|
||||||
- foundation.min.css
|
|
||||||
- foundation.css
|
- foundation.css
|
||||||
|
|
||||||
# Normalize.css
|
# Normalize.css
|
||||||
@@ -56,7 +57,6 @@
|
|||||||
|
|
||||||
# Animate.css
|
# Animate.css
|
||||||
- animate.css
|
- animate.css
|
||||||
- animate.min.css
|
|
||||||
|
|
||||||
# Vendored dependencies
|
# Vendored dependencies
|
||||||
- third[-_]?party/
|
- third[-_]?party/
|
||||||
@@ -73,12 +73,12 @@
|
|||||||
## Commonly Bundled JavaScript frameworks ##
|
## Commonly Bundled JavaScript frameworks ##
|
||||||
|
|
||||||
# jQuery
|
# jQuery
|
||||||
- (^|/)jquery([^.]*)(\.min)?\.js$
|
- (^|/)jquery([^.]*)\.js$
|
||||||
- (^|/)jquery\-\d\.\d+(\.\d+)?(\.min)?\.js$
|
- (^|/)jquery\-\d\.\d+(\.\d+)?\.js$
|
||||||
|
|
||||||
# jQuery UI
|
# jQuery UI
|
||||||
- (^|/)jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?(\.min)?\.(js|css)$
|
- (^|/)jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?\.(js|css)$
|
||||||
- (^|/)jquery\.(ui|effects)\.([^.]*)(\.min)?\.(js|css)$
|
- (^|/)jquery\.(ui|effects)\.([^.]*)\.(js|css)$
|
||||||
|
|
||||||
# Prototype
|
# Prototype
|
||||||
- (^|/)prototype(.*)\.js$
|
- (^|/)prototype(.*)\.js$
|
||||||
@@ -116,21 +116,20 @@
|
|||||||
- (^|/)shLegacy\.js$
|
- (^|/)shLegacy\.js$
|
||||||
|
|
||||||
# AngularJS
|
# AngularJS
|
||||||
- (^|/)angular([^.]*)(\.min)?\.js$
|
- (^|/)angular([^.]*)\.js$
|
||||||
|
|
||||||
# D3.js
|
# D3.js
|
||||||
- (^|\/)d3(\.v\d+)?([^.]*)(\.min)?\.js$
|
- (^|\/)d3(\.v\d+)?([^.]*)\.js$
|
||||||
|
|
||||||
# React
|
# React
|
||||||
- (^|/)react(-[^.]*)?(\.min)?\.js$
|
- (^|/)react(-[^.]*)?\.js$
|
||||||
|
|
||||||
# Modernizr
|
# Modernizr
|
||||||
- (^|/)modernizr\-\d\.\d+(\.\d+)?(\.min)?\.js$
|
- (^|/)modernizr\-\d\.\d+(\.\d+)?\.js$
|
||||||
- (^|/)modernizr\.custom\.\d+\.js$
|
- (^|/)modernizr\.custom\.\d+\.js$
|
||||||
|
|
||||||
# Knockout
|
# Knockout
|
||||||
- (^|/)knockout-(\d+\.){3}(debug\.)?js$
|
- (^|/)knockout-(\d+\.){3}(debug\.)?js$
|
||||||
- knockout-min.js
|
|
||||||
|
|
||||||
## Python ##
|
## Python ##
|
||||||
|
|
||||||
@@ -168,8 +167,8 @@
|
|||||||
- \.intellisense\.js$
|
- \.intellisense\.js$
|
||||||
|
|
||||||
# jQuery validation plugin (MS bundles this with asp.net mvc)
|
# jQuery validation plugin (MS bundles this with asp.net mvc)
|
||||||
- (^|/)jquery([^.]*)\.validate(\.unobtrusive)?(\.min)?\.js$
|
- (^|/)jquery([^.]*)\.validate(\.unobtrusive)?\.js$
|
||||||
- (^|/)jquery([^.]*)\.unobtrusive\-ajax(\.min)?\.js$
|
- (^|/)jquery([^.]*)\.unobtrusive\-ajax\.js$
|
||||||
|
|
||||||
# Microsoft Ajax
|
# Microsoft Ajax
|
||||||
- (^|/)[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$
|
- (^|/)[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$
|
||||||
@@ -196,7 +195,7 @@
|
|||||||
- (^|/)extjs/welcome/
|
- (^|/)extjs/welcome/
|
||||||
|
|
||||||
# Html5shiv
|
# Html5shiv
|
||||||
- (^|/)html5shiv(\.min)?\.js$
|
- (^|/)html5shiv\.js$
|
||||||
|
|
||||||
# Samples folders
|
# Samples folders
|
||||||
- ^[Ss]amples/
|
- ^[Ss]amples/
|
||||||
@@ -215,8 +214,8 @@
|
|||||||
- ^[Tt]est/fixtures/
|
- ^[Tt]est/fixtures/
|
||||||
|
|
||||||
# PhoneGap/Cordova
|
# PhoneGap/Cordova
|
||||||
- (^|/)cordova([^.]*)(\.min)?\.js$
|
- (^|/)cordova([^.]*)\.js$
|
||||||
- (^|/)cordova\-\d\.\d(\.\d)?(\.min)?\.js$
|
- (^|/)cordova\-\d\.\d(\.\d)?\.js$
|
||||||
|
|
||||||
# Foundation js
|
# Foundation js
|
||||||
- foundation(\..*)?\.js$
|
- foundation(\..*)?\.js$
|
||||||
@@ -236,7 +235,6 @@
|
|||||||
|
|
||||||
# Octicons
|
# Octicons
|
||||||
- octicons.css
|
- octicons.css
|
||||||
- octicons.min.css
|
|
||||||
- sprockets-octicons.scss
|
- sprockets-octicons.scss
|
||||||
|
|
||||||
# Typesafe Activator
|
# Typesafe Activator
|
||||||
|
|||||||
@@ -304,6 +304,14 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
# Debian packaging
|
# Debian packaging
|
||||||
assert blob("debian/cron.d").vendored?
|
assert blob("debian/cron.d").vendored?
|
||||||
|
|
||||||
|
# Minified JavaScript and CSS
|
||||||
|
assert blob("foo.min.js").vendored?
|
||||||
|
assert blob("foo.min.css").vendored?
|
||||||
|
assert blob("foo-min.js").vendored?
|
||||||
|
assert blob("foo-min.css").vendored?
|
||||||
|
assert !blob("foomin.css").vendored?
|
||||||
|
assert !blob("foo.min.txt").vendored?
|
||||||
|
|
||||||
# Prototype
|
# Prototype
|
||||||
assert !blob("public/javascripts/application.js").vendored?
|
assert !blob("public/javascripts/application.js").vendored?
|
||||||
assert blob("public/javascripts/prototype.js").vendored?
|
assert blob("public/javascripts/prototype.js").vendored?
|
||||||
|
|||||||
Reference in New Issue
Block a user