-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from jtiala/publish-each-components-css
Publish each component's css as it's own file
- Loading branch information
Showing
19 changed files
with
49 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,31 +14,18 @@ | |
"url": "https://github.com/jtiala/themeless-ui", | ||
"directory": "packages/style" | ||
}, | ||
"type": "module", | ||
"module": "./dist/index.js", | ||
"main": "./dist/index.umd.cjs", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.umd.cjs" | ||
} | ||
}, | ||
"files": [ | ||
"dist", | ||
"CHANGELOG.md" | ||
], | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "vite build", | ||
"lint": "pnpm run lint:tsc && pnpm run lint:eslint && pnpm run lint:stylelint", | ||
"lint:report": "pnpm run lint:tsc:report && pnpm run lint:eslint:report && pnpm run lint:stylelint:report", | ||
"lint:fix": "pnpm run lint:eslint:fix && pnpm run lint:stylelint:fix", | ||
"lint": "pnpm run lint:tsc && pnpm run lint:stylelint", | ||
"lint:report": "pnpm run lint:tsc:report && pnpm run lint:stylelint:report", | ||
"lint:fix": "pnpm run lint:stylelint:fix", | ||
"lint:tsc": "tsc", | ||
"lint:tsc:report": "mkdir -p ./reports && tsc > ./reports/lint-report-tsc.txt", | ||
"lint:eslint": "eslint \"**/*.{ts,tsx}\"", | ||
"lint:eslint:report": "eslint -f json -o ./reports/lint-report-eslint.json \"**/*.{ts,tsx}\"", | ||
"lint:eslint:fix": "eslint --fix \"**/*.{ts,tsx}\"", | ||
"lint:stylelint": "stylelint \"**/*.css\"", | ||
"lint:stylelint:report": "stylelint -f json -o ./reports/lint-report-stylelint.json \"**/*.css\"", | ||
"lint:stylelint:fix": "stylelint \"**/*.css\" --fix", | ||
|
@@ -49,10 +36,8 @@ | |
"@themeless-ui/theme-default": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@themeless-ui/eslint-config": "workspace:*", | ||
"@themeless-ui/stylelint-config": "workspace:*", | ||
"@themeless-ui/typescript-config": "workspace:*", | ||
"eslint": "8.50.0", | ||
"stylelint": "15.10.3", | ||
"typescript": "5.2.2", | ||
"vite": "4.4.9" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@import "./components/anchor.css"; | ||
@import "./components/blockquote.css"; | ||
@import "./components/button.css"; | ||
@import "./components/heading.css"; | ||
@import "./components/input.css"; | ||
@import "./components/list.css"; | ||
@import "./components/paragraph.css"; | ||
@import "./components/stack.css"; | ||
@import "./components/text.css"; | ||
@import "./components/textarea.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,3 @@ | ||
/* Default theme */ | ||
@import "../node_modules/@themeless-ui/theme-default/dist/theme-default.css"; | ||
|
||
/* Tokens */ | ||
@import "./tokens/spacing.css"; | ||
@import "./tokens/typography.css"; | ||
@import "./tokens/colors.css"; | ||
|
||
/* Components */ | ||
@import "./components/anchor.css"; | ||
@import "./components/blockquote.css"; | ||
@import "./components/button.css"; | ||
@import "./components/heading.css"; | ||
@import "./components/input.css"; | ||
@import "./components/list.css"; | ||
@import "./components/paragraph.css"; | ||
@import "./components/stack.css"; | ||
@import "./components/text.css"; | ||
@import "./components/textarea.css"; | ||
@import "./tokens.css"; | ||
@import "./components.css"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@import "./tokens/spacing.css"; | ||
@import "./tokens/typography.css"; | ||
@import "./tokens/colors.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"extends": "@themeless-ui/typescript-config/vite-react.json", | ||
"include": ["src"] | ||
"extends": "@themeless-ui/typescript-config/vite-react.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
/// <reference types="vite/client" /> | ||
|
||
import fs from "fs"; | ||
import { defineConfig } from "vite"; | ||
|
||
const componentsDirectory = "./src/components"; | ||
const componentInputs = fs | ||
.readdirSync(componentsDirectory) | ||
.map((file) => `${componentsDirectory}/${file}`); | ||
|
||
const tokensDirectory = "./src/tokens"; | ||
const tokenInputs = fs | ||
.readdirSync(tokensDirectory) | ||
.map((file) => `${tokensDirectory}/${file}`); | ||
|
||
const otherInputs = ["src/index.css", "src/tokens.css", "src/components.css"]; | ||
|
||
export default defineConfig({ | ||
build: { | ||
lib: { | ||
entry: "src/index.ts", | ||
name: "style", | ||
fileName: "index", | ||
rollupOptions: { | ||
input: [...componentInputs, ...tokenInputs, ...otherInputs], | ||
output: { | ||
assetFileNames: () => { | ||
return "[name].[ext]"; | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,42 +14,27 @@ | |
"url": "https://github.com/jtiala/themeless-ui", | ||
"directory": "packages/theme-default" | ||
}, | ||
"type": "module", | ||
"module": "./dist/index.js", | ||
"main": "./dist/index.umd.cjs", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.umd.cjs" | ||
} | ||
}, | ||
"files": [ | ||
"dist", | ||
"CHANGELOG.md" | ||
], | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "vite build", | ||
"lint": "pnpm run lint:tsc && pnpm run lint:eslint && pnpm run lint:stylelint", | ||
"lint:report": "pnpm run lint:tsc:report && pnpm run lint:eslint:report && pnpm run lint:stylelint:report", | ||
"lint:fix": "pnpm run lint:eslint:fix && pnpm run lint:stylelint:fix", | ||
"lint": "pnpm run lint:tsc && pnpm run lint:stylelint", | ||
"lint:report": "pnpm run lint:tsc:report && pnpm run lint:stylelint:report", | ||
"lint:fix": "pnpm run lint:stylelint:fix", | ||
"lint:tsc": "tsc", | ||
"lint:tsc:report": "mkdir -p ./reports && tsc > ./reports/lint-report-tsc.txt", | ||
"lint:eslint": "eslint \"**/*.{ts,tsx}\"", | ||
"lint:eslint:report": "eslint -f json -o ./reports/lint-report-eslint.json \"**/*.{ts,tsx}\"", | ||
"lint:eslint:fix": "eslint --fix \"**/*.{ts,tsx}\"", | ||
"lint:stylelint": "stylelint \"**/*.css\"", | ||
"lint:stylelint:report": "stylelint -f json -o ./reports/lint-report-stylelint.json \"**/*.css\"", | ||
"lint:stylelint:fix": "stylelint \"**/*.css\" --fix", | ||
"clean": "rm -rf dist reports node_modules .turbo", | ||
"publish:npm": "pnpm publish --access public" | ||
}, | ||
"devDependencies": { | ||
"@themeless-ui/eslint-config": "workspace:*", | ||
"@themeless-ui/stylelint-config": "workspace:*", | ||
"@themeless-ui/typescript-config": "workspace:*", | ||
"eslint": "8.50.0", | ||
"stylelint": "15.10.3", | ||
"typescript": "5.2.2", | ||
"vite": "4.4.9" | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"extends": "@themeless-ui/typescript-config/vite-react.json", | ||
"include": ["src"] | ||
"extends": "@themeless-ui/typescript-config/vite-react.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.