Last active
July 30, 2021 21:01
-
-
Save inscapist/df73c94fe88b529c4b2249fe43957df3 to your computer and use it in GitHub Desktop.
Supporting post for https://gist.github.com/sagittaros/afb78a1c3f96ea9cc7707ed2a04cf03c
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
{ | |
"name": "myapp", | |
"version": "0.0.1", | |
"private": true, | |
"devDependencies": { | |
"autoprefixer": "^10.3.1", | |
"cross-env": "^7.0.3", | |
"cssnano": "^5.0.7", | |
"npm-run-all": "^4.1.5", | |
"postcss": "^8.3.6", | |
"postcss-cli": "^8.3.1", | |
"tailwindcss": "^2.2.7" | |
}, | |
"dependencies": { | |
"create-react-class": "^15.7.0", | |
"react": "^17.0.2", | |
"react-dom": "^17.0.2", | |
"shadow-cljs": "^2.15.2", | |
}, | |
"scripts": { | |
"shadow:watch": "shadow-cljs watch myapp-build", | |
"shadow:release": "shadow-cljs release myapp-build", | |
"postcss:watch": "cross-env TAILWIND_MODE=watch postcss -w resources/css/tailwind.css -o ./resources/public/css/main.css --verbose", | |
"postcss:release": "cross-env NODE_ENV=production postcss resources/css/tailwind.css -o ./resources/public/css/main.css --verbose", | |
"dev": "run-p -l *:watch", | |
"release": "run-s *:release", | |
"repl": "shadow-cljs cljs-repl myapp-build" | |
} | |
} |
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
module.exports = (ctx) => ({ | |
plugins: { | |
tailwindcss: {}, | |
autoprefixer: {}, | |
cssnano: ctx.env === 'production' ? {} : false, | |
}, | |
}) |
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
{:nrepl {:port 8777} | |
:jvm-opts ["-Xmx1G"] | |
:source-paths ["src" "dev"] | |
:dependencies | |
[[reagent "1.1.0"] | |
[re-frame "1.2.0"]] | |
:dev-http {8080 "resources/public"} | |
:builds | |
{:myapp-build | |
{:target :browser | |
:output-dir "resources/public/js" | |
:asset-path "/js" ;; path prefix given to generated assets | |
:modules | |
{:main | |
{:init-fn myapp.core/init}} | |
:devtools | |
{:repl-pprints true} | |
:dev | |
{:compiler-options | |
{:closure-defines | |
{}}}}}} |
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
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
html { | |
font-size: 18px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment