Giter Site home page Giter Site logo

toast-template's Introduction

Welcome to your new Toast site!

Get this template

npx create-toast talves/toast-template my-toast-site

scripts

gulp

This template is using Gulp for development workflow as an option.

The default command uses browser-sync and watches css and source paths for rebuild

gulp

Command include (default order):

gulp css
gulp toast
gulp watchAll

npm run postinstall

The postinstall script will run whenever you install the dependencies for a project. It handles converting any legacy 3rd party commonjs dependencies into browser-runnable ESM. The resulting ESM files are placed in ./public/web_modules/* and can be cached if you wish (as long as you re-run postinstall when you install new dependencies).

npm run build

npm run build

The build command runs the CSS build (Tailwind) and the site build (Toast).

npm run build:css

The CSS build compiles (and purges) Tailwind via PostCSS.

npm run build:css

postcss-cli hasn't enabled node v12+ ESM yet, so we have to put our config in a special folder. This folder is legacy-commonjs and the only reason it is special is that it has a package.json with a single field: "type": "commonjs", which tells node that the files in that folder are all CommonJS files (that is, they use require() and not import).

npm run build:site

The site build command runs a full Toast build and outputs the results in public/.

npm run build:site

toast-template's People

Contributors

talves 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.