├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc.yml ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .npmignore ├── .travis.yml ├── appveyor.yml ├── assets ├── postcss.png └── sebastiansoftware.png ├── gulpfile.babel.js ├── license ├── package.json ├── readme.md ├── src ├── index.js ├── load-content.js ├── parse-statements.js └── resolve-id.js └── test ├── callback.js ├── custom-load.js ├── custom-resolve.js ├── fixtures ├── custom-load.css ├── custom-load.expected.css ├── custom-resolve-array.css ├── custom-resolve-array.expected.css ├── custom-resolve-file.css ├── custom-resolve-file.expected.css ├── duplicates.css ├── duplicates.expected.css ├── empty-and-useless.css ├── empty-and-useless.expected.css ├── ignore.css ├── ignore.expected.css ├── imports │ ├── bar-decl.css │ ├── bar.css │ ├── bar │ │ ├── baz.css │ │ └── index.css │ ├── barbaz.css │ ├── baz.css │ ├── custom-resolve-1.css │ ├── custom-resolve-2.css │ ├── empty.css │ ├── foo-decl.css │ ├── foo-duplicate.css │ ├── foo-duplicate2.css │ ├── foo-first.css │ ├── foo-recursive.css │ ├── foo-second.css │ ├── foo.css │ ├── foo │ │ ├── baz.css │ │ └── index.css │ ├── foobar.css │ ├── foobarbaz.css │ ├── ignore.css │ ├── import-missing.css │ ├── inline-comment.scss │ ├── media-content-level-2.css │ ├── media-content-level-3.css │ ├── media-import-level-2.css │ ├── media-import-level-3.css │ ├── media-join-nested.css │ ├── media-query-level-2.css │ ├── media-query-level-3.css │ ├── modules │ │ ├── empty │ │ │ ├── index.css │ │ │ └── package.json │ │ ├── main-js │ │ │ ├── index.css │ │ │ ├── main.js │ │ │ └── package.json │ │ ├── main-style │ │ │ ├── main.css │ │ │ ├── package.json │ │ │ └── style.css │ │ ├── main │ │ │ ├── main.css │ │ │ └── package.json │ │ ├── simple │ │ │ └── index.css │ │ └── style │ │ │ ├── package.json │ │ │ └── style.css │ ├── proxy-file │ │ ├── index.css │ │ ├── proxy-file.css │ │ └── sub-directory │ │ │ ├── index.css │ │ │ └── proxy-file.css │ ├── qux.css │ └── useless.css ├── media-content.css ├── media-content.expected.css ├── media-import.css ├── media-import.expected.css ├── media-join.css ├── media-join.expected.css ├── media-query.css ├── media-query.expected.css ├── no-duplicate.css ├── no-duplicate.expected.css ├── order.css ├── order.expected.css ├── plugins.css ├── plugins.expected.css ├── resolve-cwd.css ├── resolve-cwd.expected.css ├── resolve-from.css ├── resolve-from.expected.css ├── resolve-local-modules.css ├── resolve-local-modules.expected.css ├── resolve-modules.css ├── resolve-modules.expected.css ├── resolve-path-cwd.css ├── resolve-path-cwd.expected.css ├── resolve-path-modules.css ├── resolve-path-modules.expected.css ├── resolve-path-root.css ├── resolve-path-root.expected.css ├── resolve-root.css ├── resolve-root.expected.css ├── same.css ├── same.expected.css ├── scss-parser.css ├── scss-parser.expected.css ├── scss-syntax.css ├── scss-syntax.expected.css ├── simple.css ├── simple.expected.css ├── transform-content.css ├── transform-content.expected.css ├── transform-undefined.css └── transform-undefined.expected.css ├── helpers └── compare-fixtures.js ├── import.js ├── lint.js ├── node_modules ├── auto │ └── index.css ├── by-hand │ └── style.css ├── dep │ └── index.css ├── fake │ ├── main.css │ └── package.json ├── nest │ ├── index.css │ └── node_modules │ │ └── ed │ │ └── index.css ├── use-dep-too │ └── index.css └── use-dep │ └── index.css ├── order.js ├── plugins.js ├── resolve.js ├── sourcemap ├── imported.css ├── in.css ├── index.html ├── out.css └── out.css.map ├── transform.js └── web_modules ├── web-auto └── index.css ├── web-by-hand └── style.css ├── web-dep └── index.css ├── web-fake ├── main.css └── package.json ├── web-nest ├── index.css └── web_modules │ └── web-ed │ └── index.css ├── web-use-dep-too └── index.css └── web-use-dep └── index.css /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/.babelrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | node_modules/ 3 | test/fixtures 4 | -------------------------------------------------------------------------------- /.eslintrc.yml: -------------------------------------------------------------------------------- 1 | extends: 2 | ./node_modules/readable-code/.eslintrc.yml 3 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/.flowconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/.travis.yml -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/appveyor.yml -------------------------------------------------------------------------------- /assets/postcss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/assets/postcss.png -------------------------------------------------------------------------------- /assets/sebastiansoftware.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/assets/sebastiansoftware.png -------------------------------------------------------------------------------- /gulpfile.babel.js: -------------------------------------------------------------------------------- 1 | import "readable-code" 2 | -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/license -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/readme.md -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/src/index.js -------------------------------------------------------------------------------- /src/load-content.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/src/load-content.js -------------------------------------------------------------------------------- /src/parse-statements.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/src/parse-statements.js -------------------------------------------------------------------------------- /src/resolve-id.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/src/resolve-id.js -------------------------------------------------------------------------------- /test/callback.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/callback.js -------------------------------------------------------------------------------- /test/custom-load.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/custom-load.js -------------------------------------------------------------------------------- /test/custom-resolve.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/custom-resolve.js -------------------------------------------------------------------------------- /test/fixtures/custom-load.css: -------------------------------------------------------------------------------- 1 | @import "foo" 2 | -------------------------------------------------------------------------------- /test/fixtures/custom-load.expected.css: -------------------------------------------------------------------------------- 1 | custom-content {} 2 | -------------------------------------------------------------------------------- /test/fixtures/custom-resolve-array.css: -------------------------------------------------------------------------------- 1 | @import "any-path"; 2 | -------------------------------------------------------------------------------- /test/fixtures/custom-resolve-array.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/custom-resolve-array.expected.css -------------------------------------------------------------------------------- /test/fixtures/custom-resolve-file.css: -------------------------------------------------------------------------------- 1 | @import "any-path"; 2 | -------------------------------------------------------------------------------- /test/fixtures/custom-resolve-file.expected.css: -------------------------------------------------------------------------------- 1 | custom-resolve-1 {} 2 | -------------------------------------------------------------------------------- /test/fixtures/duplicates.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/duplicates.css -------------------------------------------------------------------------------- /test/fixtures/duplicates.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/duplicates.expected.css -------------------------------------------------------------------------------- /test/fixtures/empty-and-useless.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/empty-and-useless.css -------------------------------------------------------------------------------- /test/fixtures/empty-and-useless.expected.css: -------------------------------------------------------------------------------- 1 | 2 | /* useless */ 3 | -------------------------------------------------------------------------------- /test/fixtures/ignore.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/ignore.css -------------------------------------------------------------------------------- /test/fixtures/ignore.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/ignore.expected.css -------------------------------------------------------------------------------- /test/fixtures/imports/bar-decl.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/imports/bar-decl.css -------------------------------------------------------------------------------- /test/fixtures/imports/bar.css: -------------------------------------------------------------------------------- 1 | bar{} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/bar/baz.css: -------------------------------------------------------------------------------- 1 | bar {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/bar/index.css: -------------------------------------------------------------------------------- 1 | @import "baz.css" 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/barbaz.css: -------------------------------------------------------------------------------- 1 | barbaz{} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/baz.css: -------------------------------------------------------------------------------- 1 | baz{} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/custom-resolve-1.css: -------------------------------------------------------------------------------- 1 | custom-resolve-1 {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/custom-resolve-2.css: -------------------------------------------------------------------------------- 1 | custom-resolve-2 {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/empty.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports/foo-decl.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/imports/foo-decl.css -------------------------------------------------------------------------------- /test/fixtures/imports/foo-duplicate.css: -------------------------------------------------------------------------------- 1 | foo{} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/foo-duplicate2.css: -------------------------------------------------------------------------------- 1 | foo{} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/foo-first.css: -------------------------------------------------------------------------------- 1 | @import "bar.css"; 2 | 3 | foo.first{ 4 | color: red; 5 | } 6 | -------------------------------------------------------------------------------- /test/fixtures/imports/foo-recursive.css: -------------------------------------------------------------------------------- 1 | @import "bar.css"; 2 | 3 | foo.recursive{} 4 | -------------------------------------------------------------------------------- /test/fixtures/imports/foo-second.css: -------------------------------------------------------------------------------- 1 | @import "bar.css"; 2 | 3 | foo.second{ 4 | color: blue; 5 | } 6 | -------------------------------------------------------------------------------- /test/fixtures/imports/foo.css: -------------------------------------------------------------------------------- 1 | foo{} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/foo/baz.css: -------------------------------------------------------------------------------- 1 | foo {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/foo/index.css: -------------------------------------------------------------------------------- 1 | @import "baz.css" 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/foobar.css: -------------------------------------------------------------------------------- 1 | foobar{} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/foobarbaz.css: -------------------------------------------------------------------------------- 1 | foobarbaz{} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/ignore.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/imports/ignore.css -------------------------------------------------------------------------------- /test/fixtures/imports/import-missing.css: -------------------------------------------------------------------------------- 1 | 2 | @import "missing-file.css"; 3 | -------------------------------------------------------------------------------- /test/fixtures/imports/inline-comment.scss: -------------------------------------------------------------------------------- 1 | // inline comment 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/media-content-level-2.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/imports/media-content-level-2.css -------------------------------------------------------------------------------- /test/fixtures/imports/media-content-level-3.css: -------------------------------------------------------------------------------- 1 | level-3 {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/media-import-level-2.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/imports/media-import-level-2.css -------------------------------------------------------------------------------- /test/fixtures/imports/media-import-level-3.css: -------------------------------------------------------------------------------- 1 | @import "//" level-3; 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/media-join-nested.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/imports/media-join-nested.css -------------------------------------------------------------------------------- /test/fixtures/imports/media-query-level-2.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/imports/media-query-level-2.css -------------------------------------------------------------------------------- /test/fixtures/imports/media-query-level-3.css: -------------------------------------------------------------------------------- 1 | @media level-3 {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/modules/empty/index.css: -------------------------------------------------------------------------------- 1 | empty {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/modules/empty/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/modules/main-js/index.css: -------------------------------------------------------------------------------- 1 | main-js {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/modules/main-js/main.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/modules/main-js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/imports/modules/main-js/package.json -------------------------------------------------------------------------------- /test/fixtures/imports/modules/main-style/main.css: -------------------------------------------------------------------------------- 1 | style-mained {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/modules/main-style/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/imports/modules/main-style/package.json -------------------------------------------------------------------------------- /test/fixtures/imports/modules/main-style/style.css: -------------------------------------------------------------------------------- 1 | main-styled {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/modules/main/main.css: -------------------------------------------------------------------------------- 1 | main {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/modules/main/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/imports/modules/main/package.json -------------------------------------------------------------------------------- /test/fixtures/imports/modules/simple/index.css: -------------------------------------------------------------------------------- 1 | simple {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/modules/style/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/imports/modules/style/package.json -------------------------------------------------------------------------------- /test/fixtures/imports/modules/style/style.css: -------------------------------------------------------------------------------- 1 | style {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/proxy-file/index.css: -------------------------------------------------------------------------------- 1 | @import "./proxy-file.css"; 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/proxy-file/proxy-file.css: -------------------------------------------------------------------------------- 1 | proxy {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/proxy-file/sub-directory/index.css: -------------------------------------------------------------------------------- 1 | @import "./proxy-file.css"; 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/proxy-file/sub-directory/proxy-file.css: -------------------------------------------------------------------------------- 1 | import {} 2 | -------------------------------------------------------------------------------- /test/fixtures/imports/qux.css: -------------------------------------------------------------------------------- 1 | quux{ 2 | not: "relative/qux" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/imports/useless.css: -------------------------------------------------------------------------------- 1 | 2 | /* useless */ 3 | -------------------------------------------------------------------------------- /test/fixtures/media-content.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/media-content.css -------------------------------------------------------------------------------- /test/fixtures/media-content.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/media-content.expected.css -------------------------------------------------------------------------------- /test/fixtures/media-import.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/media-import.css -------------------------------------------------------------------------------- /test/fixtures/media-import.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/media-import.expected.css -------------------------------------------------------------------------------- /test/fixtures/media-join.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/media-join.css -------------------------------------------------------------------------------- /test/fixtures/media-join.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/media-join.expected.css -------------------------------------------------------------------------------- /test/fixtures/media-query.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/media-query.css -------------------------------------------------------------------------------- /test/fixtures/media-query.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/media-query.expected.css -------------------------------------------------------------------------------- /test/fixtures/no-duplicate.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/no-duplicate.css -------------------------------------------------------------------------------- /test/fixtures/no-duplicate.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/no-duplicate.expected.css -------------------------------------------------------------------------------- /test/fixtures/order.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/order.css -------------------------------------------------------------------------------- /test/fixtures/order.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/order.expected.css -------------------------------------------------------------------------------- /test/fixtures/plugins.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/plugins.css -------------------------------------------------------------------------------- /test/fixtures/plugins.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/plugins.expected.css -------------------------------------------------------------------------------- /test/fixtures/resolve-cwd.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-cwd.css -------------------------------------------------------------------------------- /test/fixtures/resolve-cwd.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-cwd.expected.css -------------------------------------------------------------------------------- /test/fixtures/resolve-from.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-from.css -------------------------------------------------------------------------------- /test/fixtures/resolve-from.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-from.expected.css -------------------------------------------------------------------------------- /test/fixtures/resolve-local-modules.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-local-modules.css -------------------------------------------------------------------------------- /test/fixtures/resolve-local-modules.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-local-modules.expected.css -------------------------------------------------------------------------------- /test/fixtures/resolve-modules.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-modules.css -------------------------------------------------------------------------------- /test/fixtures/resolve-modules.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-modules.expected.css -------------------------------------------------------------------------------- /test/fixtures/resolve-path-cwd.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-path-cwd.css -------------------------------------------------------------------------------- /test/fixtures/resolve-path-cwd.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-path-cwd.expected.css -------------------------------------------------------------------------------- /test/fixtures/resolve-path-modules.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-path-modules.css -------------------------------------------------------------------------------- /test/fixtures/resolve-path-modules.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-path-modules.expected.css -------------------------------------------------------------------------------- /test/fixtures/resolve-path-root.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-path-root.css -------------------------------------------------------------------------------- /test/fixtures/resolve-path-root.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-path-root.expected.css -------------------------------------------------------------------------------- /test/fixtures/resolve-root.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-root.css -------------------------------------------------------------------------------- /test/fixtures/resolve-root.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/resolve-root.expected.css -------------------------------------------------------------------------------- /test/fixtures/same.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/same.css -------------------------------------------------------------------------------- /test/fixtures/same.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/same.expected.css -------------------------------------------------------------------------------- /test/fixtures/scss-parser.css: -------------------------------------------------------------------------------- 1 | @import "inline-comment.scss"; 2 | -------------------------------------------------------------------------------- /test/fixtures/scss-parser.expected.css: -------------------------------------------------------------------------------- 1 | /* inline comment*/ 2 | -------------------------------------------------------------------------------- /test/fixtures/scss-syntax.css: -------------------------------------------------------------------------------- 1 | @import "inline-comment.scss"; 2 | -------------------------------------------------------------------------------- /test/fixtures/scss-syntax.expected.css: -------------------------------------------------------------------------------- 1 | // inline comment 2 | -------------------------------------------------------------------------------- /test/fixtures/simple.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/simple.css -------------------------------------------------------------------------------- /test/fixtures/simple.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/fixtures/simple.expected.css -------------------------------------------------------------------------------- /test/fixtures/transform-content.css: -------------------------------------------------------------------------------- 1 | @import "foo" 2 | -------------------------------------------------------------------------------- /test/fixtures/transform-content.expected.css: -------------------------------------------------------------------------------- 1 | transformed-content {} 2 | -------------------------------------------------------------------------------- /test/fixtures/transform-undefined.css: -------------------------------------------------------------------------------- 1 | @import "foo" 2 | -------------------------------------------------------------------------------- /test/fixtures/transform-undefined.expected.css: -------------------------------------------------------------------------------- 1 | foo{} 2 | -------------------------------------------------------------------------------- /test/helpers/compare-fixtures.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/helpers/compare-fixtures.js -------------------------------------------------------------------------------- /test/import.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/import.js -------------------------------------------------------------------------------- /test/lint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/lint.js -------------------------------------------------------------------------------- /test/node_modules/auto/index.css: -------------------------------------------------------------------------------- 1 | .auto{} 2 | -------------------------------------------------------------------------------- /test/node_modules/by-hand/style.css: -------------------------------------------------------------------------------- 1 | .byHand{} 2 | -------------------------------------------------------------------------------- /test/node_modules/dep/index.css: -------------------------------------------------------------------------------- 1 | .dep{} 2 | -------------------------------------------------------------------------------- /test/node_modules/fake/main.css: -------------------------------------------------------------------------------- 1 | .fake{} 2 | -------------------------------------------------------------------------------- /test/node_modules/fake/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "style": "main.css" 3 | } 4 | -------------------------------------------------------------------------------- /test/node_modules/nest/index.css: -------------------------------------------------------------------------------- 1 | @import "ed"; 2 | -------------------------------------------------------------------------------- /test/node_modules/nest/node_modules/ed/index.css: -------------------------------------------------------------------------------- 1 | .nested{} 2 | -------------------------------------------------------------------------------- /test/node_modules/use-dep-too/index.css: -------------------------------------------------------------------------------- 1 | @import "dep"; 2 | -------------------------------------------------------------------------------- /test/node_modules/use-dep/index.css: -------------------------------------------------------------------------------- 1 | @import "dep"; 2 | -------------------------------------------------------------------------------- /test/order.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/order.js -------------------------------------------------------------------------------- /test/plugins.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/plugins.js -------------------------------------------------------------------------------- /test/resolve.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/resolve.js -------------------------------------------------------------------------------- /test/sourcemap/imported.css: -------------------------------------------------------------------------------- 1 | html { 2 | background: blue; 3 | } -------------------------------------------------------------------------------- /test/sourcemap/in.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/sourcemap/in.css -------------------------------------------------------------------------------- /test/sourcemap/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/sourcemap/index.html -------------------------------------------------------------------------------- /test/sourcemap/out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/sourcemap/out.css -------------------------------------------------------------------------------- /test/sourcemap/out.css.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/sourcemap/out.css.map -------------------------------------------------------------------------------- /test/transform.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastian-software/postcss-smart-import/HEAD/test/transform.js -------------------------------------------------------------------------------- /test/web_modules/web-auto/index.css: -------------------------------------------------------------------------------- 1 | .web-auto{} 2 | -------------------------------------------------------------------------------- /test/web_modules/web-by-hand/style.css: -------------------------------------------------------------------------------- 1 | .web-byHand{} 2 | -------------------------------------------------------------------------------- /test/web_modules/web-dep/index.css: -------------------------------------------------------------------------------- 1 | .web-dep{} 2 | -------------------------------------------------------------------------------- /test/web_modules/web-fake/main.css: -------------------------------------------------------------------------------- 1 | .web-fake{} 2 | -------------------------------------------------------------------------------- /test/web_modules/web-fake/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "style": "main.css" 3 | } 4 | -------------------------------------------------------------------------------- /test/web_modules/web-nest/index.css: -------------------------------------------------------------------------------- 1 | @import "web-ed"; 2 | -------------------------------------------------------------------------------- /test/web_modules/web-nest/web_modules/web-ed/index.css: -------------------------------------------------------------------------------- 1 | .web-nested{} 2 | -------------------------------------------------------------------------------- /test/web_modules/web-use-dep-too/index.css: -------------------------------------------------------------------------------- 1 | @import "web-dep"; 2 | -------------------------------------------------------------------------------- /test/web_modules/web-use-dep/index.css: -------------------------------------------------------------------------------- 1 | @import "web-dep"; 2 | --------------------------------------------------------------------------------