I used the wrong wording. I didn't fix anything. I went with an
older install of steal-tools and it builds to something that works. The
output looks like the first example.
With a fresh install of steal-tools, it doesn't work. The
output looks like the second example.
By not work I mean our application compiles into a single JS file,
but when we load it, it doesn't behave like stealconfig existed
and tries to load dependencies which don't exist because map and
path aren't set.
Don't know if it's useful, but here is our stealconfig
- steal.config({
- map: {
- "mootools/mootools": "mootools",
- "mootools-more/mootools-more": "mootools-more",
- "mootools-datepicker/mootools-datepicker": "mootools-datepicker"
- },
- paths: {
- "mootools": "bower_components/mootools/dist/mootools-core.js",
- "mootools-more" : "MooTools-More-1.5.1.js",
- "mootools-datepicker" : "mootools-datepicker/Source/Picker.js",
- "mooRainbow/colourPicker" : "mooRainbow/colourPicker.js",
- "views": "views.production",
- "steal/dev.js": "can/lib/steal/dev/dev.js", // special can steal
- "can/util/util": "can/util/mootools/mootools.js" // util defaults to jquery, we want mootools
- },
- meta: {
- "mootools" : {
- format: "global",
- deps: supportsUnknownElements ? undefined : ["can/lib/html5shiv.js"],
- scriptEval: true
- },
- "mootools-more" : {
- format: "global",
- deps: ['mootools'],
- scriptEval: true
- },
- "punycode.js": {
- format: "global",
- exports: "punycode"
- },
- "mootools-datepicker": {
- format: "global",
- deps: ["mootools"],
- exports: "Picker"
- },
- "mootools-datepicker/Source/Picker.Attach.js": {
- format: "global",
- exports: "Picker.Attach",
- deps: [
- "mootools-datepicker"
- ]
- },
- "mootools-datepicker/Source/Picker.Date.js": {
- format: "global",
- exports: "Picker.Date",
- deps: [
- "mootools-datepicker/Source/Locale.en-US.DatePicker.js",
- "mootools-datepicker"
- ]
- },
- "mootools-datepicker/Source/Picker.Date.Range.js": {
- format: "global",
- exports: "Picker.Date.Range",
- deps: [
- "mootools-datepicker/Source/Picker.Attach.js"
- ]
- },
- "mooRainbow/mooRainbow-1.4.js": {
- format: "global",
- exports: "MooRainbow",
- deps: [
- "mootools",
- "mootools-more"
- ]
- },
- "mooRainbow/colourPicker.js": {
- format: "global",
- exports: "MooRainbow",
- deps: [
- "mootools",
- "mootools-more",
- "mooRainbow/mooRainbow-1.4.js"
- ]
- },
- "arian-mootools-form-upload-beac887/Source/Request.File.js": {
- format: "global",
- exports: "Request.File",
- deps: ['mootools']
- }
- },
- ext: {
- ejs: "can/view/ejs/ejs.js",
- mustache: "can/view/mustache/mustache.js"
- }
- });
- System.buildConfig = {
- map: {
- "can/util/util": "can/util/domless/domless"
- }
- };
-
- 'use strict';
- module.exports = function (grunt) {
- grunt.initConfig({
- stealBuild: {
- default: {
- options: {
- system: {
- main: "ucp2/ucp2",
- config: __dirname + "/stealconfig.js"
- }
- }
- }
- },
- options: {
- wrapper: 'steal("can/view/ejs", function() { {{{content}}} })'
- },
- cancompile: {
- dist: {
- src: ['templates/*.ejs', 'templates/email/*.ejs'],
- dest: 'views.production.js'
- }
- }
- })
- grunt.loadNpmTasks('steal-tools');
- grunt.registerTask('build',['stealBuild']);
- };