const paths = require('./paths');
const fs = require('fs-extra');
const glob = require('glob');

/**
 * Build the breakpoint
 *
 * @param {*} breakpoint
 * @param {*} count
 */
function buildBreakpoint(breakpoint, count) {
	let html = `html { font-family: '${count}'; }`;

	return `@${breakpoint} { ${html} }\n`;
}

module.exports = breakpoints => {
	let count = 2,
		result = '';

	for (let breakpoint in breakpoints) {
		result += buildBreakpoint(breakpoint, count);
		count++;
	}

	fs.mkdirsSync(paths.temp);

	fs.writeFileSync(paths.temp + '/responsive.scss', result);
};

const paths = require('./paths');
const fs = require('fs-extra');
const glob = require('glob');

/**
 * Build the breakpoint
 *
 * @param {*} breakpoint
 * @param {*} count
 */
function buildBreakpoint(breakpoint, count) {
	let html = `html { font-family: '${count}'; }`;

	return `@${breakpoint} { ${html} }\n`;
}

module.exports = breakpoints => {
	let count = 2,
		result = '/* stylelint-disable */\n\n';

	for (let breakpoint in breakpoints) {
		result += buildBreakpoint(breakpoint, count);
		count++;
	}

	fs.mkdirsSync(paths.temp);

	fs.writeFileSync(paths.temp + '/responsive.scss', result);
};

Disable linting for generated file
Disable linting for generated file
