fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring: handle wlxmlDocument events in a separate module
[fnpeditor.git]
/
Gruntfile.js
diff --git
a/Gruntfile.js
b/Gruntfile.js
index
5f66014
..
55ee1c8
100644
(file)
--- a/
Gruntfile.js
+++ b/
Gruntfile.js
@@
-4,8
+4,8
@@
module.exports = function(grunt) {
requirejs: {
compile: {
options: {
requirejs: {
compile: {
options: {
- baseUrl: '',
- mainConfigFile: 'entrypoint.js',
+ baseUrl: '
src/editor
',
+ mainConfigFile: '
src/editor/
entrypoint.js',
out: 'build/rng.js',
name: 'entrypoint',
include: ['libs/require']
out: 'build/rng.js',
name: 'entrypoint',
include: ['libs/require']
@@
-19,12
+19,12
@@
module.exports = function(grunt) {
yuicompress: true
},
files: {
yuicompress: true
},
files: {
- 'build/rng.css': 'styles/main.less'
+ 'build/rng.css': 's
rc/editor/s
tyles/main.less'
},
},
},
jshint: {
},
},
},
jshint: {
- all: ['Gruntfile.js', '
modules/**/*.js', 'views/**/*.js', 'fnpjs
/**/*.js'],
+ all: ['Gruntfile.js', '
src
/**/*.js'],
options: {
jshintrc: '.jshintrc'
}
options: {
jshintrc: '.jshintrc'
}
@@
-35,5
+35,7
@@
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.registerTask('default', ['requirejs']);
+ grunt.registerTask('build', ['requirejs', 'less:production']);
+ grunt.registerTask('lint', ['jshint']);
+ grunt.registerTask('default', ['build']);
};
\ No newline at end of file
};
\ No newline at end of file