Skip to content

Commit

Permalink
Revert "add tailwind"
Browse files Browse the repository at this point in the history
This reverts commit 46632c5.
  • Loading branch information
adlk committed Dec 18, 2024
1 parent abdcd8d commit f194dd4
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 1,395 deletions.
27 changes: 11 additions & 16 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ import ts from 'gulp-typescript';
import hexRgb from 'hex-rgb';
import kebabCase from 'kebab-case';

// Tailwind & PostCSS
import autoprefixer from 'autoprefixer';
import postcss from 'gulp-postcss';
import tailwindcss from 'tailwindcss';

import config from './package.json';

import * as rawStyleConfig from './src/theme/default/legacy.js';
Expand All @@ -28,13 +23,7 @@ dotenv.config();

const styleConfig = Object.keys(rawStyleConfig).map((key) => {
const isHex = /^#[0-9A-F]{6}$/i.test(rawStyleConfig[key]);
return ({
[`$raw_${kebabCase(key)}`]: isHex
? hexRgb(rawStyleConfig[key], { format: 'array' })
.splice(0, 3)
.join(',')
: rawStyleConfig[key],
});
return ({ [`$raw_${kebabCase(key)}`]: isHex ? hexRgb(rawStyleConfig[key], { format: 'array' }).splice(0, 3).join(',') : rawStyleConfig[key] });
});

const paths = {
Expand All @@ -56,18 +45,25 @@ const paths = {
src: 'src/**/*.js',
dest: 'build/',
watch: [
// 'packages/**/*.js',
'src/**/*.js',
],
},
tsScripts: {
src: 'src/**/*.ts',
dest: 'build/',
watch: [
// 'packages/**/*.js',
'src/**/*.ts',
],
},
packages: {
watch: 'packages/**/*',
// dest: 'build/',
// watch: [
// // 'packages/**/*.js',
// 'src/**/*.js',
// ],
},
};

Expand All @@ -90,6 +86,7 @@ function _shell(cmd, cb) {
const clean = (done) => {
removeSync(paths.tmp);
removeSync(paths.dest);

done();
};
export { clean };
Expand All @@ -99,6 +96,7 @@ export function mvSrc() {
[
`${paths.src}/*`,
`${paths.src}/*/**`,
`!${paths.scripts.watch[1]}`,
`!${paths.src}/styles/**`,
`!${paths.src}/**/*.js`,
`!${paths.src}/**/*.ts`,
Expand Down Expand Up @@ -141,10 +139,6 @@ export function styles() {
'../node_modules',
],
}).on('error', sass.logError))
.pipe(postcss([
tailwindcss('./tailwind.config.js'),
autoprefixer(),
]))
.pipe(gulp.dest(paths.styles.dest));
}

Expand Down Expand Up @@ -175,6 +169,7 @@ export function watch() {
gulp.watch([
paths.src,
`${paths.scripts.src}`,
`${paths.scripts.src}`,
`${paths.styles.src}`,
], mvSrc);

Expand Down
Loading

0 comments on commit f194dd4

Please sign in to comment.