Giter Site home page Giter Site logo

mudpack's Introduction

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
  • add an empty database via Sequel Pro
  • update your .env.php file to include local DB details
  • cd into your deploy folder and run composer update
  • run ./craft setup/security-key and create a security key, you can then abort this task and copy the key into your .env.php file
  • create a MAMP or Valet instance that points to your local domain
  • update the proxy setting in your config/path.config.json file to point to your local domain (setup in MAMP / Valet)
  • 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

mudpack's People

Contributors

dhmax88 avatar magicspon avatar cole007 avatar

Stargazers

Sean P. Myrick V19.1.7.2 avatar  avatar Mark Croxton avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar Sean P. Myrick V19.1.7.2 avatar

Forkers

seanpm2001

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.