I apologize if this is a noob question. I only discovered the concept of AMD, Node and RequireJS yesterday. Been reading tutorials and testing with this all day and can't seem to get this to work. Bottom line, when I run the command in the node.js command prompt I just get the three dots (...) and nothing else. I have no idea what it's doing and/or why it's doing or not doing it.
Here is the current folder structure of my multi-page ASP.NET MVC project:
-Project Root
-scripts
-app
-home
-index.js
-common.js
-lib
-require.js
-jquery.js
-build.js
-r.js
Here is my build.js:
({
appDir: '../../', //Project Root
baseUrl: 'scripts', //Project Root/scripts
dir: "../../scripts-build", //Project Root/scripts-build
modules: [
{ name: "app/common" },
{ name: "app/home/index" }]
});
From Visual Studio, I installed node.js from Nuget. I added node.exe as an External Tool. When I open the node external tool, I get a command prompt. I change the current working directory to my script folder
process.chdir('C:/Project Root/scripts')
I then run from inside the scripts folder:
node r.js -o build.js
Then I just see the three dots and nothing else. The optimized file never appears in the scripts-build output directory and I never get an error