Skip to content

Commit

Permalink
Init v3
Browse files Browse the repository at this point in the history
  • Loading branch information
olton committed Apr 30, 2015
1 parent 7c660fd commit 0dfb6d3
Show file tree
Hide file tree
Showing 626 changed files with 89,601 additions and 115,005 deletions.
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Enforce Unix newlines
*.css text eol=lf
*.html text eol=lf
*.js text eol=lf
*.json text eol=lf
*.less text eol=lf
*.md text eol=lf
*.svg text eol=lf
*.yml text eol=lf
# Don't diff or textually merge source maps
*.map binary

metro-theme.css linguist-vendored=false
metro.css linguist-vendored=false
metro.js linguist-vendored=false
35 changes: 32 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
# Ignore docs files

# Numerous always-ignore extensions
*.diff
*.err
*.log
*.orig
*.rej
*.swo
*.swp
*.vi
*.zip
*~

# OS or Editor folders
._*
.cache
.DS_Store
.idea
.zip
*id_rsa*
*.nupkg
.project
.settings
.tmproj
*.esproj
*.sublime-project
*.sublime-workspace
nbproject
Thumbs.db

# grunt-html-validation
validation-report.json
validation-status.json

# Folders to ignore
bower_components
node_modules
199 changes: 0 additions & 199 deletions CHANGELOG.md

This file was deleted.

113 changes: 113 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
module.exports = function(grunt) {

"use strict";

require('load-grunt-tasks')(grunt);

var autoprefixer = require('autoprefixer-core');

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*!\n' +
' * Metro UI CSS v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
' * Copyright 2012-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' +
' */\n',

clean: {
build: ['build'],
docs: ['docs/css/metro*.css', 'docs/js/metro*.js']
},

concat: {
options: {
banner: '<%= banner %>',
stripBanners: false
},
metro: {
src: [
'js/requirements.js',
'js/global.js',
'js/widget.js',
'js/utils/*.js',
'js/widgets/*.js'
],
dest: 'build/js/<%= pkg.name %>.js'
}
},

uglify: {
options: {
banner: '<%= banner %>',
stripBanners: false,
sourceMap: false
},
metro: {
src: '<%= concat.metro.dest %>',
dest: 'build/js/<%= pkg.name %>.min.js'
}
},

less: {
options: {
paths: ['less'],
strictMath: false
},
compileCore: {
src: 'less/<%= pkg.name %>.less',
dest: 'build/css/<%= pkg.name %>.css'
},
compileFont: {
src: 'less/metro-icons.less',
dest: 'build/css/metro-icons.css'
}
},

postcss: {
options: {
processors: [
autoprefixer({ browsers: ['> 5%'] }).postcss
]
},
dist: { src: 'build/css/*.css' }
},

cssmin: {
minCore: {
src: 'build/css/<%= pkg.name %>.css',
dest: 'build/css/<%= pkg.name %>.min.css'
},
minFont: {
src: 'build/css/metro-icons.css',
dest: 'build/css/metro-icons.min.css'
}
},

copy: {
docs_css_core: {
src: 'build/css/<%= pkg.name %>.css',
dest: 'docs/css/<%= pkg.name %>.css'
},
docs_css_font: {
src: 'build/css/metro-icons.css',
dest: 'docs/css/metro-icons.css'
},
docs_js: {
src: 'build/js/<%= pkg.name %>.js',
dest: 'docs/js/<%= pkg.name %>.js'
}
},

watch: {
scripts: {
files: ['js/*.js', 'js/utils/*.js', 'js/widgets/*js'],
tasks: ['concat', 'uglify', 'copy:docs_js']
}
}
});

grunt.registerTask('default', [
'clean', 'concat', 'uglify', 'less', 'postcss', 'cssmin', 'copy', 'watch'
]);

};
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2012-2014 Sergey Pimenov
Copyright (c) 2012-2015 Sergey Pimenov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 0 additions & 5 deletions PULL-REQUESTS.md

This file was deleted.

Loading

0 comments on commit 0dfb6d3

Please sign in to comment.