Coder Social home page Coder Social logo

codegolf's Introduction

###Javascript workshop: poker Build Status #####Development

######Initial setup To do initial project setup you need bower, grunt and grunt-cli installed globally:

npm install -g bower grunt grunt-cli

Then execute next command for dependencies installation:

npm install && bower install

######Running To run development livereload environment, execute grunt develop To build project without running, use grunt build To run tests use grunt test command

To start project without tests and livereload use npm start command and open http://127.0.0.1:8080 in browser

Do not forget to reload manually when adding new files and folders!

######Structure

All project code is lying under /src folder.

In /src/client folder there are another folders:

  • img for storing images
  • js for javascript classes
  • less for less files (they will be compiled into one style.css file)
  • polymer-components for storing Polymer .html components

You can create .ejs files in /src/client directory, or create something like "/srv/client/views" folder - grunt is smart enough to work with them :)

After build grunt creates a /public folder and stores all built files in it.

  • /public/vendor - folder that contains third-party libraries, e.g. Polymer
  • /public/components - folder with copied /src/client/polymer-components folder

######Testing There are /tests folder for tests. Feel free to create additional folders under /tests/client and /tests/server directories. Any test file should be named as [name].tests.js

  • Client tests runs under PhantomJS using Karma + Jasmine + Sinon
  • Server tests runs using Mocha + Chai

Grunt creates /coverage directory after running tests with Istanbul reports.

codegolf's People

Contributors

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