Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
- Remove lie.js as a dependency - it should be user responsibility to add Promise polyfill to support older browsers if it is required.
  • Loading branch information
Tsvetan Tsvetkov committed Apr 28, 2016
1 parent 9871d7e commit 9d4604c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 20 deletions.
4 changes: 2 additions & 2 deletions License.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2012 Tsvetan Tsvetkov
Copyright 2016 Tsvetan Tsvetkov

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -10,4 +10,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
38 changes: 22 additions & 16 deletions grunt/uglify.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,32 @@
}
];

module.exports = {
'options': {
'banner': '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */\n',
'preserveComments': false
},
module.exports = function(grunt) {

'default': {
'files': files
},

'dev': {
return {
'options': {
'beautify': true,
'compress': false,
'mangle': false,
'preserveComments': true
'banner': '/*! <%= pkg.libraryName %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n\n' + grunt.file.read('License.txt') +
'*/\n\n',
'preserveComments': false,
'compress': true,
'mangle': true
},

'default': {
'files': files
},

'files': files
'dev': {
'options': {
'beautify': true,
'compress': false,
'mangle': false,
'preserveComments': true
},

'files': files
}
}
};
}());
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name" : "HTML5Notification",
"libraryName" : "HTML5 Notification",
"description" : "Notification polyfill",
"version" : "0.2.0",
"homepage" : "https://github.com/ttsvetko/HTML5-Desktop-Notifications",
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ var server = http.createServer(function(req, res){
});

// Listen
server.listen(8080);
server.listen(8765);
1 change: 0 additions & 1 deletion src/vendors/lie.polyfill.min.js

This file was deleted.

0 comments on commit 9d4604c

Please sign in to comment.