Giter Site home page Giter Site logo

riiiad / riiiad-starter-kit Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 3.0 1.46 MB

A starter package for compiling Sass, Pug, TypeScript and running a dev server. Kickstart your projects.

JavaScript 16.32% CSS 66.06% HTML 17.38% TypeScript 0.24%
sass pug starter-kit package gulp typescript riiiads-starter-kit starterkit

riiiad-starter-kit's Introduction

Riiiads Starter Kit

A starter kit for compiling Sass, Pug and running a dev server. Now also with typescript compiler. Created by Riad ZT [email protected]

This package is inspired by the Traversy Media and Dev Tips starter kits. Check out the starter kits they are awesome.

TM: https://github.com/bradtraversy/sass_starter_pack

DevTips: https://github.com/DevTips/DevTips-Starter-Kit

Version

1.1.0

Installation

Install the dependencies (gulp, gulp-sass, gulp-pug, gulp-concat, gulp-imagemin, gulp-uglify, del, browser-sync, typescript, gulp-typescript)

$ npm install

(Optional)Install gulp globally if you want to run the gulp command in your CLI.

$ npm install -g gulp

Usage

This kit works with pug by default. You change the pug files in the pug folder and the files are compiled to html.

In the assets folder you upload the images and js files this folder will be copy to the build folder.

With the last version typescript was added. You can use it or not just be careful if you save changes to the main.ts file the main.js will be overwritten. Best is if you DO NOT want to use typescript just delete the main.ts file and it will not be compiled to main.js.

Never change the src/index.html or the assets/css/ files because it will be overwritten with the compiled files.

Run

This will watch your sass/pug files and run your dev server at http://localhost:3000

$ npm start

Run without Pug(testing)

There is a gulp no-pug option, this will only run sass compiling and the dev server. You just change the index.html file in the src/no-pug folder.

You have to refresh the site to see changes, auto-refresh is still not working.

$ gulp no-pug

Ready for deployment

After you are ready to deploy you project. Run this command to create the dist folder and your files will be ready to deploy. Just upload the files in the dist to your server.

$ gulp build

Help

Run this command to see the all available commands.

$ gulp help

riiiad-starter-kit's People

Contributors

domkoch avatar riiiad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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