Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 4adfce2

Browse files
committed
chore(grunt): clean up unused data and tasks
1 parent 30bbd0e commit 4adfce2

File tree

2 files changed

+6
-33
lines changed

2 files changed

+6
-33
lines changed

gruntFile.js

+6-32
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ module.exports = function (grunt) {
88
grunt.registerTask('default', ['jshint', 'karma:unit']);
99
grunt.registerTask('serve', ['karma:continuous', 'dist', 'build:gh-pages', 'connect:continuous', 'watch']);
1010
grunt.registerTask('dist', ['ngmin', 'uglify']);
11+
//
12+
1113

1214
// HACK TO ACCESS TO THE COMPONENT-PUBLISHER
1315
function fakeTargetTask(prefix){
@@ -28,11 +30,14 @@ module.exports = function (grunt) {
2830
grunt.registerTask('publish', fakeTargetTask('publish'));
2931
//
3032

33+
34+
// HACK TO MAKE TRAVIS WORK
3135
var testConfig = function (configFile, customOptions) {
3236
var options = { configFile: configFile, singleRun: true };
3337
var travisOptions = process.env.TRAVIS && { browsers: [ 'Firefox', 'PhantomJS'], reporters: ['dots'] };
3438
return grunt.util._.extend(options, customOptions, travisOptions);
3539
};
40+
//
3641

3742

3843
// Project configuration.
@@ -47,21 +52,7 @@ module.exports = function (grunt) {
4752
' * @link <%= pkg.homepage %>',
4853
' * @license <%= pkg.license %>',
4954
' */',
50-
''].join('\n'),
51-
view: {
52-
humaName: 'UI.Map',
53-
repoName: 'ui-map',
54-
demoHTML: grunt.file.read('demo/demo.html'),
55-
demoJS: grunt.file.read('demo/demo.js'),
56-
css: [
57-
'assets/css/demos.css'
58-
],
59-
js: [
60-
'https://rawgithub.com/angular-ui/ui-utils/master/modules/event/event.js',
61-
'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&callback=initCall',
62-
'build/ui-map.js'
63-
]
64-
}
55+
''].join('\n')
6556
},
6657

6758
watch: {
@@ -149,23 +140,6 @@ module.exports = function (grunt) {
149140
}
150141
},
151142

152-
copy: {
153-
main: {
154-
files: [
155-
{src: ['<%= meta.view.repoName %>.js'], dest: '<%= dist %>/build/<%= meta.view.repoName %>.js', filter: 'isFile'},
156-
{src: ['demo/demo.html'], dest: '<%= dist %>/demos.html', filter: 'isFile'},
157-
{src: ['demo/demo.css'], dest: '<%= dist %>/assets/css/demos.css', filter: 'isFile'}
158-
]
159-
},
160-
template: {
161-
options: {processContent: function (content) {
162-
return grunt.template.process(content);
163-
}},
164-
files: [
165-
{src: ['<%= dist %>/.tmpl/index.tmpl'], dest: '<%= dist %>/index.html'}
166-
]
167-
}
168-
},
169143
changelog: {
170144
options: {
171145
dest: 'CHANGELOG.md'

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"angular-ui-publisher": "1.x",
1212
"grunt": "0.4.x",
1313
"grunt-contrib-connect": "0.5.x",
14-
"grunt-contrib-copy": "0.5.x",
1514
"grunt-contrib-jshint": "0.8.x",
1615
"grunt-contrib-uglify": "0.2.x",
1716
"grunt-contrib-watch": "0.5.x",

0 commit comments

Comments
 (0)