Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9187971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:54:10+00:00 2026-06-17T19:54:10+00:00

I have downloaded a project that uses AMD . Everything works fine, but I

  • 0

I have downloaded a project that uses AMD. Everything works fine, but I wanted to test out how to concatenate all the compiled files into one output all.js file. I found something about --out parameter and followed the steps from here: https://stackoverflow.com/a/14302902/1252575

It didn’t work for me, I’m getting an error:

The command “tsc –module AMD –out all.js
“C:\TypeScriptWithRequireAMD_0.8.1\app\classes\Test.ts”
“C:\TypeScriptWithRequireAMD_0.8.1\modules\require.d.ts”
“C:\TypeScriptWithRequireAMD_0.8.1\app\classes\Greeter.ts”
“C:\TypeScriptWithRequireAMD_0.8.1\app\AppConfig.ts”
“C:\TypeScriptWithRequireAMD_0.8.1\app\AppMain.ts”” exited with code
1.

Here’s how my file structure looks like:

Solution

Btw. I have a second question. Does --out parameter copy contents from lib catalog? If not, how to include them, too?

[edit 1.]

Oh, I forgot… It’s a part of my .csproj file:

<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <TypeScriptSourceMap>--module AMD</TypeScriptSourceMap>
</PropertyGroup>
<Target Name="BeforeBuild">
    <Message Text="Compiling TypeScript files" />
    <Message Text="Executing tsc$(TypeScriptSourceMap) @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" />
    <Exec Command="tsc $(TypeScriptSourceMap) --out all.js @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" />
</Target>

[edit 2.]

Here’s my AppConfig.js:

require.config({
    baseUrl: '../',
    paths: {
        'jquery': 'lib/jquery-1.7.2',
        'underscore': 'lib/underscore',
        'backbone': 'lib/backbone',
        'console': 'lib/console',
        'greeter': 'app/classes/Greeter',
        'test': 'app/classes/Test'
    },
    shim: {
        jquery: {
            exports: '$'
        },
        underscore: {
            exports: '_'
        },
        backbone: {
            deps: [
                "underscore", 
                "jquery"
            ],
            exports: "Backbone"
        },
        console: {
            exports: "console"
        },
        greeter: {
            deps: [
                "test"
            ]
        },
        test: {
            deps: [
                "greeter"
            ]
        }
    }
});
require([
    'jquery', 
    'underscore', 
    'backbone', 
    'console', 
    'app/AppMain', 
    'app/classes/Greeter', 
    'app/classes/Test'
], function ($, _, Backbone, console, main, greeter, test) {
    var appMain = new main.AppMain();
    appMain.run();
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:54:11+00:00Added an answer on June 17, 2026 at 7:54 pm

    By definition AMD scripts are loaded asynchronously by an AMD loader. In order to place them all in one file you’ll need to run some analysis on the dependencies of each file so that they are inserted in the correct order. This is not something that --out does. You’ll need to investigate something like the RequireJS optimizer instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded Rotating Wheel Control project. It is a XCode project that uses
I have a project that depends upon some other binaries to be downloaded from
I have a sample project that uses the metrics from notifications for resizing the
I Have an asp.net web service that uses an oracle database. It works when
I have a seperate Test Project in Eclipse that has been running successfully for
I have an existing Java project in Netbeans that uses Swing and I would
I have a java project that uses java.io.RandomAccessFile to manage data loading. It seeks
I have a project that uses stORM . When i try to open Eclipse
I have downloaded a web project from CodePlex and am getting the following error
Visual Studio 2008. I downloaded a sample project and unzipped it. I have to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.