Giter Site home page Giter Site logo

cams's Introduction

web-base

Use this to start other web projects. It gives you a good base to start from including

  • has an .editorconfig to enforce typographic style like tabs instead of spaces and no trailing whitespace
  • uses eslint to enforce javascript coding conventions such as no vars perfer arrow functions, etc
  • compiles es6 using babel and webpack (includes sourcemaps)
  • compiles jade -> html or strings (.tpl)
  • compiles sass -> css adding browser specific prefixes where necessary

New projects

First create a new repository on github

git clone [email protected]:jplikesbikes/web-base.git newrepos
cd newrepos
git remote rename origin upstream
git remote add origin [email protected]:jplikesbikes/newrepos
git push -u origin master

Update the package.json name and repository. Update the readme. Your good to go!

Develop

npm install
npm test // run tests
npm run linter // lint and auto fix errors
npm run web-test //  run tests in browser with webpack-dev-server
open localhost:8080/test.bundle
npm run server // run webpack-dev-server with hot module reloading
open localhost:8080

Debug test commandline

./node_modules/mocha/bin/mocha -w --debug-brk --inspect --compilers js:babel-register test/**/*.spec.js

Watching Tests

npm test -- --watch

Compile into bin and deploy to s3

npm run compiler
npm run aws-deploy s3://your-bucket-here

note you need the aws cli installed for deployment to work

cams's People

Contributors

jplikesbikes avatar

Watchers

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