New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

leonardojs

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leonardojs

Leonardo ========

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
105
increased by556.25%
Maintainers
1
Weekly downloads
 
Created
Source

Leonardo logo Leonardo Docs

Mocking and testing made simple and consistent. Developed by Outbrain.

Requirements

Load Dependency scripts

Angular (tested with v1.3) Angular Mocks module (tested with v1.3)

Load Leonardo script
<!DOCTYPE HTML>
<html>
<body ng-app="app">
  //.....
  <script src="[bower_componenets|node_modules|other]/angular/angular.js"></script>
  <script src="[bower_componenets|node_modules|other]/angular-mocks/angular-mocks.js"></script>
  //.....
  <script src="[bower_componenets|node_modules|other]/leonardos/leonardos.js"></script>
</body>
</html>
Load Leonardo css
<!DOCTYPE HTML>
<html>
<head>
  //.....
  <link rel="stylesheet" media="all" href="[bower_componenets|node_modules|other]/leonardos/leonardo.min.css" />
</head>
</html>
Add Angular module dependancy
<!DOCTYPE HTML>
<html>
<body ng-app="app">
  //.....
   <script>
    var myApp = angular.module("app", ["leonardo"]);
   </script>
</body>
</html>
Add Attribute For UI Activation Via Icon
<!DOCTYPE HTML>
<html>
<body ng-app="app" leo-activator>
  //.....
</body>
</html>

A plunker demonstration http://plnkr.co/edit/w8oaELXwQldv6AeZjnhD?p=preview

Screen

example image

Documentation

http://outbrain.github.io/Leonardo/docs/configuration.srv.html

Running and contributing

Compile

cd into the project folder

npm run compile

This compiles the code as well as documentation.

Auto Recompile

To automatically recompile the files on each change run

npm run compile:watch

Note that this does not recompile the documentation.

Note that this does not auto-refreshes the browser.

Compile Documentation

Running npm run compile compiles the documentation. But if you need to recompile it later also, (for example when running with gulp watch) run

npm run compile:docs
Running

Run local server and navigate to index.html.

Keywords

FAQs

Package last updated on 29 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc