Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: adds initial tailwind config #50

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Insure you're using the correct version of node:

```bash
n i auto
# or nvm i
# or nvm i auto
```

Recursively install node modules:
Expand Down
Binary file added assets/jspm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/jspm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions chompfile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ deps = [
'generate:api:generator',
'generate:api:import-map',
'generate:api:jspm-cli',
'generate:api:css',
]
engine = 'node'

Expand Down Expand Up @@ -93,3 +94,25 @@ custom-css = 'typedoc/typedoc-theme.css'
plugins = './typedoc/typedoc-theme.cjs,typedoc-plugin-versions,typedoc-plugin-external-resolver'
flags = '--lightHighlightTheme $TYPEDOC_SYNTAX_THEME --darkHighlightTheme $TYPEDOC_SYNTAX_THEME'
out = 'public_html/docs/jspm-cli'

[[task]]
name = 'generate:api:css'
deps = ['./styles/input.css', 'template.html', 'pages/**/*.md']
run = 'tailwindcss -i ./styles/input.css -o ./public_html/style.main.css'

[[task]]
name = 'generate:api:assets'
deps = ['./assets/**/*']
run = 'cp -r ./assets ./public_html'

[[task]]
name = 'generate:api:docs'
deps = ['template.html', 'pages/**/*.md']
# a minimal watch for html/md updates for development
run = 'chomp generate:site'

[[task]]
name = 'dev'
deps = ['generate:api:css', 'generate:api:assets']
# TODO browser-sync is temporary, should be replaced with this https://github.com/guybedford/chomp/issues/61
run = 'concurrently "chomp generate:api:docs --serve --port 4003 --watch" "browser-sync start --server public_html --files public_html"'
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@
"type": "module",
"devDependencies": {
"@ltd/j-toml": "^1.38.0",
"autoprefixer": "^10.4.19",
"browser-sync": "^3.0.2",
"concurrently": "^8.2.2",
"daisyui": "^4.11.1",
"js-yaml": "^4.1.0",
"jsdom": "^16.7.0",
"marked": "^4.3.0",
"picocolors": "^1.0.0",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"toml": "^3.0.0",
"typedoc": "0.23.25",
"typedoc-plugin-external-resolver": "1.0.1",
Expand Down
9 changes: 9 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import tailwindcss from 'tailwindcss';
import autoprefixer from 'autoprefixer';

export default {
plugins: [
tailwindcss,
autoprefixer
]
}
Loading