Skip to content

Commit

Permalink
add compress.js for minify
Browse files Browse the repository at this point in the history
  • Loading branch information
olton committed Dec 12, 2013
1 parent b45ffa0 commit a3b129c
Show file tree
Hide file tree
Showing 161 changed files with 30,777 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
.zip
*id_rsa*
*.nupkg
compress
61 changes: 61 additions & 0 deletions compress/compressor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
var compressor = require('node-minify');
var project_root = '/Projects/Metro-UI-CSS/',
module_path = project_root+'docs/js/metro/',
css_path = project_root+'docs/css/',
js_compile_path = project_root+'docs/js/',
css_compile_path = project_root+'docs/css/';

new compressor.minify({
type: 'gcc',
language: 'ECMASCRIPT5',
fileIn: [
module_path+'metro-core.js',
module_path+'metro-touch-handler.js',
module_path+'metro-accordion.js',
module_path+'metro-button-set.js',
module_path+'metro-date-format.js',
module_path+'metro-calendar.js',
module_path+'metro-datepicker.js',
module_path+'metro-carousel.js',
module_path+'metro-countdown.js',
module_path+'metro-dropdown.js',
module_path+'metro-input-control.js',
module_path+'metro-live-tile.js',
module_path+'metro-progressbar.js',
module_path+'metro-rating.js',
module_path+'metro-slider.js',
module_path+'metro-tab-control.js',
module_path+'metro-table.js',
module_path+'metro-times.js',
module_path+'metro-dialog.js',
module_path+'metro-notify.js',
module_path+'metro-listview.js',
module_path+'metro-treeview.js',
module_path+'metro-fluentmenu.js',
module_path+'metro-hint.js',
module_path+'metro-streamer.js',
module_path+'metro-scroll.js'
],
fileOut: js_compile_path+'metro.min.js',
callback: function(err, min){
console.log(err);
}
});

new compressor.minify({
type: 'yui-css',
fileIn: css_path+'metro-bootstrap.css',
fileOut: css_compile_path+'metro.min.css',
callback: function(err, min){
console.log(err);
}
});

new compressor.minify({
type: 'yui-css',
fileIn: css_path+'metro-bootstrap-responsive.css',
fileOut: css_compile_path+'metro-responsive.min.css',
callback: function(err, min){
console.log(err);
}
});
4 changes: 4 additions & 0 deletions compress/node_modules/node-minify/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions compress/node_modules/node-minify/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

250 changes: 250 additions & 0 deletions compress/node_modules/node-minify/Readme.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions compress/node_modules/node-minify/examples/public/css/base.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions compress/node_modules/node-minify/examples/public/css/base2.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a3b129c

Please sign in to comment.