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|lx)dim*h&GqWm|{WvZ*Wx^Axy_(H*|%8CZRSu(t)POrri3f8qJ9<_(pZSE1)
S_ydk5nhF2_0a7dP4FCXcq^%MF
diff --git a/src/__tests__/fixtures/url/assets/pixel.gif b/src/__tests__/fixtures/url/assets/pixel.gif
deleted file mode 100644
index 46a2cf086ca4829b2afacec093d4562ec6c16f59..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 67
zcmZ?wbhEHbWMp7unE0RJ|Ns9C3{X<>KewZczmuz#XON+u0n@#=42nNl7#SFt7<7PY
Nfa*bPrVvI3YXHjL5YGSr
diff --git a/src/__tests__/fixtures/url/dep.css b/src/__tests__/fixtures/url/dep.css
deleted file mode 100644
index e9081db..0000000
--- a/src/__tests__/fixtures/url/dep.css
+++ /dev/null
@@ -1,6 +0,0 @@
-@font-face {
- src: url('./assets/font.woff?v3#dontcare')
-}
-body {
- background: url('./assets/pixel.gif')
-}
diff --git a/src/__tests__/index.js b/src/__tests__/index.js
new file mode 100644
index 0000000..d2b8a4c
--- /dev/null
+++ b/src/__tests__/index.js
@@ -0,0 +1,12 @@
+import tape from "tape"
+
+import postcssnext from ".."
+
+tape("postcss-cssnext is a postcss plugin", (t) => {
+ t.ok(
+ typeof postcssnext.process === "function",
+ "should have the postcss process() function available"
+ )
+
+ t.end()
+})
diff --git a/src/__tests__/messages/index.js b/src/__tests__/messages/index.js
deleted file mode 100644
index a9126bf..0000000
--- a/src/__tests__/messages/index.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import fs from "fs"
-import path from "path"
-
-import opn from "opn"
-
-import cssnext from "../.."
-
-console.log("# cssnext renderering test for messages styles")
-
-const msg = "This is a test message"
-const page = path.join("dist", "__tests__styles.html")
-
-const css = cssnext(
- `
-@import url(http://)
-:root {
- --var: test;
-}
-@custom-selector --h h1, h2;
-body {
- color: var(--test);
-}
- `,
- {
- plugins: [
- (styles, result) => {
- result.warn(msg)
- },
- ],
- messages: {
- browser: true,
- },
- }
-)
-
-fs.writeFileSync(
- page,
- `
-cssnext message rendering test
-`,
-)
-
-opn(page)
diff --git a/src/__tests__/option.browsers.js b/src/__tests__/option.browsers.js
deleted file mode 100644
index 5d6e98a..0000000
--- a/src/__tests__/option.browsers.js
+++ /dev/null
@@ -1,65 +0,0 @@
-const test = require("tape")
-
-const cssnext = require("..")
-
-test("cssnext browsers option", function(t) {
-
- // no recent browser need pixrem
- const remInput = "body{font-size:2rem}"
- t.equal(
- cssnext(
- remInput,
- {browsers: "last 1 version"}
- ),
- remInput,
- "should not enable px fallback when all browsers support it"
- )
-
- const customPropsInput = ":root{--foo:bar}baz{qux:var(--foo)}"
- const customPropsOutput = "baz{qux: bar}"
-
- // fx 30 doesn't handle custom prop
- t.equal(
- cssnext(customPropsInput, {browsers: "Firefox >= 30"}),
- customPropsOutput,
- "should enable custom properties when browsers do not support it"
- )
-
- // fx 31 handle custom prop
- t.equal(
- cssnext(customPropsInput, {browsers: "Firefox >= 31"}),
- customPropsInput,
- "should NOT enable custom properties when browsers support it"
- )
-
- // fx 31 support but not IE 8
- t.equal(
- cssnext(customPropsInput, {browsers: "Firefox >= 31, IE 8"}),
- customPropsOutput,
- "should enable custom properties when at least one browsers do not " +
- "support it"
- )
-
- t.end()
-})
-
-test("cssnext browsers option propagation", function(t) {
- const input = "body{transition: 1s}"
- const output = "body{-webkit-transition: 1s;transition: 1s}"
-
- // Safari 6 need -webkit prefix
- t.equal(
- cssnext(input, {browsers: "Safari 6"}),
- output,
- "should propagate browsers option to autoprefixer"
- )
-
- // Safari 6.1 do not need -webkit prefix
- t.equal(
- cssnext(input, {browsers: "Safari 6.1"}),
- input,
- "should propagate browsers option to autoprefixer"
- )
-
- t.end()
-})
diff --git a/src/__tests__/option.compress.js b/src/__tests__/option.compress.js
deleted file mode 100644
index f86ec36..0000000
--- a/src/__tests__/option.compress.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * Test dependencies
- */
-const test = require("tape")
-
-const utils = require("./utils")
-const cssnext = require("..")
-const postcss = require("postcss")
-
-test("cssnext compress option", function(t) {
- const input = utils.readFixture("compress")
- const expected = {
- default: utils.readFixture("compress.default.expected").trim(),
- options: utils.readFixture("compress.options.expected").trim(),
- }
-
- t.equal(
- cssnext(
- input,
- {
- compress: true,
- }
- ).trim(),
- expected.default,
- "should be able to compress"
- )
- t.equal(
- cssnext(
- input,
- {
- compress: {
- colormin: false,
- },
- }
- ).trim(),
- expected.options,
- "should be able to compress with options"
- )
- t.equal(
- postcss().use(
- cssnext({
- compress: true,
- })
- ).process(input).css.trim(),
- expected.default,
- "should be able to compress even as a postcss plugin"
- )
-
- t.end()
-})
diff --git a/src/__tests__/option.features.js b/src/__tests__/option.features.js
deleted file mode 100644
index 7f7226a..0000000
--- a/src/__tests__/option.features.js
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * Test dependencies
- */
-const test = require("tape")
-
-const utils = require("./utils")
-const cssnext = require("..")
-const cssnextStandalone = require("../cssnext")
-
-/**
- * Features tests
- */
-const toSlug = require("to-slug-case")
-const testFeature = function(
- t,
- feature,
- cssnextInstance,
- version,
- source,
- input,
- expected
-) {
- const options = {from: source, sourcemap: false, features: {}}
-
- // disable all features
- Object.keys(cssnextInstance.features).forEach(function(key) {
- options.features[key] = false
- })
-
- const css = cssnextInstance(input, options)
- t.notEqual(
- css,
- expected,
- version + ": should not add " + feature + " support if disabled"
- )
- t.equal(
- css,
- input,
- version + ": should not modify input if " + feature + " is disabled"
- )
-
- // enable only the one we want to test...
- options.features[feature] = true
-
- // ...except "url" because we want to validate its behaviour when integrated
- // with "import"
- if (feature === "url") {
- options.features.import = true
- }
- t.equal(
- cssnextInstance(input, options).trim(),
- expected.trim(),
- version + ": should add " + feature + " support"
- )
-}
-
-Object.keys(cssnext.features).forEach(function(name) {
- const slug = toSlug(name)
- const source = utils.fixturePath("features/" + slug)
- const input = utils.readFixture("features/" + slug)
- const expected = utils.readFixture("features/" + slug + ".expected")
-
- test(slug, function(t) {
- testFeature(t, name, cssnext, "node.js", source, input, expected)
-
- // we do not support @import or url rewriting in the browser
- if (name === "import" || name === "url") {
- t.end()
- return
- }
-
- testFeature(t, name, cssnextStandalone, "browser", source, input, expected)
-
- t.end()
- })
-})
diff --git a/src/__tests__/option.import.js b/src/__tests__/option.import.js
deleted file mode 100644
index f0ea2ad..0000000
--- a/src/__tests__/option.import.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * Test dependencies
- */
-const test = require("tape")
-
-const utils = require("./utils")
-const cssnext = require("..")
-const postcss = require("postcss")
-
-test("cssnext import option", function(t) {
- const input = utils.readFixture("import")
- const expected = {
- default: utils.readFixture("import.default.expected").trim(),
- options: utils.readFixture("import.options.expected").trim(),
- }
- const opts = {from: "src/__tests__/fixtures/here"}
- function transformFn(c) {
- return c + "\n new {}"
- }
- t.equal(
- cssnext(input, opts).trim(),
- expected.default,
- "should be able to import"
- )
- t.equal(
- cssnext(input, {
- from: opts.from,
- import: {
- transform: transformFn,
- },
- }).trim(),
- expected.options,
- "should be able to import with options"
- )
- t.equal(
- postcss().use(cssnext()).process(input, opts).css.trim(),
- expected.default,
- "should be able to import even as a postcss plugin"
- )
- const importOpt = {
- transform: transformFn,
- }
- Object.freeze(importOpt)
- t.doesNotThrow(function() {
- cssnext(input, {
- from: opts.from,
- import: importOpt,
- }).trim()
- },
- expected.options,
- "should not use original object as option"
- )
- t.end()
-})
diff --git a/src/__tests__/option.messages.js b/src/__tests__/option.messages.js
deleted file mode 100644
index 6170c0e..0000000
--- a/src/__tests__/option.messages.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import test from "tape"
-
-import cssnext from ".."
-
-test("cssnext option: messages", (t) => {
-
- const msg = "This is a message"
- const defaultOptions = {
- plugins: [
- (styles, result) => {
- result.warn(msg)
- },
- ],
- messages: true,
- }
-
- t.equal(
- cssnext({
- ...defaultOptions,
- messages: false,
- })
- .process("test{}")
- .warnings()[0].text,
- msg,
- "should pass messages if messages option is off"
- )
-
- t.ok(
- cssnext({
- ...defaultOptions,
- messages: {
- browser: true,
- },
- })
- .process("test{}")
- .css
- .indexOf(`${ msg }`) > -1
- ,
- "should add messages in css"
- )
-
- t.ok(
- cssnext({
- ...defaultOptions,
- messages: {
- browser: false,
- },
- })
- .process("test{}")
- .css
- .indexOf(`content: "${ msg }"`) === -1
- ,
- "should not add messages in css if key is === false"
- )
-
- t.ok(
- cssnext({
- ...defaultOptions,
- messages: {},
- })
- .process("test{}")
- .css
- .indexOf(`content: "${ msg }"`) === -1
- ,
- "should not add messages in css if key is not present"
- )
-
- // we should do the same for "console" value, but we need to test stdout
- // and I am lazy atm. Finger crossed.
- // t.ok(
- // cssnext({
- // ...defaultOptions,
- // messages: {
- // console: true,
- // },
- // })
- // .process("test{}")
- // .css
- // ,
- // "should show messages in the console"
- // )
-
- t.end()
-})
diff --git a/src/__tests__/option.plugins.js b/src/__tests__/option.plugins.js
deleted file mode 100644
index 6409b6c..0000000
--- a/src/__tests__/option.plugins.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import test from "tape"
-
-import cssnext from ".."
-
-test("cssnext option: plugins", (t) => {
-
- t.equal(
- cssnext(
- ":root{} @notOk",
- {
- plugins: [
- styles => {
- styles.eachAtRule(atRule => {
- atRule.name = "ok"
- })
- },
- ],
- }
- ),
- "@ok",
- "should allow to add custom plugins"
- )
-
- t.end()
-})
diff --git a/src/__tests__/option.sourcemap.js b/src/__tests__/option.sourcemap.js
deleted file mode 100644
index 9cc256c..0000000
--- a/src/__tests__/option.sourcemap.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Test dependencies
- */
-const test = require("tape")
-
-const utils = require("./utils")
-const cssnext = require("..")
-
-/**
- * Sourcemap tests
- */
-test("sourcemap", function(t) {
- const options = {
- from: "./src/__tests__/fixtures/sourcemap.css",
- sourcemap: true,
- }
- t.ok(
- cssnext(
- utils.readFixture("sourcemap"),
- options
- )
- .indexOf("/*# sourceMappingURL=data:application/json;base64,")
- > -1,
- "should contain a correct inlined sourcemap"
- )
-
- const result = cssnext(
- utils.readFixture("sourcemap"),
- {
- from: "./src/__tests__/fixtures/sourcemap.css",
- map: {inline: false},
- }
- )
-
- t.ok(
- /* eslint-disable max-len */
- result.map.toString()
- .indexOf(utils.readFixture("sourcemap.expected-start", "").trim())
- > -1
- ,
- /* eslint-enable max-len */
- "should contain a correct sourcemap"
- )
-
- t.end()
-})
diff --git a/src/__tests__/option.url.js b/src/__tests__/option.url.js
deleted file mode 100644
index c65d39c..0000000
--- a/src/__tests__/option.url.js
+++ /dev/null
@@ -1,32 +0,0 @@
-const test = require("tape")
-
-const utils = require("./utils")
-const cssnext = require("..")
-const postcss = require("postcss")
-
-test("cssnext url option", function(t) {
- const input = utils.readFixture("url")
- const expected = {
- default: utils.readFixture("url.default.expected").trim(),
- options: utils.readFixture("url.options.expected").trim(),
- }
- const opts = {from: "./src/__tests__/fixtures/url.css"}
-
- t.equal(
- cssnext(input, opts).trim(),
- expected.default,
- "should be able to adjust url"
- )
- t.equal(
- cssnext(input, {...opts, url: {url: "inline"}}).trim(),
- expected.options,
- "should be able to adjust url with options"
- )
- t.equal(
- postcss().use(cssnext(opts)).process(input, opts).css.trim(),
- expected.default,
- "should be able to adjust url even as a postcss plugin"
- )
-
- t.end()
-})
diff --git a/src/__tests__/prevent-webpack-usage.js b/src/__tests__/prevent-webpack-usage.js
deleted file mode 100644
index 5d39910..0000000
--- a/src/__tests__/prevent-webpack-usage.js
+++ /dev/null
@@ -1,51 +0,0 @@
-const test = require("tape")
-
-import {join as joinPath, dirname} from "path"
-
-import webpack from "webpack"
-
-test("cssnext-loader recommendation", function(t) {
- webpack(
- {
- entry: {
- "prevent-webpack-usage": [
- // we don't care about what file is being used
- // because this should throw an error before the input being used
- "./package.json",
- ],
- },
- output: {
- // we don't care about the output...
- path: "./dist/__tests__/",
- filename: "prevent-webpack-usage.tmp-webpack-bundle.js",
- },
- module: {
- loaders: [
- {
- test: /\.json$/,
- // use directly cssnext index.js
- loader: joinPath(dirname(__filename), "..", "index.js"),
- },
- ],
- },
- },
- (err, stats) => {
- if (err) {
- throw err
- }
-
- if (!stats.hasErrors()) {
- t.fail(
- "doesn't throw an error if cssnext is used directly as webpack loader"
- )
- }
- else {
- t.ok(
- stats.compilation.errors[0].message.indexOf("cssnext-loader") > -1,
- "should recommand cssnext-loader"
- )
- }
-
- t.end()
- })
-})
diff --git a/src/__tests__/utils/index.js b/src/__tests__/utils/index.js
deleted file mode 100644
index 20ec7cf..0000000
--- a/src/__tests__/utils/index.js
+++ /dev/null
@@ -1,95 +0,0 @@
-/**
- * Module dependencies
- */
-const fs = require("fs")
-const cssnext = require("../..")
-
-/**
- * Check if a string is contained into another
- *
- * @param {String} string string to look into
- * @param {String} piece string to find
- * @return {Boolean} returns true if piece is contained in string
- */
-function contains(string, piece) {
- return Boolean(string.indexOf(piece) + 1)
-}
-
-/**
- * get fixture path
- * @param {String} name
- * @param {String} ext (optional extension, default to ".css")
- * @return the fixture filename
-*/
-function fixturePath(name, ext) {
- ext = (ext !== undefined ? ext : ".css")
- return "src/__tests__/fixtures/" + name + ext
-}
-
-/**
- * Remove a fixture by `filename`.
- *
- * @param {String} filename
- */
-function remove(filename) {
- const file = fixturePath(filename)
- if (!fs.existsSync(file)) {
- return
- }
- fs.unlinkSync(file)
-}
-
-/**
- * read a fixture
- * @param {String} name
- * @param {String} ext (optional extension, default to ".css")
- * @return the fixture content
- */
-function readFixture(name, ext) {
- return fs.readFileSync(fixturePath(name, ext), "utf8")
-}
-
-/**
- * compare fixtures input with expected output
- * @param {Object} t tape test helper
- * @param {String} name eg: "cases/color"
- * @param {String} message message for tape helper
- * @param {Object|Function} options cssnext options
- */
-function compareFixtures(t, name, message, options) {
- let actual
- if (typeof options === "function") {
- actual = options(readFixture(name))
- }
- else {
- options = options || {}
- options.from = fixturePath(name)
- actual = cssnext(readFixture(name), options)
- }
-
- // handy thing: checkout actual in the *.actual.css file
- fs.writeFile(fixturePath(name + ".actual"), actual)
-
- const expected = readFixture(name + ".expected")
-
- return t.equal(
- actual.trim(),
- expected.trim(),
- message !== undefined
- ? message
- : "processed fixture '" + name + "' should be equal to expected output"
- )
-}
-
-/**
- * Exposes functions
- *
- * @type {Object}
- */
-module.exports = {
- contains: contains,
- remove: remove,
- compareFixtures: compareFixtures,
- fixturePath: fixturePath,
- readFixture: readFixture,
-}
diff --git a/src/__tests__/utils/isBabel.js b/src/__tests__/utils/isBabel.js
deleted file mode 100644
index e0b5f89..0000000
--- a/src/__tests__/utils/isBabel.js
+++ /dev/null
@@ -1 +0,0 @@
-export default typeof _babelPolyfill !== "undefined" && _babelPolyfill === true
diff --git a/src/bin.js b/src/bin.js
deleted file mode 100755
index 9d8c626..0000000
--- a/src/bin.js
+++ /dev/null
@@ -1,224 +0,0 @@
-#!/usr/bin/env node
-
-import fs from "fs"
-import path from "path"
-
-// until this land in a stable version of node (for a while)
-// https://github.com/joyent/node/commit/20176a
-// we will this instead of process.exit()
-import exit from "exit"
-
-import mkdirp from "mkdirp"
-import color from "chalk"
-import program from "commander"
-
-import cssnext from ".."
-import pkg from "../package"
-
-program
- .version(pkg.version)
- .usage("[options] [ [ |