cosmic-ui-alpha
Advanced tools
Comparing version 0.0.63 to 0.0.64
{ | ||
"name": "cosmic-ui-alpha", | ||
"version": "0.0.63", | ||
"version": "0.0.64", | ||
"main": "./dist/index.umd.js", | ||
@@ -21,2 +21,3 @@ "module": "./dist/index.es.js", | ||
"devDependencies": { | ||
"clean-css": "~5.3.2", | ||
"cosmic-util": "^0.0.12", | ||
@@ -23,0 +24,0 @@ "rimraf": "^3.0.2", |
const { join } = require('path'); | ||
const { readFileSync, writeFileSync } = require('fs'); | ||
const { minify } = require('csso'); | ||
// const { minify } = require('csso'); | ||
const CleanCss = require('clean-css'); | ||
const clean = new CleanCss({ | ||
format: { | ||
semicolonAfterLastProperty: true | ||
} | ||
}); | ||
const minify = clean.minify.bind(clean); | ||
const utilities = readFileSync(join(__dirname, '..', 'dist', 'utilities-unminify.css')).toString(); | ||
@@ -12,11 +20,12 @@ const variables = readFileSync(join(__dirname, '../css', 'variables.css')).toString(); | ||
writeFileSync(join(__dirname, '..', 'dist', 'utilities.css'), minify(utilities).css); | ||
writeFileSync(join(__dirname, '..', 'dist', 'variables.css'), minify(variables).css); | ||
writeFileSync(join(__dirname, '..', 'dist', 'ui.css'), minify(variables + '\n' + newCSS + '\n' + utilities).css); | ||
writeFileSync(join(__dirname, '..', 'dist', 'style.css'), minify(newCSS).css); | ||
writeFileSync(join(__dirname, '..', 'dist', 'component-classes.css'), minify(variantClasses).css); | ||
writeFileSync(join(__dirname, '..', 'dist', 'component-styles.css'), minify(styleCSS).css); | ||
writeFileSync(join(__dirname, '..', 'dist', 'utilities.css'), minify(utilities).styles); | ||
writeFileSync(join(__dirname, '..', 'dist', 'variables.css'), minify(variables).styles); | ||
writeFileSync(join(__dirname, '..', 'dist', 'ui.css'), minify(variables + '\n' + newCSS + '\n' + utilities).styles); | ||
writeFileSync(join(__dirname, '..', 'dist', 'style.css'), minify(newCSS).styles); | ||
// writeFileSync(join(__dirname, '..', 'dist', 'style.css'), newCSS); | ||
writeFileSync(join(__dirname, '..', 'dist', 'component-classes.css'), minify(variantClasses).styles); | ||
writeFileSync(join(__dirname, '..', 'dist', 'component-styles.css'), minify(styleCSS).styles); | ||
const darkVariables = readFileSync(join(__dirname, '../css', 'variables-dark.css')).toString(); | ||
writeFileSync(join(__dirname, '..', 'dist', 'variables-dark.css'), minify(darkVariables).css); | ||
writeFileSync(join(__dirname, '..', 'dist', 'variables-dark.css'), minify(darkVariables).styles); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
294919
5771
4
109