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

feat(assets): Adds component page and Tailwind support to CL #4931

Merged
Merged
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: 2 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ jobs:
}'
- name: Wait for Temporary Pod to Start
run: kubectl wait pods -n ${{ env.EKS_NAMESPACE }} --for condition=Ready --timeout=90s temp-pod-${{ steps.vars.outputs.sha_short }}
- name: Build tailwind assets
run: kubectl exec -n ${{ env.EKS_NAMESPACE }} temp-pod-${{ steps.vars.outputs.sha_short }} -- bash -c "npm install --prefix ./cl --no-input && npm run build --prefix ./cl --no-input"
- name: Collect Static Assets
id: collectStatic
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ cl/assets/media/recap_processing_queue/
cl/assets/media/xml/
cl/assets/static/
cl/assets/static-global/js/react
cl/assets/static-global/css/tailwind_styles.css

# IntelliJ IDEA files
.idea
Expand Down
3 changes: 3 additions & 0 deletions cl/assets/tailwind/input.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
27 changes: 27 additions & 0 deletions cl/assets/tailwind/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
content: [
/**
* HTML. Paths to Django template files that will contain Tailwind CSS classes.
*/

/* Templates within theme app (<tailwind_app_name>/templates), e.g. base.html. */
'../templates/**/*.html',

/*
* Main templates directory of the project (BASE_DIR/templates).
* Adjust the following line to match your project structure.
*/
'../../templates/**/*.html',

/*
* Templates in other django apps (BASE_DIR/<any_app_name>/templates).
* Adjust the following line to match your project structure.
*/
'../../**/templates/**/*.html',
'../../**/templates/**/*.svg',
],
theme: {
extend: {},
},
plugins: [],
};
Loading
Loading