Changeset 453
- Timestamp:
- 06/09/13 00:50:34 (12 years ago)
- Location:
- Dev/trunk
- Files:
-
- 1 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk
- Property svn:ignore
-
old new 1 nbproject 1 build
-
- Property svn:ignore
-
Dev/trunk/src/Gruntfile.js
r452 r453 1 /*************************************** 2 * This Gruntfile is organized with two phases, 3 * compile and build. Compile will lint HTML, 4 * JavaScript and compile LESS. The build phase 5 * creates an optimized stand-alone build that 6 * can be distributed. 7 */ 1 8 var fs = require('fs'); 2 9 var path = require('path'); … … 4 11 module.exports = function(grunt) { 5 12 13 var buildDir = '../build/'; 14 6 15 grunt.initConfig({ 7 //pkg: grunt.file.readJSON('package.json'), 8 less: { 16 copy: { 17 build: { 18 files: [ 19 {src: ['client/*.html'], dest: buildDir}, 20 {src: ['server/**', '!**/node_modules/**'], dest: buildDir}, 21 {src: ['qed-server.key', 'qed-server.pem'], dest: buildDir}, 22 ] 23 } 24 }, 25 dojo: { 9 26 options: { 10 strictImports: false, 11 dumpLineNumbers: "all" 27 dojo: 'client/dojo/dojo.js', 12 28 }, 13 all: { 29 build: { 30 options: { 31 profile: 'client/client.profile.js' 32 } 33 } 34 }, 35 htmlhint: { 36 options: { 37 htmlhintrc: ".htmlhintrc" 38 }, 39 compile: { 14 40 files: { 15 'client/qed-client/css/qed.css': 'client/qed-client/css/qed.less'41 src: ['client/*.html', 'client/qed-client/**.html'] 16 42 } 17 43 } … … 21 47 jshintrc: ".jshintrc" 22 48 }, 23 all: {49 compile: { 24 50 files: { 25 51 src: ['client/qed-client/**/*.js', 'server/**.js', '!**/node_modules/**'] … … 27 53 } 28 54 }, 29 htmlhint: {55 less: { 30 56 options: { 31 htmlhintrc: ".htmlhintrc" 57 strictImports: false, 58 dumpLineNumbers: "all" 32 59 }, 33 all: {60 compile: { 34 61 files: { 35 src: ['*.html', 'client/qed-client/**.html', '!**/node_modules/**']62 'client/qed-client/css/qed.css': 'client/qed-client/css/qed.less' 36 63 } 37 64 } … … 39 66 }); 40 67 68 grunt.loadNpmTasks('grunt-contrib-copy'); 69 grunt.loadNpmTasks('grunt-contrib-jshint'); 41 70 grunt.loadNpmTasks('grunt-contrib-less'); 42 grunt.loadNpmTasks('grunt- contrib-jshint');71 grunt.loadNpmTasks('grunt-dojo'); 43 72 grunt.loadNpmTasks('grunt-htmlhint'); 44 73 45 grunt.registerTask('default', ['less', 'jshint', 'htmlhint']); 74 grunt.registerTask('compile', ['less:compile', 'jshint:compile', 'htmlhint:compile']); 75 grunt.registerTask('build', ['compile', 'dojo:build', 'copy:build']); 76 grunt.registerTask('default', ['compile']); 77 46 78 }; -
Dev/trunk/src/client
-
Property
svn:external
set to
dojo http://svn.dojotoolkit.org/src/tags/release-1.9.0/dojo
dijit http://svn.dojotoolkit.org/src/tags/release-1.9.0/dijit
dojox http://svn.dojotoolkit.org/src/tags/release-1.9.0/dojox
util http://svn.dojotoolkit.org/src/tags/release-1.9.0/util
-
Property
svn:external
set to
-
Dev/trunk/src/package.json
r451 r453 5 5 "devDependencies": { 6 6 "grunt": "~0.4.0", 7 "grunt-contrib-copy": "~0.4.1", 8 "grunt-contrib-jshint": "~0.2.0", 7 9 "grunt-contrib-less": "~0.5.0", 8 "grunt-contrib-jshint": "~0.2.0", 10 "grunt-dojo": "~0.2.3", 11 "grunt-exec": "~0.4.1", 9 12 "grunt-htmlhint": "~0.4.0" 10 13 }
Note: See TracChangeset
for help on using the changeset viewer.