Changeset 453


Ignore:
Timestamp:
06/09/13 00:50:34 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Building is working and builds work.

Location:
Dev/trunk
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk

    • Property svn:ignore
      •  

        old new  
        1 nbproject
         1build
  • 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 */
    18var fs = require('fs');
    29var path = require('path');
     
    411module.exports = function(grunt) {
    512
     13    var buildDir = '../build/';
     14
    615    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: {
    926            options: {
    10                 strictImports: false,
    11                 dumpLineNumbers: "all"
     27                dojo: 'client/dojo/dojo.js',
    1228            },
    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: {
    1440                files: {
    15                     'client/qed-client/css/qed.css': 'client/qed-client/css/qed.less'
     41                    src: ['client/*.html', 'client/qed-client/**.html']
    1642                }
    1743            }
     
    2147                jshintrc: ".jshintrc"
    2248            },
    23             all: {
     49            compile: {
    2450                files: {
    2551                    src: ['client/qed-client/**/*.js', 'server/**.js', '!**/node_modules/**']
     
    2753            }
    2854        },
    29         htmlhint: {
     55        less: {
    3056            options: {
    31                 htmlhintrc: ".htmlhintrc"
     57                strictImports: false,
     58                dumpLineNumbers: "all"
    3259            },
    33             all: {
     60            compile: {
    3461                files: {
    35                     src: ['*.html', 'client/qed-client/**.html', '!**/node_modules/**']
     62                    'client/qed-client/css/qed.css': 'client/qed-client/css/qed.less'
    3663                }
    3764            }
     
    3966    });
    4067
     68    grunt.loadNpmTasks('grunt-contrib-copy');
     69    grunt.loadNpmTasks('grunt-contrib-jshint');
    4170    grunt.loadNpmTasks('grunt-contrib-less');
    42     grunt.loadNpmTasks('grunt-contrib-jshint');
     71    grunt.loadNpmTasks('grunt-dojo');
    4372    grunt.loadNpmTasks('grunt-htmlhint');
    4473
    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
    4678};
  • 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
  • Dev/trunk/src/package.json

    r451 r453  
    55  "devDependencies": {
    66    "grunt": "~0.4.0",
     7    "grunt-contrib-copy": "~0.4.1",
     8    "grunt-contrib-jshint": "~0.2.0",
    79    "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",
    912    "grunt-htmlhint": "~0.4.0"
    1013  }
Note: See TracChangeset for help on using the changeset viewer.