Skip to content

Commit

Permalink
fix: cleanup /src file structure and npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Apr 29, 2021
1 parent 2ff947d commit 6a4c2dd
Show file tree
Hide file tree
Showing 60 changed files with 15 additions and 83 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var daisyuiInfo = require('./package.json')

const base = require("./dist/base.js")
const baseRtl = require("./dist/base.rtl.js")
const styled = require("./dist/styled.js")
const styledRtl = require("./dist/styled.rtl.js")
const base = require("./dist/base")
const baseRtl = require("./dist/base.rtl")
const styled = require("./dist/styled")
const styledRtl = require("./dist/styled.rtl")
const colors = require("./colors/index")
const resets_general = require('./dist/resets/general')
const themes = require("./dist/themes")
Expand Down
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"typings": "index.js",
"files": [
"dist",
"!dist/components",
"index.js",
"colors"
],
Expand Down Expand Up @@ -71,12 +72,15 @@
"tailwindcss": "^2.0.1"
},
"scripts": {
"prestyle": "prejss-cli src/resets/*.css --out-dir dist/resets --format commonjs && prejss-cli src/utilities/*.css --out-dir dist/utilities --format commonjs",
"style": "postcss src/base/index.css -o dist/base.css && postcss src/styled/index.css -o dist/styled.css && postcss src/full/index.css -o dist/full.css && postcss src/themes/index.css -o dist/themes.css",
"poststyle": "prejss-cli dist/base.css --format commonjs && prejss-cli dist/styled.css --format commonjs && prejss-cli dist/themes.css --format commonjs",
"utilities": "prejss-cli src/resets/*.css --out-dir dist/resets --format commonjs && prejss-cli src/utilities/*.css --out-dir dist/utilities --format commonjs",
"components": "postcss src/{components,themes}/**/*.css --base src --dir dist",
"base": "cat dist/components/base/*.css > dist/base.css",
"styled": "cat dist/components/base/*.css dist/components/styled/*.css > dist/styled.css",
"themes": "cat dist/themes/*.css > dist/themes.css",
"rtl": "rtlcss dist/base.css -s && rtlcss dist/styled.css -s",
"postrtl": "prejss-cli dist/base.rtl.css --format commonjs && prejss-cli dist/styled.rtl.css --format commonjs",
"build": "npm run style && npm run rtl",
"add": "touch src/base/components/$npm_config_name.css && touch src/styled/components/$npm_config_name.css && echo '@import \"./components/'$npm_config_name'\";' >> src/base/index.css && echo '@import \"./components/'$npm_config_name'\";' >> src/styled/index.css && open src/base/components/$npm_config_name.css && open src/styled/components/$npm_config_name.css"
"prejss": "prejss-cli dist/{{base,styled}{,.rtl},themes}.css --format commonjs",
"full": "postcss src/full/index.css -o dist/full.css",
"build": "npm run utilities && npm run components && npm run base && npm run styled && npm run themes && npm run rtl && npm run prejss && npm run full",
"add": "touch src/components/base/$npm_config_name.css && touch src/components/styled/$npm_config_name.css && open src/components/base/$npm_config_name.css && open src/components/styled/$npm_config_name.css"
}
}
27 changes: 0 additions & 27 deletions src/base/index.css

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/full/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "./../styled/index";
@import "./../../dist/styled";
@import "tailwindcss/utilities";

28 changes: 0 additions & 28 deletions src/styled/index.css

This file was deleted.

17 changes: 0 additions & 17 deletions src/themes/index.css

This file was deleted.

0 comments on commit 6a4c2dd

Please sign in to comment.