Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = function (grunt) {
'use strict';

// load dependencies
require('load-grunt-tasks')(grunt, {pattern: ['grunt-contrib-*', 'grunt-targethtml', 'grunt-usemin']});
require('load-grunt-tasks')(grunt, {pattern: ['grunt-contrib-*', 'grunt-targethtml', 'grunt-usemin', 'grunt-cleanempty']});
grunt.loadTasks('tasks');

// Project configuration.
Expand Down Expand Up @@ -72,6 +72,8 @@ module.exports = function (grunt) {
src: [
'extensibility/node/**',
'!extensibility/node/spec/**',
'!extensibility/node/node_modules/**/{test,tst}/**/*',
'!extensibility/node/node_modules/**/examples/**/*',
'filesystem/impls/appshell/node/**',
'!filesystem/impls/appshell/node/spec/**'
]
Expand All @@ -82,15 +84,21 @@ module.exports = function (grunt) {
dest: 'dist/',
cwd: 'src/',
src: [
'extensions/default/**/*',
'!extensions/default/*/unittest-files/**/*',
'!extensions/default/*/unittests.js',
'extensions/default/*/**/*',
'!extensions/default/{*/thirdparty,**/node_modules}/**/test/**/*',
'!extensions/default/{*/thirdparty,**/node_modules}/**/doc/**/*',
'!extensions/default/{*/thirdparty,**/node_modules}/**/examples/**/*',
'!extensions/default/*/thirdparty/**/*.htm{,l}',
'extensions/dev/*',
'extensions/samples/**/*',
'thirdparty/CodeMirror2/addon/{,*/}*',
'thirdparty/CodeMirror2/keymap/{,*/}*',
'thirdparty/CodeMirror2/lib/{,*/}*',
'thirdparty/CodeMirror2/mode/{,*/}*',
'!thirdparty/CodeMirror2/mode/**/*.html',
'!thirdparty/CodeMirror2/**/*test.js',
'thirdparty/CodeMirror2/theme/{,*/}*',
'thirdparty/i18n/*.js',
'thirdparty/text/*.js'
Expand All @@ -106,6 +114,13 @@ module.exports = function (grunt) {
]
}
},
cleanempty: {
options: {
force: true,
files: false
},
src: ['dist/**/*'],
},
less: {
dist: {
files: {
Expand Down Expand Up @@ -330,6 +345,7 @@ module.exports = function (grunt) {
/*'cssmin',*/
/*'uglify',*/
'copy',
'cleanempty',
'usemin',
'build-config'
]);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"q": "0.9.2",
"semver": "^4.1.0",
"jshint": "2.1.4",
"xmldoc": "^0.1.2"
"xmldoc": "^0.1.2",
"grunt-cleanempty": "1.0.3"
},
"scripts": {
"postinstall": "grunt install",
Expand Down
5 changes: 3 additions & 2 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"jasmine-node": "1.11.0",
"grunt-jasmine-node": "0.1.0",
"grunt-cli": "0.1.9",
"phantomjs": "1.9.11",
"phantomjs": "1.9.13",
"grunt-lib-phantomjs": "0.3.0",
"grunt-contrib-jshint": "0.6.0",
"grunt-contrib-watch": "0.4.3",
Expand All @@ -59,7 +59,8 @@
"q": "0.9.2",
"semver": "^4.1.0",
"jshint": "2.1.4",
"xmldoc": "^0.1.2"
"xmldoc": "^0.1.2",
"grunt-cleanempty": "1.0.3"
},
"scripts": {
"postinstall": "grunt install",
Expand Down