Code Monkey home page Code Monkey logo

starter-webpack-es6-sass-php's Introduction

starter-webpack-es6-sass-php

Front-end starter kit with tools for development:

  • webpack as module bundler
  • es6 and babel
  • sass as css preprocessor
  • php for templating and future CMS integration

Requirements

  • Apache web server (e.g. XAMPP, MAMP, ...) for serving php files
  • Set webpackDevServer proxy target based on project folder

Usage

Clone & Install

First clone the project and install dependencies.

git clone https://github.com/garousianstudio/starter-webpack-es6-sass-php.git
cd starter-webpack-es6-sass-php

# install dependencies
npm install

Development:

By default project config is set to development mode. check config.php for more details. To work on source files run start task.

# start webpack dev server and open browser
npm start

Build:

For deploying the project or overviewing what has been done, set isDev in config.php to false and run build task.

npm run build

Compiled js, css and sprite.svg files are generated in build folder at the root.

Tasks

npm start => start webpack dev server and open browser
npm run build => use it for production
npm run clean => clean previously generated build folder

Notes

  • This starter is using 'iransans' as its default font type. If you want to use that, uncomment importing fonts in src/scss/base/_base.scss file and add files to fonts folder public/fonts. To use 'iransans' font visit their home page

License

MIT, see LICENSE.md for details.

starter-webpack-es6-sass-php's People

Contributors

donomron avatar

Watchers

James Cloos 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.