Yield generated for dbe41bfd-4e52-4cd1-b414-a84e6bb796d1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

104 lines
3.5 KiB

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`nbx add:tailwind should error if no react is found 1`] = `Array []`;
exports[`nbx add:tailwind should fail if no package.json found 1`] = `Array []`;
exports[`nbx add:tailwind should print help correctly 1`] = `
Array [
"add tailwindcss to a project
",
"USAGE
$ nbx add:tailwind
OPTIONS
-h, --help show CLI help
-v, --verbose Verbose output
--[no-]spinner Enable spinner in cli output, true by default",
"",
]
`;
exports[`nbx add:tailwind should work on a react application with commits 1`] = `
"const purgecss = require('@fullhuman/postcss-purgecss')({
content: ['./src/**/*.jsx', './src/**/*.js', './src/index.js', './public/index.html'],
css: ['./src/tailwind.css'],
// Include any special characters you're using in this regular expression
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [],
});
module.exports = {
plugins: [
require('tailwindcss')('./tailwind.config.js'),
require('autoprefixer'),
...(process.env.NODE_ENV === 'production' ? [purgecss] : []),
],
};
"
`;
exports[`nbx add:tailwind should work on a react application with commits 2`] = `
Array [
"Adding @fullhuman/postcss-purgecss as a dev dependency",
"The step was done without any error.",
"Adding autoprefixer as a dev dependency",
"The step was done without any error.",
"Adding npm-run-all as a dev dependency",
"The step was done without any error.",
"Adding postcss-cli as a dev dependency",
"The step was done without any error.",
"Adding tailwindcss as a dependency",
"The step was done without any error.",
"Generating tailwind initial config",
"The step was done without any error.",
"Generating postcss",
"The step was done without any error.",
"Generating tailwind full css",
"The step was done without any error.",
"Adding package.json scripts",
"The step was done without any error.",
"Adding full tailwind css to .gitignore",
"The step was done without any error.",
]
`;
exports[`nbx add:tailwind should work on a react application without commits 1`] = `
"const purgecss = require('@fullhuman/postcss-purgecss')({
content: ['./src/**/*.jsx', './src/**/*.js', './src/index.js', './public/index.html'],
css: ['./src/tailwind.css'],
// Include any special characters you're using in this regular expression
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [],
});
module.exports = {
plugins: [
require('tailwindcss')('./tailwind.config.js'),
require('autoprefixer'),
...(process.env.NODE_ENV === 'production' ? [purgecss] : []),
],
};
"
`;
exports[`nbx add:tailwind should work on a react application without commits 2`] = `
Array [
"Adding @fullhuman/postcss-purgecss as a dev dependency",
"The step was done without any error.",
"Adding autoprefixer as a dev dependency",
"The step was done without any error.",
"Adding npm-run-all as a dev dependency",
"The step was done without any error.",
"Adding postcss-cli as a dev dependency",
"The step was done without any error.",
"Adding tailwindcss as a dependency",
"The step was done without any error.",
"Generating tailwind initial config",
"The step was done without any error.",
"Generating postcss",
"The step was done without any error.",
"Generating tailwind full css",
"The step was done without any error.",
"Adding package.json scripts",
"The step was done without any error.",
"Adding full tailwind css to .gitignore",
"The step was done without any error.",
]
`;