-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to reference scripts for inclusion within a script temp…
…late.
- Loading branch information
Showing
14 changed files
with
240 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// IStreamSourceResolver.cs | ||
// Script#/Core/Compiler | ||
// This source code is subject to terms and conditions of the Apache License, Version 2.0. | ||
// | ||
|
||
using System; | ||
|
||
namespace ScriptSharp { | ||
|
||
public interface IStreamSourceResolver { | ||
|
||
IStreamSource Resolve(string name); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Code.cs | ||
// | ||
|
||
using System; | ||
using System.Collections; | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: ScriptAssembly("basic")] | ||
|
||
#if MULTIPLE_INCLUDE | ||
[assembly: ScriptTemplate(@" | ||
// {name}.js | ||
""use strict""; | ||
(function($global) { | ||
{include:pre.js} | ||
{script} | ||
{include:post.js} | ||
})(this); | ||
")] | ||
#else | ||
[assembly: ScriptTemplate(@" | ||
// {name}.js {version} | ||
// | ||
{include:pre.js} | ||
{script} | ||
")] | ||
#endif | ||
|
||
|
||
namespace Basic { | ||
|
||
public class App { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// basic.js | ||
"use strict"; | ||
|
||
(function($global) { | ||
// pre script | ||
|
||
// Basic.App | ||
|
||
function Basic$App() { | ||
} | ||
var Basic$App$ = { | ||
|
||
}; | ||
|
||
|
||
var $exports = ss.module('basic', null, | ||
{ | ||
App: [ Basic$App, Basic$App$, null ] | ||
}); | ||
|
||
|
||
// post script | ||
|
||
})(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// post script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// pre script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// basic.js | ||
// | ||
|
||
// pre script | ||
|
||
// Basic.App | ||
|
||
function Basic$App() { | ||
} | ||
var Basic$App$ = { | ||
|
||
}; | ||
|
||
|
||
var $exports = ss.module('basic', null, | ||
{ | ||
App: [ Basic$App, Basic$App$, null ] | ||
}); | ||
|
||
|
Oops, something went wrong.