asciidisco / asciidisco/grunt-requirejs
"Module ID almond has a source path that is the same as the output path"
Open
@asciidisco is already working on this.
Since Jan 17, 2014.
bug
- Dominant language
- JavaScript
- Stars
- 298
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
Error: Error: Module ID 'almond' has a source path that is same as output path: /Users/aelaguiz/workspace/cratejoy/node_modules/grunt-requirejs/node_modules/almond/almond.j
module.exports = function(grunt) {
grunt.initConfig({
requirejs: {
compile: {
options: {
appDir: './www',
baseUrl: './js',
dir: './build/www',
wrap: true,
almond: true,
"paths": {
"jquery": "bower_components/jquery/jquery.min",
"jquery-cookie": "bower_components/jquery-cookie/jquery.cookie",
"text": "bower_components/requirejs-text/text",
"dropzone": "bower_components/dropzone/downloads/dropzone-amd-module.min",
"mustache": "bower_components/mustache/mustache",
"stache": "bower_components/requirejs-mustache/stache",
"bootstrap": "bower_components/bootstrap/dist/js/bootstrap.min",
"bootstrap-calendar": "libs/bootstrap/bootstrap.calendar",
"bootstrap-switch": "libs/bootstrap/bootstrap-switch",
"backbone-modelbinder": "bower_components/backbone.modelbinder/Backbone.ModelBinder",
"backbone": "bower_components/backbone-amd/backbone",
"underscore": "bower_components/underscore-amd/underscore-min",
"less": "bower_components/less/dist/less-1.5.1.min",
"picker": "bower_components/pickadate/lib/picker",
"picker.date": "bower_components/pickadate/lib/picker.date",
"backgrid": "libs/backgrid/lib/backgrid",
"backgrid-selectall": "libs/backgrid/lib/extensions/select-all/backgrid-select-all",
"backbone-pageable": "bower_components/backbone-pageable/lib/backbone-pageable",
"backgrid-paginator": "libs/backgrid-paginator/backgrid-paginator",
"backgrid-filter": "libs/backgrid/lib/extensions/filter/backgrid-filter",
"lunr": "bower_components/lunr.js/lunr",
"parsley": "libs/parsleyjs.larkio/parsley",
"accounting": "bower_components/accounting/accounting",
"tempus": "bower_components/tempus/min/tempus.min",
"messenger": "bower_components/messenger/build/js/messenger",
"resumablejs": "bower_components/resumablejs/resumable",
"aviary": "empty:",
"jquery.sortable": "bower_components/html5sortable/jquery.sortable",
"jquery.cookie": "bower_components/jquery-cookie/jquery.cookie",
"bootbox": "bower_components/bootbox/bootbox",
"jquery.simplemodal": "bower_components/ericmmartin.simplemodal/src/jquery.simplemodal",
"stripe": "empty:",
"fineuploader": "libs/fineuploader/custom.fineuploader-4.1.0",
"fuelux": "bower_components/fuelux/dist",
"typeahead": "libs/typeahead.js/dist/typeahead",
"css": "bower_components/codemirror/mode/css/css",
"xml": "bower_components/codemirror/mode/xml/xml",
"javascript": "bower_components/codemirror/mode/javascript/javascript",
"htmlmixed": "bower_components/codemirror/mode/htmlmixed/htmlmixed",
"htmlembedded": "bower_components/codemirror/mode/htmlembedded/htmlembedded",
"codemirror": "bower_components/codemirror/lib/codemirror",
"tplbox": "libs/tplbox/tplbox",
"console-shim": "bower_components/console-shim/console-shim-min"
},
"shim": {
"aviary": {
exports: "Aviary"
},
"jquery": {
exports: "jquery"
},
"messenger": {
exports: "Messenger",
},
"tempus": {
exports: "tempus",
},
"accounting": {
exports: "accounting"
},
"lunr": {
exports: "lunr",
},
"codemirror": {
exports: "CodeMirror"
},
"css": {
"deps": ['codemirror']
},
"xml": {
"deps": ['css']
},
"javascript": {
"deps": ['xml']
},
"htmlmixed": {
"deps": ['javascript', 'xml', 'css', 'codemirror']
},
"htmlembedded": {
"deps": ['htmlmixed']
},
"stripe": {
exports: "stripe"
},
"parsley": ["jquery"],
"picker.date": ["picker"],
"bootstrap": ["jquery", "less"],
"bootstrap-calendar": ["jquery"],
"bootstrap-switch": ["jquery"],
"bootbox": {
deps: ["bootstrap"],
exports: "bootbox"
}
},
"deps": ["console-shim"],
modules: [
{
name: 'vendor/mains/dashboard_main',
include: ["vendor/pages/dashboard_page"]
},
{
name: 'store/mains/standard_main',
include: ["store/pages/standard_page"]
}
],
optimize: 'none',
preserveLicenseComments: false,
generateSourceMaps: false
}
}
}
}
});
grunt.loadNpmTasks('grunt-requirejs');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['requirejs']);
};
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.