Skip to content

Commit 3a4f27d

Browse files
committed
#9 add missed example files
1 parent f3df3fb commit 3a4f27d

File tree

3 files changed

+118
-0
lines changed

3 files changed

+118
-0
lines changed
+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/******/ (function(modules) { // webpackBootstrap
2+
/******/ // The module cache
3+
/******/ var installedModules = {};
4+
5+
/******/ // The require function
6+
/******/ function __webpack_require__(moduleId) {
7+
8+
/******/ // Check if module is in cache
9+
/******/ if(installedModules[moduleId])
10+
/******/ return installedModules[moduleId].exports;
11+
12+
/******/ // Create a new module (and put it into the cache)
13+
/******/ var module = installedModules[moduleId] = {
14+
/******/ exports: {},
15+
/******/ id: moduleId,
16+
/******/ loaded: false
17+
/******/ };
18+
19+
/******/ // Execute the module function
20+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21+
22+
/******/ // Flag the module as loaded
23+
/******/ module.loaded = true;
24+
25+
/******/ // Return the exports of the module
26+
/******/ return module.exports;
27+
/******/ }
28+
29+
30+
/******/ // expose the modules object (__webpack_modules__)
31+
/******/ __webpack_require__.m = modules;
32+
33+
/******/ // expose the module cache
34+
/******/ __webpack_require__.c = installedModules;
35+
36+
/******/ // __webpack_public_path__
37+
/******/ __webpack_require__.p = "";
38+
39+
/******/ // Load entry module and return exports
40+
/******/ return __webpack_require__(0);
41+
/******/ })
42+
/************************************************************************/
43+
/******/ ([
44+
/* 0 */
45+
/***/ function(module, exports) {
46+
47+
'use strict';
48+
49+
angular.module('test', [])
50+
.controller('testCtrl', ["$scope", function($scope) {
51+
52+
}])
53+
.factory('testFactory', ["$cacheFactory", function($cacheFactory) {
54+
return {};
55+
}])
56+
.service('testNotAnnotated', function() {
57+
return {};
58+
})
59+
.directive('testDirective', ["$timeout", function ($timeout) {
60+
return {
61+
restrict: 'E',
62+
controller: ["$scope", function($scope) {
63+
64+
}]
65+
};
66+
}])
67+
.service('namedFunction', namedFunction);
68+
69+
function namedFunction($dep) {
70+
$dep.do();
71+
}
72+
namedFunction.$inject = ["$dep"];
73+
74+
/***/ }
75+
/******/ ]);

examples/simple/file-to-annotate.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
'use strict';
2+
3+
angular.module('test', [])
4+
.controller('testCtrl', function($scope) {
5+
6+
})
7+
.factory('testFactory', function($cacheFactory) {
8+
return {};
9+
})
10+
.service('testNotAnnotated', function() {
11+
return {};
12+
})
13+
.directive('testDirective', function ($timeout) {
14+
return {
15+
restrict: 'E',
16+
controller: function($scope) {
17+
18+
}
19+
};
20+
})
21+
.service('namedFunction', namedFunction);
22+
23+
function namedFunction($dep) {
24+
$dep.do();
25+
}

examples/simple/webpack.config.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
var path = require('path');
2+
3+
module.exports = {
4+
context: __dirname,
5+
entry: './file-to-annotate',
6+
output: {
7+
path: __dirname + '/dist',
8+
filename: 'build.js'
9+
},
10+
resolveLoader: {
11+
fallback: path.resolve(__dirname, '../../')
12+
},
13+
module: {
14+
loaders: [
15+
{test: /\.js$/, loaders: ['loader']},
16+
]
17+
}
18+
}

0 commit comments

Comments
 (0)