Skip to content

ournameismud/spon-ui

 
 

Repository files navigation

Spon-ui

UI components built with tailwind, Gulp 4 and Webpack.

Features

  • Code splitting - via webpack
  • Babel 7
  • Gulp 4
  • scss / postcss
  • Remove unused css - via purges
  • SVG symbols
  • Handle any static file type, compress images, css, etc
  • eslint
  • stylelint
  • prettier
  • jest

Getting started

  • clone the repo
  • install the dependencies (npm install / yarn)
  • run npm run gen-cert to create https tokens
  • npm run start will boot up the cms server
  • npm run build will create a production build to use with craftcms

Directory structure

  • src/js/app.js main entry point for webpack
  • src/scss/style.scss main scss file, includes tailwind imports
  • deploy craftcms lives here
  • deploy/public the public root folder
Start cms server

npm start

Create a production build

npm run build

Deployment (netlify)

If you have netlify setup, you can deploy the fractal library with this

npm run deploy

https

Create https certs for browsersync

npm run gen-cert

Linting/formatting

Lint all the javascript feels

npm run lint:js

Format all the code with prettier

npm run pretty

Generate documentation

npm run generate-docs

About

UI Components, built with tailwindcss

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.5%
  • PHP 8.6%
  • CSS 4.3%
  • HTML 3.4%
  • Batchfile 0.2%