Giter Site home page Giter Site logo

dcarrsf / webpack2-karma-jasmine-react Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 244 KB

Starter files used to create React components with testing in Karma and Jasmine.

HTML 3.72% JavaScript 88.67% CSS 7.62%
webpack2-boilerplate karma jasmine react es6

webpack2-karma-jasmine-react's Introduction

webpack2-karma-jasmine-react

This repo contains starter files used to create React components with testing in Karma and Jasmine.

Screenshot

How to get started

The project uses Webpack to bundle and transpile the source code to a browser friendly format. You can run the project in two modes (dev and build). Run the following command to install dependencies, then choose a build mode.

$ npm install

Development

Dev mode launches the project in the Webpack Dev Server with hot reloading for editing convience. Run the following command and open a browser to http://localhost:8080.

$ npm start

Production

Build mode sets the environment to 'production' and optimizes the bundle for deployment. The files are optimized by using Webpack plugins, replacing React with Preact, and GZipping the resulting bundle. Run the following command and view the files in the build folder.

$ npm run build

How to run tests

The project uses Karma as a test runner and Jasmine as the BDD test suite. In addition, we're using Enzyme to unit test the components in the app. Run the following command to view a single run of the application tests.

$ npm test

webpack2-karma-jasmine-react's People

Contributors

dcarrsf avatar

Stargazers

 avatar

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.