Skip to content

Commit

Permalink
Merge branch 'nervo-simplify-build' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
greg5green committed Jun 28, 2015
2 parents 1be723c + d4958ee commit c6d6c26
Show file tree
Hide file tree
Showing 11 changed files with 127 additions and 410 deletions.
37 changes: 13 additions & 24 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,22 +99,17 @@ module.exports = function(grunt) {
options: {
outputStyle: 'nested'
},
files: [ {
expand: true,
flatten: true,
cwd: 'src/scss/',
src: '*scss',
dest: 'src/css/',
ext: '.css',
extDot: 'last'
} ]
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 +118,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 +152,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 +187,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 +226,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 +273,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 c6d6c26

Please sign in to comment.