Giter Site home page Giter Site logo

tomyam1 / angular Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bclinkinbeard/angular

0.0 1.0 0.0 1.33 MB

AngularJS compiled with jsdom and provided as a CommonJS module. Intended for testing AngularJS code without depending on a browser.

JavaScript 100.00%

angular's Introduction

angular for node

Build Status

Inspired by bclinkinbeard's angular with a lot of changes for a private use case:

  • Different entry point for browserify that exports the already loaded angular (from window.angular).

  • We require the angular source instead of evaling it, to have meaningful stack traces.

  • We load several more modules: jquery, angular-mocks, angular-sanitize and jasmine-jquery. jasmine-jquery is loaded only when testing, determined by if global.jasmine is defined.

  • For each module, we have an env variable that determines the location from which its loaded. The module is only loaded if the env variable is defined:

    • TP_JQUERY_PATH
    • TP_ANGULAR_PATH
    • TP_ANGULAR_MOCKS_PATH
    • TP_ANGULAR_SANITIZE_PATH
    • TP_JASMINE_JQUERY_PATH
  • We use mocha/chai for testing instead of tape.

  • We use bower to get angular (but only for testing) instead of a custom script.

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.