Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-dedukhin committed May 12, 2016
1 parent 4679067 commit c502641
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .jshintrc
Expand Up @@ -2,7 +2,7 @@
"quotmark": "single",
"node": true,
"globals": {
"angular": false,
"angular": true,
"document": false,
"jasmine": false,
"module": false,
Expand Down
9 changes: 6 additions & 3 deletions Gruntfile.js
Expand Up @@ -16,7 +16,10 @@ module.exports = function(grunt) {
},
copy: {
main: {
files: [
files: [{
src: './bundle.js',
dest: 'dist/'
}
// {expand: true, cwd: 'demo', src: ['script.js'], dest: 'dist'} // partials html file
// {expand: true, cwd: 'app', src: ['*.*'], dest: 'dist/'}
]
Expand All @@ -39,7 +42,7 @@ module.exports = function(grunt) {
}
},
jsbeautifier: {
files: ['*.js', 'src/**/*.js', 'test/unit/*.js', 'demo/*.js'],
files: ['src/**/*.js', 'test/unit/*.js', 'demo/*.js'],
options: {
js: {
indent_size: 2
Expand Down Expand Up @@ -106,7 +109,7 @@ module.exports = function(grunt) {
// Register Task
grunt.registerTask('dev', ['browserSync', 'watch']);
grunt.registerTask('check', ['jshint', 'jsbeautifier']); // use this before commit
grunt.registerTask('build', ['check', 'clean', 'concat', 'uglify']);
grunt.registerTask('build', ['check', 'clean', 'concat', 'uglify', 'copy']);
grunt.registerTask('test', ['build', 'karma']);
grunt.registerTask('cov', ['coveralls']);
};
61 changes: 61 additions & 0 deletions bundle.js
@@ -0,0 +1,61 @@
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

/******/ // The require function
/******/ function __webpack_require__(moduleId) {

/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;

/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };

/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ // Flag the module as loaded
/******/ module.loaded = true;

/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }


/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;

/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;

/******/ // __webpack_public_path__
/******/ __webpack_require__.p = '';

/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(1);


/***/ },
/* 1 */
/***/ function(module, exports) {

'use strict';

angular.module('validation', ['validation.provider', 'validation.directive']);
angular.module('validation.provider', []);
angular.module('validation.directive', ['validation.provider']);

/***/ }
/******/ ]);
61 changes: 61 additions & 0 deletions dist/bundle.js
@@ -0,0 +1,61 @@
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

/******/ // The require function
/******/ function __webpack_require__(moduleId) {

/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;

/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };

/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ // Flag the module as loaded
/******/ module.loaded = true;

/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }


/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;

/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;

/******/ // __webpack_public_path__
/******/ __webpack_require__.p = '';

/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(1);


/***/ },
/* 1 */
/***/ function(module, exports) {

'use strict';

angular.module('validation', ['validation.provider', 'validation.directive']);
angular.module('validation.provider', []);
angular.module('validation.directive', ['validation.provider']);

/***/ }
/******/ ]);
2 changes: 2 additions & 0 deletions main.js
@@ -0,0 +1,2 @@
var angular = require('./node_modules/angular/angular.js');
var validationApp = require('./src/module.js');
2 changes: 0 additions & 2 deletions src/main.js

This file was deleted.

0 comments on commit c502641

Please sign in to comment.