Code Monkey home page Code Monkey logo

java_script_test's Introduction

web-tpl

Template project for websites and web apps.

Basic gulpfile with SASS, GULP and Babel/Browserify compilation of Javascript.

How to use

Don't fork, don't clone.

  1. Download the latest release and use it as basis for your new repository.
  2. Modify package.json and set the first four items
    • name
    • version
    • description
    • repository
    • author
  3. Modify src/pug/config.json setting the site name, description and URL.
  4. Change this README file but keep the Compiling section below for reference.

Note: This project does not use semver as future versions might evolve breaking backwards compatibility as new tools and standard practices are incorporated.

Compilation

This website is built using several compilable languages:

  • The HTML pages are built from pug template files.
  • The CSS stylesheet is pre-compiled from sass files.
  • The JS scripts are trans-compiled from es6 (ES2015) files.

To make any modifications re-compilation is necessary. You should install:

  • node and npm
  • yarn
  • gulp (install globally)

Afterwards run the following in the command line:

cd src
yarn

After it runs succesfuly you can compile as needed:

  • sass (stylesheets)

    gulp styles
    
  • scripts (ES6)

    gulp scripts
    gulp dependencies
    

Either of these can be run separately.

  • pug (HTML pages)

    gulp html
    
  • all

    yarn run build
    
  • Watch and compile automatically on changes

    gulp watch
    

java_script_test's People

Contributors

ppxasjsm avatar

Watchers

 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.