Skip to content

Commit

Permalink
Merge branch 'simplify-build' of https://github.com/nervo/OwlCarousel2
Browse files Browse the repository at this point in the history
…into nervo-simplify-build
  • Loading branch information
greg5green committed Jun 28, 2015
2 parents 1be723c + 0fe576c commit 52cdac3
Show file tree
Hide file tree
Showing 11 changed files with 130 additions and 411 deletions.
41 changes: 16 additions & 25 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,24 +97,21 @@ module.exports = function(grunt) {
},
dist: {
options: {
outputStyle: 'nested'
},
files: [ {
outputStyle: 'nested',
expand: true,
flatten: true,
cwd: 'src/scss/',
src: '*scss',
dest: 'src/css/',
ext: '.css',
extDot: 'last'
} ]
flatten: true
},
files: {
'dist/assets/<%= pkg.name %>.css': 'src/scss/<%= pkg.name %>.scss',
'dist/assets/owl.theme.default.css': 'src/scss/owl.theme.default.scss',
'dist/assets/owl.theme.green.css': 'src/scss/owl.theme.green.scss'
}
}
},

concat: {
dist: {
files: {
'dist/assets/owl.carousel.css': [ 'src/css/*.css', '!src/css/owl.theme*.css' ],
'dist/<%= pkg.name %>.js': '<%= app.src.scripts %>'
}
}
Expand All @@ -123,9 +120,9 @@ module.exports = function(grunt) {
cssmin: {
dist: {
files: {
'dist/assets/<%= pkg.name %>.min.css': [ 'src/css/*.css', '!src/css/owl.theme*.css' ],
'dist/assets/owl.theme.default.min.css': 'src/css/owl.theme.default.css',
'dist/assets/owl.theme.green.min.css': 'src/css/owl.theme.green.css'
'dist/assets/<%= pkg.name %>.min.css': 'dist/assets/<%= pkg.name %>.css',
'dist/assets/owl.theme.default.min.css': 'dist/assets/owl.theme.default.css',
'dist/assets/owl.theme.green.min.css': 'dist/assets/owl.theme.green.css'
}
}
},
Expand Down Expand Up @@ -157,20 +154,13 @@ module.exports = function(grunt) {
uglify: {
dist: {
files: {
'dist/<%= pkg.name %>.min.js': '<%= app.src.scripts %>'
'dist/<%= pkg.name %>.min.js': 'dist/<%= pkg.name %>.js'
}
}
},

// copy
copy: {
themes: {
expand: true,
flatten: true,
cwd: 'src/css/',
src: [ 'owl.theme.*' ],
dest: 'dist/assets'
},
distImages: {
expand: true,
flatten: true,
Expand Down Expand Up @@ -199,6 +189,7 @@ module.exports = function(grunt) {
src: [ 'css/*.css', 'vendors/*.js', 'vendors/*.map', 'img/*.*', 'js/*.*' ],
dest: '<%= app.docs.dest %>/assets/'
},

readme: {
files: [ {
'dist/LICENSE': 'LICENSE',
Expand Down Expand Up @@ -237,15 +228,15 @@ module.exports = function(grunt) {
},
sassDist: {
files: [ 'src/**/*.scss' ],
tasks: [ 'sass:dist', 'concat:dist', 'cssmin:dist', 'copy:themes','copy:distToDocs' ]
tasks: [ 'sass:dist', 'cssmin:dist', 'copy:distToDocs' ]
},
jsDocs: {
files: [ '<%= app.docs.src %>/assets/**/*.js' ],
tasks: [ 'copy:docsAssets' ]
},
js: {
files: [ 'src/**/*.js' ],
tasks: [ 'jscs:dist', 'jshint:dist', 'qunit:dist', 'uglify:dist', 'concat:dist', 'copy:distToDocs', 'copy:srcToDocs' ]
tasks: [ 'jscs:dist', 'jshint:dist', 'qunit:dist', 'concat:dist', 'uglify:dist', 'copy:distToDocs', 'copy:srcToDocs' ]
},
helpers: {
files: [ '<%= app.docs.src %>/helpers/*.js' ],
Expand Down Expand Up @@ -284,7 +275,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('assemble');

// tasks
grunt.registerTask('dist', [ 'clean:dist', 'sass:dist', 'concat:dist', 'cssmin:dist', 'copy:themes', 'copy:distImages', 'jscs:dist', 'uglify:dist', 'copy:readme' ]);
grunt.registerTask('dist', [ 'clean:dist', 'sass:dist', 'concat:dist', 'cssmin:dist', 'copy:distImages', 'jscs:dist', 'uglify:dist', 'copy:readme' ]);

grunt.registerTask('docs', [ 'dist', 'clean:docs', 'assemble', 'sass:docs', 'copy:docsAssets', 'copy:distToDocs', 'zip' ]);

Expand Down
29 changes: 0 additions & 29 deletions src/css/owl.animate.css

This file was deleted.

9 changes: 0 additions & 9 deletions src/css/owl.autoheight.css

This file was deleted.

74 changes: 0 additions & 74 deletions src/css/owl.carousel.css

This file was deleted.

12 changes: 0 additions & 12 deletions src/css/owl.lazyload.css

This file was deleted.

51 changes: 0 additions & 51 deletions src/css/owl.theme.default.css

This file was deleted.

51 changes: 0 additions & 51 deletions src/css/owl.theme.green.css

This file was deleted.

51 changes: 0 additions & 51 deletions src/css/owl.video.css

This file was deleted.

Loading

0 comments on commit 52cdac3

Please sign in to comment.