Giter Site home page Giter Site logo

tailwind_do's Introduction

Tailwind DO

Helper bash script to make life easy while learning tailwindcss

Features

  • Rapidly creates new html files and tailwindcss projects
  • add plugins from cmd line
  • Can automatically calculate the next html file name
  • Provides help to compile and run the project
  • Commented source code to make learning even easier.

Usage

Create Project

./tailwindDo.sh {createProject|project|p <Projectname>}

This creates a new folder with basic tailwind structure
Examples::

./tailwindDo.sh createProject learntailwind 
./tailwindDo.sh p learntailwind2

Create new html file

 ./tailwindDo.sh createHtml|html|h <Projectname> <fileName?>

A new html file is created src/htmls folder.
If no filename is specified It figures out the next filename - 1.html, 2.html etc Examples:

./tailwindDo.sh createHtml learntailwind # creates src/htmls/2.html
./tailwindDo.sh h learntailwind2         # creates src/htmls/3.html
./tailwindDo.sh h learntailwind2 afile   # creates src/htmls/afile.html

Add Plugin

./tailwindDo.sh pl|plugin test1 <PluginName>

Installs a new plugin from npm. Then add the relevant config to tailwind.config.js Examples

./tailwindDo.sh pl test1 '@tailwindcss/typography'
./tailwindDo.sh plugin learn1 '@tailwindcss/typography'

Folder and file structure created

- current directory
  - project_name
    - src
      - htmls
        - 1.html
      - img
      - css
        - input.css
    - tailwind.config.js

Problems

  • make sure npx command is running
  • it should create OR update src/css/output.css file
  • Everytime you save, the output.css file should be updated and a message should be visible in the npx command
  • make sure npx command is being run from the project directory
  • Check the 'content line' in tailwind.config.js

tailwind_do's People

Contributors

gyaaniguy avatar

Watchers

 avatar

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.