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

Commit

Permalink
add non-minified files to dist
Browse files Browse the repository at this point in the history
  • Loading branch information
linkesch committed Aug 6, 2014
1 parent 7d3de7a commit cfdf223
Show file tree
Hide file tree
Showing 13 changed files with 2,587 additions and 11 deletions.
53 changes: 48 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ module.exports = function(grunt) {
banner: '/*! \n * <%= pkg.name %> v<%= pkg.version %> - <%= pkg.description %>\n *\n * <%= pkg.homepage %>\n * \n * Copyright (c) 2014 <%= pkg.author.name %> (<%= pkg.author.url %>)\n * Released under the <%= pkg.license %> license\n */\n\n',

uglify: {
build: {
dist: {
options: {
banner: '<%= banner %>'
},
src: ['src/js/medium-editor-insert-plugin.js', 'src/js/medium-editor-insert-images.js', 'src/js/medium-editor-insert-maps.js', 'src/js/medium-editor-insert-embeds.js', 'src/js/medium-editor-insert-tables.js'],
src: ['src/js/medium-editor-insert-plugin.js', 'src/js/*.js'],
dest: 'dist/js/<%= pkg.name %>.all.min.js'
},
build2: {
addons: {
options: {
banner: '<%= banner %>'
},
Expand All @@ -26,6 +26,28 @@ module.exports = function(grunt) {
}
},

concat: {
dist: {
options: {
banner: '<%= banner %>'
},
src: ['src/js/medium-editor-insert-plugin.js', 'src/js/*.js'],
dest: 'dist/js/<%= pkg.name %>.all.js'
},
addons: {
options: {
banner: '<%= banner %>'
},
files: [{
expand: true,
cwd: 'src/js',
src: '**/*.js',
dest: 'dist/js/addons',
ext: '.js'
}]
}
},

jshint: {
files: ['src/js/*.js', 'src/js/**/*.js', 'test/*.js', 'test/**/*.js'],
options: {
Expand Down Expand Up @@ -57,6 +79,9 @@ module.exports = function(grunt) {

csso: {
dist: {
options: {
banner: '<%= banner %>'
},
expand: true,
cwd: 'dist/css/',
src: ['*.css', '!*.min.css'],
Expand All @@ -65,6 +90,22 @@ module.exports = function(grunt) {
}
},

usebanner: {
dist: {
options: {
banner: '<%= banner %>',
linebreak: false
},
files: [{
expand: true,
cwd: 'dist/css/',
src: ['*.css', '!*.min.css'],
dest: 'dist/css/',
ext: '.css'
}]
}
},

watch: {
scripts: {
files: ['src/js/**/*.js'],
Expand All @@ -88,13 +129,15 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-autoprefixer');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-csso');
grunt.loadNpmTasks('grunt-banner');

grunt.registerTask('test', ['jshint', 'qunit']);
grunt.registerTask('js', ['test', 'uglify']);
grunt.registerTask('css', ['sass', 'autoprefixer', 'csso']);
grunt.registerTask('js', ['test', 'uglify', 'concat']);
grunt.registerTask('css', ['sass', 'autoprefixer', 'csso', 'usebanner']);
grunt.registerTask('default', ['js', 'css']);

};
9 changes: 9 additions & 0 deletions dist/css/medium-editor-insert-plugin-frontend.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*!
* medium-editor-insert-plugin v0.2.8 - jQuery insert plugin for MediumEditor
*
* https://github.com/orthes/medium-editor-insert-plugin
*
* Copyright (c) 2014 Pavel Linkesch (http://linkesch.sk)
* Released under the MIT license
*/

.mediumInsert {
margin: -1em 0 1em; }
.mediumInsert figure {
Expand Down
9 changes: 9 additions & 0 deletions dist/css/medium-editor-insert-plugin-frontend.min.css

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

14 changes: 11 additions & 3 deletions dist/css/medium-editor-insert-plugin.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*!
* medium-editor-insert-plugin v0.2.8 - jQuery insert plugin for MediumEditor
*
* https://github.com/orthes/medium-editor-insert-plugin
*
* Copyright (c) 2014 Pavel Linkesch (http://linkesch.sk)
* Released under the MIT license
*/

.mediumInsert {
margin: -1em 0 1em; }
.mediumInsert figure {
Expand Down Expand Up @@ -68,9 +77,8 @@
.medium-editor-insert-plugin[contenteditable]:focus, .medium-editor-insert-plugin [contenteditable]:focus {
outline: 0px solid transparent; }
.medium-editor-insert-plugin * {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box; }
-moz-box-sizing: content-box;
box-sizing: content-box; }
.medium-editor-insert-plugin p {
margin: 1em 0; }
.medium-editor-insert-plugin progress {
Expand Down
11 changes: 10 additions & 1 deletion dist/css/medium-editor-insert-plugin.min.css

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

Loading

0 comments on commit cfdf223

Please sign in to comment.