From 6997eef40ce1c8b8a95cfee18dc1e95e832130f4 Mon Sep 17 00:00:00 2001 From: Glen Maddern Date: Wed, 10 Jun 2015 20:00:40 +1000 Subject: [PATCH 1/2] bumped dependencies and updated expectations --- package.json | 6 +++--- test/test-cases/localise-export/expected.css | 1 - test/test-cases/multiple-dependencies/expected.css | 4 ---- test/test-cases/simple-export/expected.css | 1 - test/test-cases/single-import-export/expected.css | 2 -- 5 files changed, 3 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index cc44cf4..ae11345 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,11 @@ "postcss": "^4.1.11", "postcss-modules-extract-imports": "0.0.3", "postcss-modules-local-by-default": "^0.0.7", - "postcss-modules-scope": "^0.0.5" + "postcss-modules-scope": "^0.0.6" }, "devDependencies": { - "babel": "^5.5.4", - "babel-eslint": "^3.1.14", + "babel": "^5.5.6", + "babel-eslint": "^3.1.15", "babelify": "^6.1.2", "chokidar-cli": "^0.2.1", "eslint": "^0.22.1", diff --git a/test/test-cases/localise-export/expected.css b/test/test-cases/localise-export/expected.css index f09dca6..c4be0d9 100644 --- a/test/test-cases/localise-export/expected.css +++ b/test/test-cases/localise-export/expected.css @@ -1,4 +1,3 @@ - ._localise_export_source__one { color: red; } diff --git a/test/test-cases/multiple-dependencies/expected.css b/test/test-cases/multiple-dependencies/expected.css index 7b81d2a..8d46eb4 100644 --- a/test/test-cases/multiple-dependencies/expected.css +++ b/test/test-cases/multiple-dependencies/expected.css @@ -1,16 +1,12 @@ - ._multiple_dependencies_d__d { color: #ddd; } - ._multiple_dependencies_b__b { color: #bbb; } - ._multiple_dependencies_c__c { color: #ccc; } - ._multiple_dependencies_source__a { color: #aaa; } diff --git a/test/test-cases/simple-export/expected.css b/test/test-cases/simple-export/expected.css index 471585d..2f8e4da 100644 --- a/test/test-cases/simple-export/expected.css +++ b/test/test-cases/simple-export/expected.css @@ -1,4 +1,3 @@ - ._simple_export_source__localName { color: red; } diff --git a/test/test-cases/single-import-export/expected.css b/test/test-cases/single-import-export/expected.css index 81b058d..7dac9a4 100644 --- a/test/test-cases/single-import-export/expected.css +++ b/test/test-cases/single-import-export/expected.css @@ -1,8 +1,6 @@ - ._single_import_export_colors__blackShadow { box-shadow: 0 0 10px -2px black; } - ._single_import_export_source__localName { color: red; } From ef493bc3ede39f938dbcfd2dc8a8d1f22295c566 Mon Sep 17 00:00:00 2001 From: Glen Maddern Date: Wed, 10 Jun 2015 21:26:30 +1000 Subject: [PATCH 2/2] added a failing spec for animation localisation --- test/test-cases/animations/expected.css | 7 +++++++ test/test-cases/animations/expected.json | 3 +++ test/test-cases/animations/source.css | 8 ++++++++ 3 files changed, 18 insertions(+) create mode 100644 test/test-cases/animations/expected.css create mode 100644 test/test-cases/animations/expected.json create mode 100644 test/test-cases/animations/source.css diff --git a/test/test-cases/animations/expected.css b/test/test-cases/animations/expected.css new file mode 100644 index 0000000..8f64bdf --- /dev/null +++ b/test/test-cases/animations/expected.css @@ -0,0 +1,7 @@ +._animations_source__fader { + animation: _animations_source__fade-in 1s; +} + +@keyframes _animations_source__fade-in { + 0% { opacity: 0; } +} diff --git a/test/test-cases/animations/expected.json b/test/test-cases/animations/expected.json new file mode 100644 index 0000000..5cb4672 --- /dev/null +++ b/test/test-cases/animations/expected.json @@ -0,0 +1,3 @@ +{ + "fader": "_animations_source__fader" +} diff --git a/test/test-cases/animations/source.css b/test/test-cases/animations/source.css new file mode 100644 index 0000000..4c5a7ef --- /dev/null +++ b/test/test-cases/animations/source.css @@ -0,0 +1,8 @@ +.fader { + animation: fade-in 1s; +} + +@keyframes fade-in { + 0% { opacity: 0; } +} +