Skip to content

Commit 2941d43

Browse files
committed
Build files
1 parent bac9f92 commit 2941d43

File tree

4 files changed

+116
-0
lines changed

4 files changed

+116
-0
lines changed

banner

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* @license dotJEM Angular Tree
3+
* (c) 2012-2013 dotJEM (Jens Melgaard)
4+
* License: MIT
5+
*
6+
* @module dotjem.angular.tree
7+
*/

bower.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "dotjem-angular-tree",
3+
"version": "0.1.0",
4+
"main": "./dotjem-angular-tree.js",
5+
"dependencies": {
6+
"angular": ">= 1.2.16"
7+
}
8+
}

gruntfile.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*global module:false*/
2+
module.exports = function (grunt) {
3+
"use strict";
4+
5+
// Project configuration.
6+
grunt.initConfig({
7+
pkg: grunt.file.readJSON('package.json'),
8+
banner: grunt.file.read('banner'),
9+
clean: {
10+
src: ['build', 'temp']
11+
},
12+
13+
concat: {
14+
options: {
15+
banner: '<%= banner %>',
16+
stripBanners: true
17+
},
18+
core: {
19+
src: 'src/directives/dxTree.js',
20+
dest: 'build/<%= pkg.name %>.js'
21+
}
22+
},
23+
24+
uglify: {
25+
options: {
26+
banner: '<%= banner %>'
27+
},
28+
core: {
29+
src: '<%= concat.core.dest %>',
30+
dest: 'build/<%= pkg.name %>.min.js'
31+
}
32+
},
33+
34+
watch: {
35+
dev: {
36+
files: [
37+
'src/**/*.js'
38+
],
39+
tasks: ['build']
40+
}
41+
},
42+
43+
ngdocs: {
44+
options: {
45+
dest: 'temp',
46+
title: "dotJEM Angular Tree",
47+
html5Mode: false
48+
},
49+
all: ['src/**/*.js']
50+
}
51+
});
52+
53+
// These plugins provide necessary tasks.
54+
grunt.loadNpmTasks('grunt-contrib-clean');
55+
grunt.loadNpmTasks('grunt-contrib-concat');
56+
grunt.loadNpmTasks('grunt-contrib-uglify');
57+
grunt.loadNpmTasks('grunt-contrib-watch');
58+
grunt.loadNpmTasks('grunt-contrib-connect');
59+
grunt.loadNpmTasks('grunt-contrib-copy');
60+
grunt.loadNpmTasks('grunt-ngdocs');
61+
62+
grunt.registerTask('default', ['clean', 'build']);
63+
grunt.registerTask('develop', ['clean', 'build', 'connect', 'watch']);
64+
grunt.registerTask('build', ['concat', 'uglify']);
65+
};

package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "dotjem-angular-tree",
3+
"title": "dotJEM Angular Tree",
4+
"description": "Directives for creating recursion.",
5+
"version": "0.1.0",
6+
"homepage": "https://github.com/dotJEM/angular-tree",
7+
"author": {
8+
"name": "dotjem",
9+
"url": "https://github.com/dotJEM"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/dotJEM/angular-tree.git"
14+
},
15+
"bugs": {
16+
"url": "https://github.com/dotJEM/angular-tree/issues"
17+
},
18+
"licenses": [
19+
{
20+
"type": "MIT",
21+
"url": "https://github.com/dotJEM/angular-tree/blob/master/LICENSE"
22+
}
23+
],
24+
"dependencies": {},
25+
"devDependencies": {
26+
"grunt": "~0.4.2",
27+
"grunt-contrib-concat": "~0.3.0",
28+
"grunt-contrib-clean": "~0.5.0",
29+
"grunt-contrib-uglify": "~0.2.7",
30+
"grunt-contrib-watch": "~0.5.2",
31+
"grunt-contrib-connect": "~0.6.0",
32+
"grunt-contrib-copy": "~0.5.0",
33+
"grunt-ngdocs": "~0.1.9"
34+
},
35+
"keywords": []
36+
}

0 commit comments

Comments
 (0)