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

Feature: Added Tailwind and associated packages #11

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ clean:
docker compose rm -vf

build:
npm run tailwind:css
docker compose build

run:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and [Shipyard](https://shipyard.build) out of the box.
- [Pug](https://github.com/pugjs/pug) - HTML template engine that integrates with Express
- [Sequelize](https://github.com/sequelize/sequelize) - cross-database ORM and migrations
- [PostgreSQL](https://www.postgresql.org/) - database
- [TailwindCSS](https://tailwindcss.com/) - A utility-first CSS framework

## Dependencies

Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.0.0",
"private": true,
"scripts": {
"start": "nodemon ./src/bin/www"
"start": "nodemon ./src/bin/www",
"tailwind:css": "postcss src/public/stylesheets/tailwind.css -o src/public/stylesheets/style.css"
},
"dependencies": {
"cookie-parser": "~1.4.6",
Expand All @@ -19,7 +20,12 @@
"semver": "^7.5.1"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"autoprefixer": "^10.4.17",
"nodemon": "^3.0.3",
"sequelize-cli": "^6.6.2"
"postcss": "^8.4.35",
"postcss-cli": "^11.0.0",
"sequelize-cli": "^6.6.2",
"tailwindcss": "^3.4.1"
}
}
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
]
}
Binary file added src/public/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading