Lots of updates

This commit is contained in:
baldo 2016-05-16 13:33:49 +02:00
commit 39e7af6238
445 changed files with 230911 additions and 46365 deletions

View file

@ -3,22 +3,29 @@
"name": "https://github.com/angular-ui/bootstrap/graphs/contributors"
},
"name": "angular-bootstrap",
"version": "0.11.0",
"keywords": [
"angular",
"angular-ui",
"bootstrap"
],
"license": "MIT",
"ignore": [],
"description": "Native AngularJS (Angular) directives for Bootstrap.",
"version": "1.3.2",
"main": [
"./ui-bootstrap-tpls.js"
],
"dependencies": {
"angular": ">=1"
"angular": ">=1.4.0"
},
"homepage": "https://github.com/angular-ui/bootstrap-bower",
"_release": "0.11.0",
"_release": "1.3.2",
"_resolution": {
"type": "version",
"tag": "0.11.0",
"commit": "75b302f82c1a3b0647695a3dfeacab0a153ea8a0"
"tag": "1.3.2",
"commit": "77da362b0b86c0a86762b56d64aaec107889f31a"
},
"_source": "git://github.com/angular-ui/bootstrap-bower.git",
"_target": "~0.11.0",
"_originalSource": "angular-bootstrap",
"_direct": true
"_source": "https://github.com/angular-ui/bootstrap-bower.git",
"_target": "~1.3.2",
"_originalSource": "angular-bootstrap"
}

View file

@ -0,0 +1 @@
.DS_Store

View file

@ -0,0 +1 @@
bower.json

View file

