Giter VIP home page Giter VIP logo

webpackinitial's Introduction

Webpack initial build

The goal of this Webpack configuration is setup a initial build process for regular projects, this build contain:

Enviroment setup for MacOS

  1. Install Nodejs:

Nodejs

  1. Install all the dependencies:
npm i
  1. Surge.sh

To use surge.sh you should copy and rename the script/deploy-test file running

cp scripts/deploy-test scripts/deploy

Then you need to create an account to deploy your static folder to perform this you should do:

node_modules/.bin/surge token

The only things left to do is update your surge tokens on the deploy file, the url to your project and modify the access permissons to the deploy script:

chmod +x scripts/deploy

Developing

Javascript and scss style guide have been predetermined by reference Architecture in .editorconfig, .jscsrc, and .jshintrc those files are based on (Airbnb styles guide)[https://github.com/airbnb/javascript]. Git hooks are configured to run style checks on pre-commit and the test suite on pre-push. Anytime the hooks (or the dependencies for Node or Bower) are updated running npm install will ensure everything is up to date.

Client-Side Javascript Patterns

TODO

Npm scrips

  • npm run build - Create a dist folder ready for production
  • grunt run build:dev - Create a dist folder for dev enviroment
  • npm run deploy - Send your dist code to surge.sh server
  • npm run dev - Create a webpack server with development code
  • npm run lint - Lint your js code
  • npm run imageOptim - Optimize the image folder
  • npm run prod - Create a webpack server with production code
  • npm run start - run a local http server with your dist folder
  • npm run test - Run Karma server return the unit test and coverage porcentage
  • npm run validate - Run the lint build and test process
  • npm run watch:test - Run test in watch mode

webpackinitial's People

Watchers

James Cloos avatar Bryan Garzón Bahamón 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.