diff --git a/config.codekit b/config.codekit new file mode 100644 index 0000000..7e684b7 --- /dev/null +++ b/config.codekit @@ -0,0 +1,1123 @@ +{ +"CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit", +"creatorBuild": "19127", +"files": { + "\/bower.json": { + "fileType": 524288, + "ignore": 1, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/bower.json", + "orderOutput": 0, + "outputAbbreviatedPath": "\/bower-min.json", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "outputStyle": 1 + }, + "\/package.json": { + "fileType": 524288, + "ignore": 1, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/package.json", + "orderOutput": 0, + "outputAbbreviatedPath": "\/package-min.json", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "outputStyle": 1 + }, + "\/README.md": { + "criticStyle": 0, + "enableFootnotes": 1, + "enableLabels": 1, + "enableSmartQuotes": 1, + "escapeLineBreaks": 0, + "fileType": 4096, + "ignore": 1, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/README.md", + "maskEmailAddresses": 1, + "outputAbbreviatedPath": "\/README.html", + "outputFormat": 0, + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "outputStyle": 0, + "parseMetadata": 1, + "processHTML": 0, + "randomFootnoteNumbers": 0, + "useCompatibilityMode": 0 + }, + "\/selectivizr2.js": { + "fileType": 64, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/selectivizr2.js", + "outputAbbreviatedPath": "\/assets\/js\/selectivizr2.js", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "outputStyle": 1, + "syntaxCheckerStyle": 1 + }, + "\/tests\/master\/css\/common.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/common.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/iframe.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/iframe.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/import-print.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/import-print.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/import-quoted-double.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/import-quoted-double.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/import-quoted-single.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/import-quoted-single.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/import-screen.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/import-screen.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/import-url-fully-qualified-path.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/import-url-fully-qualified-path.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/import-url-protocol-relative-path.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/import-url-protocol-relative-path.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/import-url-quoted-double.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/import-url-quoted-double.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/import-url-quoted-single.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/import-url-quoted-single.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/import-url-root-relative-path.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/import-url-root-relative-path.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/import-url-unquoted.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/import-url-unquoted.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/master.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/master.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/min-import-url-protocol-relative-path.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/min-import-url-protocol-relative-path.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/min-import-url-quoted-double.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/min-import-url-quoted-double.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/min-import-url-quoted-single.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/min-import-url-quoted-single.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/min-import-url-relative-path.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/min-import-url-relative-path.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/min-import-url-root-relative-path.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/min-import-url-root-relative-path.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/min-import-url-unquoted.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/min-import-url-unquoted.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/nested\/import-url-relative-path.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/css\/nested\/import-url-relative-path.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/css\/nested\/test.png": { + "fileType": 32768, + "ignore": 0, + "ignoreWasSetByUser": 0, + "initialSize": 193, + "inputAbbreviatedPath": "\/tests\/master\/css\/nested\/test.png", + "outputAbbreviatedPath": "\/tests\/master\/css\/nested\/test.png", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "processed": 0 + }, + "\/tests\/master\/html\/domready-postload.html": { + "fileType": 8192, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/html\/domready-postload.html", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/html\/iframe-hash.html": { + "fileType": 8192, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/html\/iframe-hash.html", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/html\/iframe-query.html": { + "fileType": 8192, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/html\/iframe-query.html", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/html\/iframe.html": { + "fileType": 8192, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/html\/iframe.html", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/index.html": { + "fileType": 8192, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/index.html", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/tests\/master\/js\/test.js": { + "fileType": 64, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/tests\/master\/js\/test.js", + "outputAbbreviatedPath": "\/assets\/js\/test.js", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "outputStyle": 1, + "syntaxCheckerStyle": 1 + } + }, +"hooks": [ + ], +"lastSavedByUser": "designer 01", +"manualImportLinks": { + }, +"projectAttributes": { + "bowerAbbreviatedPath": "", + "displayValue": "selectivizr2", + "displayValueWasSetByUser": 0, + "iconImageName": "globe_blue" + }, +"projectSettings": { + "alwaysUseExternalServer": 1, + "animateCSSInjections": 1, + "autoApplyPSLanguageSettingsStyle": 0, + "autoprefixerBrowserString": "> 1%, last 2 versions, Firefox ESR, Opera 12.1", + "autoSyncProjectSettingsFile": 1, + "browserRefreshDelay": 0, + "coffeeAutoOutputPathEnabled": 1, + "coffeeAutoOutputPathFilenamePattern": "*.js", + "coffeeAutoOutputPathRelativePath": "", + "coffeeAutoOutputPathReplace1": "", + "coffeeAutoOutputPathReplace2": "", + "coffeeAutoOutputPathStyle": 0, + "coffeeCreateSourceMap": 0, + "coffeeLintFlags2": { + "arrow_spacing": { + "active": 0, + "flagValue": -1 + }, + "camel_case_classes": { + "active": 1, + "flagValue": -1 + }, + "colon_assignment_spacing": { + "active": 0, + "flagValue": 1 + }, + "cyclomatic_complexity": { + "active": 0, + "flagValue": 10 + }, + "duplicate_key": { + "active": 1, + "flagValue": -1 + }, + "empty_constructor_needs_parens": { + "active": 0, + "flagValue": -1 + }, + "ensure_comprehensions": { + "active": 1, + "flagValue": -1 + }, + "indentation": { + "active": 1, + "flagValue": 2 + }, + "line_endings": { + "active": 0, + "flagValue": 0 + }, + "max_line_length": { + "active": 0, + "flagValue": 150 + }, + "missing_fat_arrows": { + "active": 0, + "flagValue": -1 + }, + "newlines_after_classes": { + "active": 0, + "flagValue": 3 + }, + "no_backticks": { + "active": 1, + "flagValue": -1 + }, + "no_debugger": { + "active": 1, + "flagValue": -1 + }, + "no_empty_functions": { + "active": 0, + "flagValue": -1 + }, + "no_empty_param_list": { + "active": 0, + "flagValue": -1 + }, + "no_implicit_braces": { + "active": 1, + "flagValue": -1 + }, + "no_implicit_parens": { + "active": 0, + "flagValue": -1 + }, + "no_interpolation_in_single_quotes": { + "active": 0, + "flagValue": -1 + }, + "no_nested_string_interpolation": { + "active": 1, + "flagValue": -1 + }, + "no_plusplus": { + "active": 0, + "flagValue": -1 + }, + "no_private_function_fat_arrows": { + "active": 1, + "flagValue": -1 + }, + "no_stand_alone_at": { + "active": 1, + "flagValue": -1 + }, + "no_tabs": { + "active": 1, + "flagValue": -1 + }, + "no_this": { + "active": 0, + "flagValue": -1 + }, + "no_throwing_strings": { + "active": 1, + "flagValue": -1 + }, + "no_trailing_semicolons": { + "active": 1, + "flagValue": -1 + }, + "no_trailing_whitespace": { + "active": 1, + "flagValue": -1 + }, + "no_unnecessary_double_quotes": { + "active": 0, + "flagValue": -1 + }, + "no_unnecessary_fat_arrows": { + "active": 1, + "flagValue": -1 + }, + "non_empty_constructor_needs_parens": { + "active": 0, + "flagValue": -1 + }, + "prefer_english_operator": { + "active": 0, + "flagValue": -1 + }, + "space_operators": { + "active": 0, + "flagValue": -1 + }, + "spacing_after_comma": { + "active": 1, + "flagValue": -1 + } + }, + "coffeeMinifyOutput": 1, + "coffeeOutputStyle": 0, + "coffeeSyntaxCheckerStyle": 1, + "externalServerAddress": "http:\/\/localhost:8888\/develop\/selectivizr2\/tests\/master", + "externalServerPreviewPathAddition": "", + "genericWebpageFileExtensionsString": "html, htm, shtml, shtm, xhtml, php, jsp, asp, aspx, erb, ctp", + "hamlAutoOutputPathEnabled": 1, + "hamlAutoOutputPathFilenamePattern": "*.html", + "hamlAutoOutputPathRelativePath": "", + "hamlAutoOutputPathReplace1": "", + "hamlAutoOutputPathReplace2": "", + "hamlAutoOutputPathStyle": 0, + "hamlEscapeHTMLCharacters": 0, + "hamlNoEscapeInAttributes": 0, + "hamlOutputFormat": 2, + "hamlOutputStyle": 0, + "hamlUseCDATA": 0, + "hamlUseDoubleQuotes": 0, + "hamlUseUnixNewlines": 0, + "jadeAutoOutputPathEnabled": 1, + "jadeAutoOutputPathFilenamePattern": "*.html", + "jadeAutoOutputPathRelativePath": "", + "jadeAutoOutputPathReplace1": "", + "jadeAutoOutputPathReplace2": "", + "jadeAutoOutputPathStyle": 0, + "jadeCompileDebug": 1, + "jadeOutputStyle": 0, + "javascriptAutoOutputPathEnabled": 1, + "javascriptAutoOutputPathFilenamePattern": "*.js", + "javascriptAutoOutputPathRelativePath": "assets\/js\/", + "javascriptAutoOutputPathReplace1": "", + "javascriptAutoOutputPathReplace2": "", + "javascriptAutoOutputPathStyle": 1, + "javascriptCreateSourceMap": 1, + "javascriptOutputStyle": 1, + "javascriptSyntaxCheckerStyle": 1, + "jsCheckerReservedNamesString": "", + "jsHintFlags2": { + "asi": { + "active": 0, + "flagValue": -1 + }, + "bitwise": { + "active": 1, + "flagValue": -1 + }, + "boss": { + "active": 0, + "flagValue": -1 + }, + "browser": { + "active": 1, + "flagValue": -1 + }, + "browserify": { + "active": 0, + "flagValue": -1 + }, + "camelcase": { + "active": 0, + "flagValue": -1 + }, + "couch": { + "active": 0, + "flagValue": -1 + }, + "curly": { + "active": 1, + "flagValue": -1 + }, + "debug": { + "active": 0, + "flagValue": -1 + }, + "devel": { + "active": 0, + "flagValue": -1 + }, + "dojo": { + "active": 0, + "flagValue": -1 + }, + "elision": { + "active": 1, + "flagValue": -1 + }, + "eqeqeq": { + "active": 1, + "flagValue": -1 + }, + "eqnull": { + "active": 0, + "flagValue": -1 + }, + "es3": { + "active": 0, + "flagValue": -1 + }, + "esnext": { + "active": 0, + "flagValue": -1 + }, + "evil": { + "active": 0, + "flagValue": -1 + }, + "expr": { + "active": 0, + "flagValue": -1 + }, + "forin": { + "active": 0, + "flagValue": -1 + }, + "freeze": { + "active": 1, + "flagValue": -1 + }, + "funcscope": { + "active": 0, + "flagValue": -1 + }, + "futurehostile": { + "active": 0, + "flagValue": -1 + }, + "globalstrict": { + "active": 0, + "flagValue": -1 + }, + "immed": { + "active": 0, + "flagValue": -1 + }, + "indent": { + "active": 0, + "flagValue": 4 + }, + "iterator": { + "active": 0, + "flagValue": -1 + }, + "jasmine": { + "active": 0, + "flagValue": -1 + }, + "jquery": { + "active": 1, + "flagValue": -1 + }, + "lastsemic": { + "active": 0, + "flagValue": -1 + }, + "latedef": { + "active": 1, + "flagValue": -1 + }, + "laxbreak": { + "active": 0, + "flagValue": -1 + }, + "laxcomma": { + "active": 0, + "flagValue": -1 + }, + "loopfunc": { + "active": 0, + "flagValue": -1 + }, + "maxcomplexity": { + "active": 0, + "flagValue": 10 + }, + "maxdepth": { + "active": 0, + "flagValue": 3 + }, + "maxlen": { + "active": 0, + "flagValue": 150 + }, + "maxparams": { + "active": 0, + "flagValue": 3 + }, + "maxstatements": { + "active": 0, + "flagValue": 4 + }, + "mocha": { + "active": 0, + "flagValue": -1 + }, + "mootools": { + "active": 0, + "flagValue": -1 + }, + "moz": { + "active": 0, + "flagValue": -1 + }, + "multistr": { + "active": 0, + "flagValue": -1 + }, + "newcap": { + "active": 1, + "flagValue": -1 + }, + "noarg": { + "active": 1, + "flagValue": -1 + }, + "nocomma": { + "active": 0, + "flagValue": -1 + }, + "node": { + "active": 0, + "flagValue": -1 + }, + "noempty": { + "active": 0, + "flagValue": -1 + }, + "nonbsp": { + "active": 0, + "flagValue": -1 + }, + "nonew": { + "active": 1, + "flagValue": -1 + }, + "nonstandard": { + "active": 0, + "flagValue": -1 + }, + "notypeof": { + "active": 1, + "flagValue": -1 + }, + "noyield": { + "active": 0, + "flagValue": -1 + }, + "onecase": { + "active": 0, + "flagValue": -1 + }, + "phantom": { + "active": 0, + "flagValue": -1 + }, + "plusplus": { + "active": 0, + "flagValue": -1 + }, + "proto": { + "active": 0, + "flagValue": -1 + }, + "prototypejs": { + "active": 0, + "flagValue": -1 + }, + "qunit": { + "active": 0, + "flagValue": -1 + }, + "regexp": { + "active": 1, + "flagValue": -1 + }, + "rhino": { + "active": 0, + "flagValue": -1 + }, + "scripturl": { + "active": 0, + "flagValue": -1 + }, + "shadow": { + "active": 0, + "flagValue": -1 + }, + "shelljs": { + "active": 0, + "flagValue": -1 + }, + "singleGroups": { + "active": 0, + "flagValue": -1 + }, + "strict": { + "active": 0, + "flagValue": -1 + }, + "sub": { + "active": 0, + "flagValue": -1 + }, + "supernew": { + "active": 0, + "flagValue": -1 + }, + "typed": { + "active": 0, + "flagValue": -1 + }, + "undef": { + "active": 1, + "flagValue": -1 + }, + "unused": { + "active": 1, + "flagValue": -1 + }, + "varstmt": { + "active": 0, + "flagValue": -1 + }, + "withstmt": { + "active": 0, + "flagValue": -1 + }, + "worker": { + "active": 0, + "flagValue": -1 + }, + "wsh": { + "active": 0, + "flagValue": -1 + }, + "yui": { + "active": 0, + "flagValue": -1 + } + }, + "jsLintFlags2": { + "bitwise": { + "active": 0, + "flagValue": -1 + }, + "browser": { + "active": 1, + "flagValue": -1 + }, + "couch": { + "active": 0, + "flagValue": -1 + }, + "devel": { + "active": 0, + "flagValue": -1 + }, + "es6": { + "active": 0, + "flagValue": -1 + }, + "eval": { + "active": 0, + "flagValue": -1 + }, + "for": { + "active": 0, + "flagValue": -1 + }, + "maxlen": { + "active": 0, + "flagValue": 150 + }, + "node": { + "active": 0, + "flagValue": -1 + }, + "this": { + "active": 0, + "flagValue": -1 + }, + "white": { + "active": 0, + "flagValue": -1 + } + }, + "jsonAutoOutputPathEnabled": 0, + "jsonAutoOutputPathFilenamePattern": "*-min.json", + "jsonAutoOutputPathRelativePath": "", + "jsonAutoOutputPathReplace1": "", + "jsonAutoOutputPathReplace2": "", + "jsonAutoOutputPathStyle": 0, + "jsonOrderOutput": 0, + "jsonOutputStyle": 1, + "kitAutoOutputPathEnabled": 1, + "kitAutoOutputPathFilenamePattern": "*.html", + "kitAutoOutputPathRelativePath": "", + "kitAutoOutputPathReplace1": "", + "kitAutoOutputPathReplace2": "", + "kitAutoOutputPathStyle": 0, + "lessAllowInsecureImports": 0, + "lessAutoOutputPathEnabled": 1, + "lessAutoOutputPathFilenamePattern": "*.css", + "lessAutoOutputPathRelativePath": "..\/css", + "lessAutoOutputPathReplace1": "less", + "lessAutoOutputPathReplace2": "css", + "lessAutoOutputPathStyle": 2, + "lessCreateSourceMap": 0, + "lessDisableJavascript": 0, + "lessIeCompatibility": 1, + "lessOutputStyle": 0, + "lessRelativeURLS": 0, + "lessStrictImports": 0, + "lessStrictMath": 0, + "lessStrictUnits": 0, + "markdownAutoOutputPathEnabled": 0, + "markdownAutoOutputPathFilenamePattern": "*.html", + "markdownAutoOutputPathRelativePath": "", + "markdownAutoOutputPathReplace1": "", + "markdownAutoOutputPathReplace2": "", + "markdownAutoOutputPathStyle": 0, + "markdownCriticStyle": 0, + "markdownEnableFootnotes": 1, + "markdownEnableLabels": 1, + "markdownEnableSmartQuotes": 1, + "markdownEscapeLineBreaks": 0, + "markdownMaskEmailAddresses": 1, + "markdownOutputFormat": 0, + "markdownOutputStyle": 0, + "markdownParseMetadata": 1, + "markdownProcessHTML": 0, + "markdownRandomFootnoteNumbers": 0, + "markdownUseCompatibilityMode": 0, + "reloadFileURLs": 0, + "sassAutoOutputPathEnabled": 1, + "sassAutoOutputPathFilenamePattern": "*.css", + "sassAutoOutputPathRelativePath": "assets\/css\/", + "sassAutoOutputPathReplace1": "sass", + "sassAutoOutputPathReplace2": "css", + "sassAutoOutputPathStyle": 1, + "sassCreateSourceMap": 1, + "sassDebugStyle": 0, + "sassDecimalPrecision": 4, + "sassOutputStyle": 3, + "sassUseLibsass": 1, + "shouldRunAutoprefixer": 0, + "shouldRunBless": 0, + "skippedItemsString": ".svn, .git, .hg, log, _logs, _cache, cache, logs, node_modules", + "slimAutoOutputPathEnabled": 1, + "slimAutoOutputPathFilenamePattern": "*.html", + "slimAutoOutputPathRelativePath": "", + "slimAutoOutputPathReplace1": "", + "slimAutoOutputPathReplace2": "", + "slimAutoOutputPathStyle": 0, + "slimCompileOnly": 0, + "slimLogicless": 0, + "slimOutputFormat": 0, + "slimOutputStyle": 1, + "slimRailsCompatible": 0, + "stylusAutoOutputPathEnabled": 1, + "stylusAutoOutputPathFilenamePattern": "*.css", + "stylusAutoOutputPathRelativePath": "..\/css", + "stylusAutoOutputPathReplace1": "stylus", + "stylusAutoOutputPathReplace2": "css", + "stylusAutoOutputPathStyle": 2, + "stylusCreateSourceMap": 0, + "stylusDebugStyle": 0, + "stylusImportCSS": 0, + "stylusOutputStyle": 0, + "stylusResolveRelativeURLS": 0, + "typescriptAutoOutputPathEnabled": 1, + "typescriptAutoOutputPathFilenamePattern": "*.js", + "typescriptAutoOutputPathRelativePath": "\/js", + "typescriptAutoOutputPathReplace1": "", + "typescriptAutoOutputPathReplace2": "", + "typescriptAutoOutputPathStyle": 2, + "typescriptCreateDeclarationFile": 0, + "typescriptCreateSourceMap": 0, + "typescriptJSXMode": 0, + "typescriptMinifyOutput": 0, + "typescriptModuleResolutionType": 0, + "typescriptModuleType": 2, + "typescriptNoImplicitAny": 0, + "typescriptPreserveConstEnums": 0, + "typescriptRemoveComments": 0, + "typescriptSuppressImplicitAnyIndexErrors": 0, + "typescriptTargetECMAVersion": 0, + "uglifyDefinesString": "", + "uglifyFlags2": { + "ascii-only": { + "active": 0, + "flagValue": -1 + }, + "bare-returns": { + "active": 0, + "flagValue": -1 + }, + "booleans": { + "active": 1, + "flagValue": -1 + }, + "bracketize": { + "active": 0, + "flagValue": -1 + }, + "cascade": { + "active": 1, + "flagValue": -1 + }, + "comments": { + "active": 1, + "flagValue": -1 + }, + "comparisons": { + "active": 1, + "flagValue": -1 + }, + "compress": { + "active": 1, + "flagValue": -1 + }, + "conditionals": { + "active": 1, + "flagValue": -1 + }, + "dead_code": { + "active": 0, + "flagValue": -1 + }, + "drop_console": { + "active": 0, + "flagValue": -1 + }, + "drop_debugger": { + "active": 1, + "flagValue": -1 + }, + "eval": { + "active": 0, + "flagValue": -1 + }, + "evaluate": { + "active": 1, + "flagValue": -1 + }, + "hoist_funs": { + "active": 1, + "flagValue": -1 + }, + "hoist_vars": { + "active": 0, + "flagValue": -1 + }, + "if_return": { + "active": 1, + "flagValue": -1 + }, + "indent-level": { + "active": 0, + "flagValue": 4 + }, + "indent-start": { + "active": 0, + "flagValue": 0 + }, + "inline-script": { + "active": 0, + "flagValue": -1 + }, + "join_vars": { + "active": 1, + "flagValue": -1 + }, + "keep_fargs": { + "active": 0, + "flagValue": -1 + }, + "keep_fnames": { + "active": 0, + "flagValue": -1 + }, + "loops": { + "active": 1, + "flagValue": -1 + }, + "mangle": { + "active": 1, + "flagValue": -1 + }, + "max-line-len": { + "active": 1, + "flagValue": 32000 + }, + "negate_iife": { + "active": 1, + "flagValue": -1 + }, + "properties": { + "active": 1, + "flagValue": -1 + }, + "pure_getters": { + "active": 0, + "flagValue": -1 + }, + "quote-keys": { + "active": 0, + "flagValue": -1 + }, + "screw-ie8": { + "active": 0, + "flagValue": -1 + }, + "semicolons": { + "active": 1, + "flagValue": -1 + }, + "sequences": { + "active": 1, + "flagValue": -1 + }, + "sort": { + "active": 0, + "flagValue": -1 + }, + "space-colon": { + "active": 1, + "flagValue": -1 + }, + "toplevel": { + "active": 0, + "flagValue": -1 + }, + "unsafe": { + "active": 0, + "flagValue": -1 + }, + "unused": { + "active": 0, + "flagValue": -1 + }, + "warnings": { + "active": 0, + "flagValue": -1 + }, + "width": { + "active": 1, + "flagValue": 80 + } + }, + "uglifyReservedNamesString": "$", + "websiteRelativeRoot": "" + }, +"settingsFileVersion": "2" +} \ No newline at end of file diff --git a/selectivizr2.js b/selectivizr2.js index 913ccfc..961af3c 100755 --- a/selectivizr2.js +++ b/selectivizr2.js @@ -63,7 +63,7 @@ // Stylesheet parsing regexp's var RE_COMMENT = /(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*?/g; - var RE_IMPORT = /@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))\s*([^;]*);/g; + var RE_IMPORT = /@import\s*(?:(?:(?:url\(\s*(['"]?)([^;]*)\1)\s*\))|(?:(['"])([^;]*)\3))\s*([^;]*);/g; var RE_ASSET_URL = /(behavior\s*?:\s*)?\burl\(\s*(["']?)(?!data:)([^"')]+)\2\s*\)/g; var RE_PSEUDO_STRUCTURAL = /^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/; var RE_PSEUDO_ELEMENTS = /:(:first-(?:line|letter))/g; diff --git a/tests/master/css/import-print.css b/tests/master/css/import-print.css index 1bd5e1a..611a225 100644 --- a/tests/master/css/import-print.css +++ b/tests/master/css/import-print.css @@ -1,6 +1,6 @@ /* if @media type filtering doesn't work we want this test to fail */ tr#import-print { - background: #c00; + background: #0c0; } diff --git a/tests/master/css/master.css b/tests/master/css/master.css index 6089ff1..81dc054 100755 --- a/tests/master/css/master.css +++ b/tests/master/css/master.css @@ -29,13 +29,25 @@ @import url("import-print.css") print; @import url("import-screen.css") screen; -#import-print { - background: #0c0; -} +/* When parsing @import of minified CSS, ensure the Regex isn't too greedy */ +@import url("min-import-url-quoted-double.css");.minified{background:url("css/nested/test.png");} +@import url('min-import-url-quoted-single.css');.minified{background:url("css/nested/test.png");} +@import url(min-import-url-unquoted.css);.minified{background:url("css/nested/test.png");} +@import "min-import-quoted-double.css";.minified{background:url("css/nested/test.png");} +@import "min-import-quoted-single.css";.minified{background:url("css/nested/test.png");} +@import url("nested/min-import-url-relative-path.css");.minified{background:url("css/nested/test.png");} +/* + * The following urls will be specific to your own server configuration and will fail + * if used "out of the box". To test root-relative and fully qualifed url's you will + * need to adjust the paths below: + */ -#import-screen { - background: #c00; -} +@import url("/selectivizr-git/tests/master/css/min-import-url-root-relative-path.css");.minified{background:url("css/nested/test.png");} +@import url("http://iis/selectivizr-git/tests/master/css/min-import-url-fully-qualified-path.css");.minified{background:url("css/nested/test.png");} +@import url("//iis/selectivizr-git/tests/master/css/min-import-url-protocol-relative-path.css");.minified{background:url("css/nested/test.png");} + +@import url("min-import-print.css") print;.minified{background:url("css/nested/test.png");} +@import url("min-import-screen.css") screen;.minified{background:url("css/nested/test.png");} body { padding: 10px; diff --git a/tests/master/css/min-import-print.css b/tests/master/css/min-import-print.css new file mode 100644 index 0000000..cfb90ed --- /dev/null +++ b/tests/master/css/min-import-print.css @@ -0,0 +1,6 @@ +/* if @media type filtering doesn't work we want this test to fail */ + +tr#min-import-print { + background: #0c0; +} + diff --git a/tests/master/css/min-import-quoted-double.css b/tests/master/css/min-import-quoted-double.css new file mode 100644 index 0000000..f8f23b5 --- /dev/null +++ b/tests/master/css/min-import-quoted-double.css @@ -0,0 +1 @@ +#min-import-quoted-double { background-color: #0c0 } diff --git a/tests/master/css/min-import-quoted-single.css b/tests/master/css/min-import-quoted-single.css new file mode 100644 index 0000000..777b4e1 --- /dev/null +++ b/tests/master/css/min-import-quoted-single.css @@ -0,0 +1 @@ +#min-import-quoted-single { background-color: #0c0 } diff --git a/tests/master/css/min-import-screen.css b/tests/master/css/min-import-screen.css new file mode 100644 index 0000000..ca3ab89 --- /dev/null +++ b/tests/master/css/min-import-screen.css @@ -0,0 +1,4 @@ +tr#min-import-screen { + background: #0c0; +} + diff --git a/tests/master/css/min-import-url-fully-qualified-path.css b/tests/master/css/min-import-url-fully-qualified-path.css new file mode 100644 index 0000000..482b81e --- /dev/null +++ b/tests/master/css/min-import-url-fully-qualified-path.css @@ -0,0 +1 @@ +#min-import-url-fully-qualfied { background-color: #0c0 } diff --git a/tests/master/css/min-import-url-protocol-relative-path.css b/tests/master/css/min-import-url-protocol-relative-path.css new file mode 100644 index 0000000..3c96e8e --- /dev/null +++ b/tests/master/css/min-import-url-protocol-relative-path.css @@ -0,0 +1,3 @@ +#min-import-url-protocol-relative { + background: #0c0; +} diff --git a/tests/master/css/min-import-url-quoted-double.css b/tests/master/css/min-import-url-quoted-double.css new file mode 100644 index 0000000..027113d --- /dev/null +++ b/tests/master/css/min-import-url-quoted-double.css @@ -0,0 +1 @@ +#min-import-url-quoted-double { background-color: #0c0 } diff --git a/tests/master/css/min-import-url-quoted-single.css b/tests/master/css/min-import-url-quoted-single.css new file mode 100644 index 0000000..56c9f9b --- /dev/null +++ b/tests/master/css/min-import-url-quoted-single.css @@ -0,0 +1 @@ +#min-import-url-quoted-single { background-color: #0c0 } diff --git a/tests/master/css/min-import-url-relative-path.css b/tests/master/css/min-import-url-relative-path.css new file mode 100644 index 0000000..9e1abd6 --- /dev/null +++ b/tests/master/css/min-import-url-relative-path.css @@ -0,0 +1 @@ +#min-import-url-relative { background-image: url("test.png") } diff --git a/tests/master/css/min-import-url-root-relative-path.css b/tests/master/css/min-import-url-root-relative-path.css new file mode 100644 index 0000000..b084ec8 --- /dev/null +++ b/tests/master/css/min-import-url-root-relative-path.css @@ -0,0 +1 @@ +#min-import-url-root-relative { background-color: #0c0 } diff --git a/tests/master/css/min-import-url-unquoted.css b/tests/master/css/min-import-url-unquoted.css new file mode 100644 index 0000000..d5cce4a --- /dev/null +++ b/tests/master/css/min-import-url-unquoted.css @@ -0,0 +1 @@ +#min-import-url-unquoted { background-color: #0c0 } diff --git a/tests/master/index.html b/tests/master/index.html index cb98f25..2ccfbf6 100755 --- a/tests/master/index.html +++ b/tests/master/index.html @@ -111,6 +111,54 @@

@import syntax tests

+

Minified @import syntax tests

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@import url("...")Testing @import rule with url wrapped in double quotes and prefixed with the url() qualifier +
@import url('...')Testing @import rule with url wrapped in single quotes and prefixed with the url() qualifier +
@import url(...)Testing @import rule with url without quotes and prefixed with the url() qualifier +
@import "..."Testing @import rule with url wrapped in double quotes without the url() qualifier +
@import '...'Testing @import rule with url wrapped in single quotes without the url() qualifier +
@import url("../file.css")Testing @import rule with a relative path +
@import url("/path/file.css")Testing @import rule with a root-relative path (see note in 'master.css') +
@import url("http://domain/path/file.css")Testing @import rule with a fully qualified path (see note in 'master.css') +
@import url("//domain/path/file.css")Testing @import rule with a protocol relative path +
@import url("...") printTesting @import rule with a print media type +
@import url("...") screenTesting @import rule with a screen media type +
+

url syntax tests

@@ -359,4 +407,4 @@

HTML5 element tests

- \ No newline at end of file +