@ -0,0 +1,120 @@
### UI Bootstrap - [AngularJS](http://angularjs.org/) directives specific to [Bootstrap](http://getbootstrap.com)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angular-ui/bootstrap?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://secure.travis-ci.org/angular-ui/bootstrap.svg)](http://travis-ci.org/angular-ui/bootstrap)
[![devDependency Status](https://david-dm.org/angular-ui/bootstrap/dev-status.svg?branch=master)](https://david-dm.org/angular-ui/bootstrap#info=devDependencies)
### Quick links
- [Demo](#demo)
- [Installation](#installation)
- [NPM](#install-with-npm)
- [Bower](#install-with-bower)
- [NuGet](#install-with-nuget)
- [Custom](#custom-build)
- [Manual](#manual-download)
- [Support](#support)
- [FAQ](#faq)
- [Supported browsers](#supported-browsers)
- [Need help?](#need-help)
- [Found a bug?](#found-a-bug)
- [Contributing to the project](#contributing-to-the-project)
- [Development, meeting minutes, roadmap and more.](#development-meeting-minutes-roadmap-and-more)
# Demo
Do you want to see directives in action? Visit http://angular-ui.github.io/bootstrap/!
# Installation
Installation is easy as UI Bootstrap has minimal dependencies - only the AngularJS and Twitter Bootstrap's CSS are required.
Note: Since version 0.13.0, UI Bootstrap depends on [ngAnimate](https://docs.angularjs.org/api/ngAnimate) for transitions and animations, such as the accordion, carousel, etc. Include `ngAnimate` in the module dependencies for your app in order to enable animation.
#### Install with NPM
```sh
$ npm install angular-ui-bootstrap
```
This will install AngularJS and Bootstrap NPM packages.
#### Install with Bower
```sh
$ bower install angular-bootstrap
```
Note: do not install 'angular-ui-bootstrap'. A separate repository - [bootstrap-bower](https://github.com/angular-ui/bootstrap-bower) - hosts the compiled javascript file and bower.json.
#### Install with NuGet
To install AngularJS UI Bootstrap, run the following command in the Package Manager Console
```sh
PM> Install-Package Angular.UI.Bootstrap
```
#### Custom build
Head over to http://angular-ui.github.io/bootstrap/ and hit the *Custom build* button to create your own custom UI Bootstrap build, just the way you like it.
#### Manual download
After downloading dependencies (or better yet, referencing them from your favorite CDN) you need to download build version of this project. All the files and their purposes are described here:
https://github.com/angular-ui/bootstrap/tree/gh-pages#build-files
Don't worry, if you are not sure which file to take, opt for `ui-bootstrap-tpls-[version].min.js`.
### Adding dependency to your project
When you are done downloading all the dependencies and project files the only remaining part is to add dependencies on the `ui.bootstrap` AngularJS module:
```js
angular.module('myModule', ['ui.bootstrap']);
```
If you're a Browserify or Webpack user, you can do:
```js
var uibs = require('angular-ui-bootstrap');
angular.module('myModule', [uibs]);
```
# Support
## FAQ
https://github.com/angular-ui/bootstrap/wiki/FAQ
## Supported browsers
Directives from this repository are automatically tested with the following browsers:
* Chrome (stable and canary channel)
* Firefox
* IE 9 and 10
* Opera
* Safari
Modern mobile browsers should work without problems.
## Need help?
Need help using UI Bootstrap?
* Live help in the IRC (`#angularjs` channel at the `freenode` network). Use this [webchat](https://webchat.freenode.net/) or your own IRC client.
* Ask a question in [StackOverflow](http://stackoverflow.com/) under the [angular-ui-bootstrap](http://stackoverflow.com/questions/tagged/angular-ui-bootstrap) tag.
**Please do not create new issues in this repository to ask questions about using UI Bootstrap**
## Found a bug?
Please take a look at [CONTRIBUTING.md](CONTRIBUTING.md#you-think-youve-found-a-bug) and submit your issue [here](https://github.com/angular-ui/bootstrap/issues/new).
----
# Contributing to the project
We are always looking for the quality contributions! Please check the [CONTRIBUTING.md](CONTRIBUTING.md) for the contribution guidelines.
# Development, meeting minutes, roadmap and more.
Head over to the [Wiki](https://github.com/angular-ui/bootstrap/wiki) for notes on development for UI Bootstrap, meeting minutes from the UI Bootstrap team, roadmap plans, project philosophy and more.

View file

@ -3,9 +3,17 @@
"name": "https://github.com/angular-ui/bootstrap/graphs/contributors"
},
"name": "angular-bootstrap",
"version": "0.11.0",
"keywords": [
"angular",
"angular-ui",
"bootstrap"
],
"license": "MIT",
"ignore": [],
"description": "Native AngularJS (Angular) directives for Bootstrap.",
"version": "1.3.2",
"main": ["./ui-bootstrap-tpls.js"],
"dependencies": {
"angular": ">=1"
}
"angular": ">=1.4.0"
}
}

View file

@ -0,0 +1,2 @@
require('./ui-bootstrap-tpls');
module.exports = 'ui.bootstrap';

View file

@ -0,0 +1,23 @@
{
"name": "angular-ui-bootstrap",
"version": "1.3.2",
"description": "Bootstrap widgets for Angular",
"main": "index.js",
"homepage": "http://angular-ui.github.io/bootstrap/",
"repository": {
"type": "git",
"url": "https://github.com/angular-ui/bootstrap.git"
},
"keywords": [
"angular",
"bootstrap",
"angular-ui",
"components",
"client-side"
],
"author": "https://github.com/angular-ui/bootstrap/graphs/contributors",
"peerDependencies": {
"angular": ">= 1.4.0-beta.0 || >= 1.5.0-beta.0"
},
"license": "MIT"
}

View file

@ -0,0 +1,115 @@
/* Include this file in your html if you are using the CSP mode. */
.ng-animate.item:not(.left):not(.right) {
-webkit-transition: 0s ease-in-out left;
transition: 0s ease-in-out left
}
.uib-datepicker .uib-title {
width: 100%;
}
.uib-day button, .uib-month button, .uib-year button {
min-width: 100%;
}
.uib-left, .uib-right {
width: 100%
}
.uib-position-measure {
display: block !important;
visibility: hidden !important;
position: absolute !important;
top: -9999px !important;
left: -9999px !important;
}
.uib-position-scrollbar-measure {
position: absolute !important;
top: -9999px !important;
width: 50px !important;
height: 50px !important;
overflow: scroll !important;
}
.uib-position-body-scrollbar-measure {
overflow: scroll !important;
}
.uib-datepicker-popup.dropdown-menu {
display: block;
float: none;
margin: 0;
}
.uib-button-bar {
padding: 10px 9px 2px;
}
[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,
[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,
[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,
[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,
[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,
[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,
[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,
[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,
[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,
[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,
[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,
[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,
[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,
[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,
[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,
[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,
[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,
[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,
[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,
[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,
[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,
[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,
[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,
[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,
[uib-popover-popup].popover.top-left > .arrow,
[uib-popover-popup].popover.top-right > .arrow,
[uib-popover-popup].popover.bottom-left > .arrow,
[uib-popover-popup].popover.bottom-right > .arrow,
[uib-popover-popup].popover.left-top > .arrow,
[uib-popover-popup].popover.left-bottom > .arrow,
[uib-popover-popup].popover.right-top > .arrow,
[uib-popover-popup].popover.right-bottom > .arrow,
[uib-popover-html-popup].popover.top-left > .arrow,
[uib-popover-html-popup].popover.top-right > .arrow,
[uib-popover-html-popup].popover.bottom-left > .arrow,
[uib-popover-html-popup].popover.bottom-right > .arrow,
[uib-popover-html-popup].popover.left-top > .arrow,
[uib-popover-html-popup].popover.left-bottom > .arrow,
[uib-popover-html-popup].popover.right-top > .arrow,
[uib-popover-html-popup].popover.right-bottom > .arrow,
[uib-popover-template-popup].popover.top-left > .arrow,
[uib-popover-template-popup].popover.top-right > .arrow,
[uib-popover-template-popup].popover.bottom-left > .arrow,
[uib-popover-template-popup].popover.bottom-right > .arrow,
[uib-popover-template-popup].popover.left-top > .arrow,
[uib-popover-template-popup].popover.left-bottom > .arrow,
[uib-popover-template-popup].popover.right-top > .arrow,
[uib-popover-template-popup].popover.right-bottom > .arrow {
top: auto;
bottom: auto;
left: auto;
right: auto;
margin: 0;
}
[uib-popover-popup].popover,
[uib-popover-html-popup].popover,
[uib-popover-template-popup].popover {
display: block !important;
}
.uib-time input {
width: 50px;
}
[uib-typeahead-popup].dropdown-menu {
display: block;
}

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,9 @@
{
"name": "angular-leaflet-directive",
"description": "AngularJS directive to embed an interact with maps managed by Leaflet library",
"author": "https://github.com/tombatossals/angular-leaflet-directive/graphs/contributors",
"description": "angular-leaflet-directive - An AngularJS directive to easily interact with Leaflet maps",
"version": "0.10.0",
"homepage": "http://tombatossals.github.io/angular-leaflet-directive/",
"keywords": [
"angularjs",
"javascript",
@ -11,23 +14,41 @@
"dist/angular-leaflet-directive.js"
],
"dependencies": {
"angular": "1.2.x",
"leaflet-dist": "0.7.x"
"angular": "1.x",
"leaflet": "0.7.x"
},
"devDependencies": {
"jquery": "2.1.x",
"bootstrap": "3.1.x",
"angular-route": "1.2.x",
"angular-animate": "1.2.x",
"angular-mocks": "1.2.x",
"leaflet.markerclusterer": "0.4",
"leaflet.draw": "0.2.2",
"Leaflet.label": "0.2.1",
"jquery": "*",
"semantic-ui": "*",
"bootstrap": "*",
"prism": "*",
"angular-route": "1.x",
"angular-animate": "1.x",
"angular-mocks": "1.x",
"leaflet.markercluster": "*",
"leaflet.draw": "*",
"Leaflet.label": "*",
"leaflet-tilelayer-geojson": "*",
"Leaflet.utfgrid": "danzel/Leaflet.utfgrid",
"Leaflet.awesome-markers": "*",
"leaflet-providers": "*",
"leaflet.vector-markers": "*",
"webgl-heatmap-leaflet": "*",
"leaflet-plugins": "1.0.1",
"esri-leaflet": "0.0.1-beta.4"
"leaflet-plugins": "*",
"esri-leaflet": "*",
"proj4": "*",
"font-awesome": "*",
"proj4leaflet": "*",
"Leaflet.MakiMarkers": "*",
"Leaflet.heat": "https://github.com/Leaflet/Leaflet.heat/archive/gh-pages.tar.gz",
"Leaflet.ExtraMarkers": "https://github.com/coryasilva/Leaflet.ExtraMarkers/archive/v1.0.1.tar.gz",
"Leaflet.fullscreen": "http://github.com/Leaflet/Leaflet.fullscreen/archive/v0.0.4.tar.gz",
"Leaflet.PolylineDecorator": "bbecquet/Leaflet.PolylineDecorator",
"ionrangeslider": "*",
"leaflet-minimap": "*",
"esri-leaflet-clustered-feature-layer": "~1.0.x",
"esri-leaflet-heatmap-feature-layer": "~1.0.x",
"leaflet-search": "*"
},
"ignore": [
"**/.*",
@ -40,15 +61,13 @@
"package.json",
"bower.json"
],
"homepage": "https://github.com/tombatossals/angular-leaflet-directive",
"version": "0.7.7",
"_release": "0.7.7",
"_release": "0.10.0",
"_resolution": {
"type": "version",
"tag": "v0.7.7",
"commit": "f2b426b3daf3a3753bb76a3526956f14818f358c"
"tag": "v0.10.0",
"commit": "15323bc8c3bad3f2dedafbcfebb6772dc0813cfb"
},
"_source": "git://github.com/tombatossals/angular-leaflet-directive.git",
"_target": "~0.7.7",
"_source": "https://github.com/tombatossals/angular-leaflet-directive.git",
"_target": "~0.10.0",
"_originalSource": "angular-leaflet-directive"
}

View file

@ -1,6 +1,6 @@
The MIT License
Copyright (c) 2012-2013 https://github.com/tombatossals/angular-leaflet-directive
Copyright (c) https://github.com/tombatossals/angular-leaflet-directive
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -0,0 +1,64 @@
{
"name": "angular-leaflet-directive",
"author": "https://github.com/tombatossals/angular-leaflet-directive/graphs/contributors",
"description": "angular-leaflet-directive - An AngularJS directive to easily interact with Leaflet maps",
"version": "0.9.0",
"homepage": "http://tombatossals.github.io/angular-leaflet-directive/",
"keywords": [
"angularjs",
"javascript",
"directive",
"leaflet"
],
"main": [
"dist/angular-leaflet-directive.js"
],
"dependencies": {
"angular": "1.x",
"leaflet": "0.7.x"
},
"devDependencies": {
"jquery": "*",
"semantic-ui": "*",
"bootstrap": "*",
"prism": "*",
"angular-route": "1.x",
"angular-animate": "1.x",
"angular-mocks": "1.x",
"leaflet.markercluster": "*",
"leaflet.draw": "*",
"Leaflet.label": "*",
"leaflet-tilelayer-geojson": "*",
"Leaflet.utfgrid": "danzel/Leaflet.utfgrid",
"Leaflet.awesome-markers": "*",
"leaflet-providers": "*",
"leaflet.vector-markers": "*",
"webgl-heatmap-leaflet": "*",
"leaflet-plugins": "*",
"esri-leaflet": "*",
"proj4": "*",
"font-awesome": "*",
"proj4leaflet": "*",
"Leaflet.MakiMarkers": "*",
"Leaflet.heat": "https://github.com/Leaflet/Leaflet.heat/archive/gh-pages.tar.gz",
"Leaflet.ExtraMarkers": "https://github.com/coryasilva/Leaflet.ExtraMarkers/archive/v1.0.1.tar.gz",
"Leaflet.fullscreen": "http://github.com/Leaflet/Leaflet.fullscreen/archive/v0.0.4.tar.gz",
"Leaflet.PolylineDecorator": "bbecquet/Leaflet.PolylineDecorator",
"ionrangeslider": "*",
"leaflet-minimap": "*",
"esri-leaflet-clustered-feature-layer": "~1.0.x",
"esri-leaflet-heatmap-feature-layer": "~1.0.x",
"leaflet-search": "*"
},
"ignore": [
"**/.*",
"src",
"doc",
"examples",
"test",
"*.md",
"Gruntfile.js",
"package.json",
"bower.json"
]
}

View file

@ -0,0 +1,114 @@
{
"coffeescript_error": {
"level": "error"
},
"arrow_spacing": {
"name": "arrow_spacing",
"level": "warn"
},
"no_tabs": {
"name": "no_tabs",
"level": "error"
},
"no_trailing_whitespace": {
"name": "no_trailing_whitespace",
"level": "warn",
"allowed_in_comments": false,
"allowed_in_empty_lines": true
},
"max_line_length": {
"name": "max_line_length",
"value": 125,
"level": "warn",
"limitComments": true
},
"line_endings": {
"name": "line_endings",
"level": "ignore",
"value": "unix"
},
"no_trailing_semicolons": {
"name": "no_trailing_semicolons",
"level": "error"
},
"indentation": {
"name": "indentation",
"value": 4,
"level": "error"
},
"camel_case_classes": {
"name": "camel_case_classes",
"level": "error"
},
"colon_assignment_spacing": {
"name": "colon_assignment_spacing",
"level": "warn",
"spacing": {
"left": 0,
"right": 1
}
},
"no_implicit_braces": {
"name": "no_implicit_braces",
"level": "ignore",
"strict": true
},
"no_plusplus": {
"name": "no_plusplus",
"level": "ignore"
},
"no_throwing_strings": {
"name": "no_throwing_strings",
"level": "error"
},
"no_backticks": {
"name": "no_backticks",
"level": "error"
},
"no_implicit_parens": {
"name": "no_implicit_parens",
"level": "ignore"
},
"no_empty_param_list": {
"name": "no_empty_param_list",
"level": "warn"
},
"no_stand_alone_at": {
"name": "no_stand_alone_at",
"level": "ignore"
},
"space_operators": {
"name": "space_operators",
"level": "warn"
},
"duplicate_key": {
"name": "duplicate_key",
"level": "error"
},
"empty_constructor_needs_parens": {
"name": "empty_constructor_needs_parens",
"level": "ignore"
},
"cyclomatic_complexity": {
"name": "cyclomatic_complexity",
"value": 10,
"level": "ignore"
},
"newlines_after_classes": {
"name": "newlines_after_classes",
"value": 3,
"level": "ignore"
},
"no_unnecessary_fat_arrows": {
"name": "no_unnecessary_fat_arrows",
"level": "warn"
},
"missing_fat_arrows": {
"name": "missing_fat_arrows",
"level": "ignore"
},
"non_empty_constructor_needs_parens": {
"name": "non_empty_constructor_needs_parens",
"level": "ignore"
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,205 @@
#!/usr/bin/env node
'use strict';
var fs = require('fs');
var path = require('path');
var mkdirp = require('mkdirp');
var jsdom = require('jsdom');
var Q = require('q');
var onlyStandAlone = [
"0117-basic-routing-show-hide-map-example.html"
];
var isAnExample = function(filename) {
if (filename === '0000-viewer.html') {
return false;
}
return /[0-9][0-9][0-9][0-9].*\.html/.test(filename);
};
var isJavascript = function(filename) {
return /.*\.js/.test(filename);
};
var deleteFileIfJavascript = function(filename) {
var df = Q.defer();
if (isJavascript(filename)) {
fs.unlink(filename, function() {
df.resolve();
});
} else {
df.resolve();
}
return df.promise;
};
var cleanJavascriptFilesFromControllersDirectory = function(dir) {
var df = Q.defer();
fs.readdir(dir, function(err, list) {
var l = [];
var files = list.map(function(file) {
return path.join(dir, file);
});
files.forEach(deleteFileIfJavascript);
Q.allSettled(l).then(function(result) {
df.resolve();
});
});
return df.promise;
};
var writeController = function(script, examplefile, controllers_directory) {
var df = Q.defer();
var scriptLines = script.split('\n');
var outfilename;
var outScript = [];
for (var i = 0; i < scriptLines.length; i++) {
var line = scriptLines[i];
// Remove empty lines
if (line.replace(/^\s+|\s+$/g, '') === '') {
continue;
}
// Remove the module initializacion line
if (line.search('angular.module') !== -1) {
continue;
}
// Extract controller name
if (line.search('app.controller') !== -1 && !outfilename) {
var controller = line.match(/app.controller\((\'|\")([^'"]*)/);
if (controller && controller.length > 2 && controller[2]) {
outfilename = controller[2] + '.js';
}
}
outScript.push(line);
}
if (outfilename) {
outfilename = path.join(controllers_directory, outfilename);
if (!fs.existsSync(outfilename)) {
fs.writeFile(outfilename, outScript.join('\n'), function() {
df.resolve();
});
} else {
console.log('The controller name is duplicated: ' + outfilename)
df.reject();
}
} else {
console.log('Can\'t identify the controller name in the example ' + examplefile)
df.reject();
}
return df.promise;
};
var generateControllersFromExamples = function(examples_directory, controllers_directory) {
var df = Q.defer();
fs.readdir(examples_directory, function(err, list) {
var l = [];
list.forEach(function(filename) {
if (isAnExample(filename)) {
var html = fs.readFileSync(path.join(__dirname, 'examples', filename));
jsdom.env({
html: html.toString(),
done: function(err, window) {
var scripts = window.document.getElementsByTagName('script');
var last = scripts.length -1;
var script = scripts[last].innerHTML;
l.push(writeController(script, filename, controllers_directory));
}
});
}
});
Q.allSettled(l).then(function() {
df.resolve();
});
});
return df.promise;
};
var extractId = function(filename) {
var arr = filename.replace('.html', '').split('-');
arr.splice(0,2);
return arr.join('-');
};
var extractTitle = function(filename) {
var html = fs.readFileSync(path.join(__dirname, 'examples', filename));
var title;
var arr = html.toString().split('\n');
for (var i = 0; i< arr.length; i++) {
var line = arr[i];
if (line.search('<h1>') !== -1) {
title = line.replace('<h1>', '').replace('</h1>', '').replace(/^ */, '');
}
}
return title;
};
var extractDescription = function(filename) {
};
var extractDate = function(filename) {
var stats = fs.statSync(filename);
return stats.mtime;
};
var generateExamplesJSONFile = function(examples_directory, json_file) {
var df = Q.defer();
var examples = {};
fs.readdir(examples_directory, function(err, list) {
list.forEach(function(filename) {
if (isAnExample(filename)) {
var section = filename.split('-')[1];
var id = extractId(filename);
var extUrl = filename;
var title = extractTitle(filename);
var description = extractDescription(filename);
var date = extractDate(path.join(examples_directory, filename));
if (!(section in examples)) {
examples[section] = [];
}
examples[section].push({
date: date,
section: section,
onlyStandAlone: onlyStandAlone.indexOf(extUrl) !== -1,
id: '/' + section + '/' + id,
extUrl: extUrl,
title: title,
description: description
});
}
});
fs.writeFile(json_file, JSON.stringify(examples, null, 4), function(err) {
df.resolve();
});
});
return df.promise;
};
var controllers_directory = path.join(__dirname, 'examples', 'js', 'controllers');
mkdirp(controllers_directory, function(err) {
cleanJavascriptFilesFromControllersDirectory(controllers_directory).then(function() {
var examples_directory = path.join(__dirname, 'examples');
generateControllersFromExamples(examples_directory, controllers_directory).then(function() {
var json_file = path.join(__dirname, 'examples', 'json', 'examples.json');
generateExamplesJSONFile(examples_directory, json_file);
});
});
});

Some files were not shown because too many files have changed in this diff Show more