Comparing version 0.0.1-alpha3 to 0.0.1-alpha4
@@ -9,7 +9,11 @@ const { src, dest, watch, series, parallel } = require('gulp') | ||
const dist = { | ||
css: './dist/', | ||
js: './dist/', | ||
} | ||
const header = `@charset "UTF-8"; | ||
/*! | ||
* Alga CSS | ||
* Tedir Ghazali | ||
* licensed under Tedir license | ||
*/ | ||
`; | ||
function css() { | ||
@@ -25,49 +29,24 @@ return src('css/app.css', { sourcemaps: true }) | ||
require('postcss-custom-properties'), | ||
require('postcss-simple-vars'), | ||
//require('postcss-simple-vars'), | ||
require('postcss-nested'), | ||
require('autoprefixer') | ||
require('autoprefixer'), | ||
require('postcss-header')({ header }) | ||
])) | ||
.pipe(rename("alga.css")) | ||
.pipe(dest(dist.css, { sourcemaps: '.' })) | ||
.pipe(dest('./dist/', { sourcemaps: '.' })) | ||
} | ||
function cssMin() { | ||
return src(`${dist.css}alga.css`) | ||
return src('dist/alga.css') | ||
.pipe(cleanCSS({ level: { 1: { specialComments: 0 } } })) | ||
.pipe(rename({ suffix: '.min' })) | ||
.pipe(dest(dist.css)) | ||
.pipe(dest('./dist/')) | ||
} | ||
function cssSlim() { | ||
return src('css/slim.css', { sourcemaps: true }) | ||
.pipe(postcss([ | ||
require('postcss-import'), | ||
require('postcss-mixins')({ | ||
mixinsDir: path.join(__dirname, 'css/mixins') | ||
}), | ||
require('tailwindcss'), | ||
//require("stylelint"), | ||
require('postcss-custom-properties'), | ||
require('postcss-simple-vars'), | ||
require('postcss-nested'), | ||
require('autoprefixer') | ||
])) | ||
.pipe(rename("alga-slim.css")) | ||
.pipe(dest(dist.css, { sourcemaps: '.' })) | ||
} | ||
function cssSlimMin() { | ||
return src(`${dist.css}alga-slim.css`) | ||
.pipe(cleanCSS({ level: { 1: { specialComments: 0 } } })) | ||
.pipe(rename({ suffix: '.min' })) | ||
.pipe(dest(dist.css)) | ||
} | ||
function watchChanges() { | ||
watch('css/app.css', series(css, cssMin)) | ||
watch('css/slim.css', series(cssSlim, cssSlimMin)) | ||
} | ||
exports.watch = watchChanges | ||
exports.build = series(css, cssMin, cssSlim, cssSlimMin) | ||
exports.default = series(css, cssMin, cssSlim, cssSlimMin) //watchChanges | ||
exports.build = series(css, cssMin) | ||
exports.default = series(css, cssMin) //watchChanges |
{ | ||
"name": "alga-css", | ||
"version": "0.0.1-alpha3", | ||
"version": "0.0.1-alpha4", | ||
"description": "Alga CSS is an alternative toolkit based on Tailwind CSS and Bootstrap 5", | ||
@@ -8,3 +8,4 @@ "main": "dist/alga.min.css", | ||
"scripts": { | ||
"test": "gulp" | ||
"build": "gulp", | ||
"lint": "npx stylelint 'dist/*.css'" | ||
}, | ||
@@ -39,2 +40,3 @@ "repository": { | ||
"postcss-custom-properties": "^10.0.0", | ||
"postcss-header": "^3.0.1", | ||
"postcss-import": "^13.0.0", | ||
@@ -45,4 +47,8 @@ "postcss-mixins": "^7.0.2", | ||
"stylelint": "^13.8.0", | ||
"stylelint-config-standard": "^20.0.0", | ||
"tailwindcss": "^2.0.1" | ||
}, | ||
"dependencies": { | ||
"postcss-selector-parser": "^6.0.4" | ||
} | ||
} |
@@ -0,2 +1,9 @@ | ||
<p align="center"> | ||
<a href="https://tedirghazali.gitbook.io" target="_blank" rel="noopener noreferrer"> | ||
<img width="180" src="alga-css-logo.png" alt="Alga CSS logo"> | ||
</a> | ||
</p> | ||
<br/> | ||
# Alga CSS (formerly tailstrap) | ||
Alga CSS is an alternative toolkit based on Tailwind CSS and Bootstrap 5 classes. This is not a framework but just CSS for my Vue components |
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
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
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
88
10
6772493
1
18
110886
+ Addedcssesc@3.0.0(transitive)
+ Addedpostcss-selector-parser@6.1.2(transitive)
+ Addedutil-deprecate@1.0.2(transitive)