Git Product home page Git Product logo

javascript-kata's Introduction

javascript-kata

Introduction

Starting point for doing a code kata, using node.js and jasmine-node which is a 'port' of the jasmine behavior driven development framework for testing javascript code.

What's in it?

This directory contains the following:

  • README.md, you're currently reading it.

  • bootstrap.bat, a wrapper around bootstrap.ps1 for those how run PowerShell with the Restricted or AllSigned, ExecutionPolicy.

  • bootstrap.ps1

    • installs chocolatey if not already installed
    • installs nodejs.install chocolatey package
    • installs node package jasmine-node plus it's dependencies
    • installs jshint plus it's dependencies
    • installs node-inspector plus it's dependencies

    Note that this script needs an internet connection to function.

  • check.bat a script that invokes jshint on the current directory.

  • check.ps1 a script that can take advantage of the pswatch module, such that jshint can be run whenever a javascript file changes on the filesystem.

  • debug.bat a scripts that starts a debugging session using node-inspector, you have to supply the name of the spec you wish to debug. Be sure to add a debugger; statement to your spec where you want to break.

  • example.js, example javascript file containing you're production code.

  • example.spec.js, example javascript file containing a single specification.

  • LICENSE, a copy of the license that applies to this repository, which is the GNU General Public License version 3 or later.

  • run.bat, run and watch the specs. Watch the specs means that the filesystem will be watched for modifications to .js files and as soon as changes are detected the specs will be run.

Links with quick references and tutorials

Ubuntu-howto

Install node package manager

sudo apt-get install npm

set global registry for npm

npm config set registry http://registry.npmjs.org/

install packages using npm

install packages globally

sudo npm install jasmine-node -g
sudo npm install jshint -g
sudo npm install node-inspector -g

install packages as user (This will install the packages in /node_modules)

cd <some dir>
npm install jasmine-node
npm install jshint
npm install node-inspector

export PATH=`pwd`/.bin:$PATH

javascript-kata's People

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.