javascript - How to make Grunt.js and Meteor.js work together? -
i want use simple copying , concatenation in meteor application. faced problem when meteor runs javascript files both on server , client whereas don't want them run anywhere. it's either config file gruntfile.js or partial js files want process somehow , put inside client folder.
now, gruntfile.js file in root of application have error when trying launch meteor application:
w20130826-14:44:39.921(3)? (stderr) /home/../../.meteor/local/build/programs/server/boot.js:184 w20130826-14:44:40.062(3)? (stderr) }).run(); w20130826-14:44:40.062(3)? (stderr) ^ w20130826-14:44:40.062(3)? (stderr) referenceerror: module not defined
i know can meteor ignore file or folder adding period @ beginning of filename, , it's working .gruntfile.js filename, of course grunt not work in such case. how can make them work together? how can meteor ignore file or folder without renaming it?
you can put meteor app in subdirectory, , keep node_modules , grunt file in top level:
./gruntfile ./package.json ./node_modules ./app/.meteor ./app/<other meteor files>
Comments
Post a Comment