mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 02:30:13 +00:00
Add ES2015 runtime transpilation sample
This commit is contained in:
BIN
samples/misc/ES2015Transpilation/wwwroot/favicon.ico
Executable file
BIN
samples/misc/ES2015Transpilation/wwwroot/favicon.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
5
samples/misc/ES2015Transpilation/wwwroot/js/greeting.js
Normal file
5
samples/misc/ES2015Transpilation/wwwroot/js/greeting.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export default class Greeting {
|
||||
getMessage() {
|
||||
return 'Hello from the ES2015 class';
|
||||
}
|
||||
}
|
||||
3
samples/misc/ES2015Transpilation/wwwroot/js/main.js
Normal file
3
samples/misc/ES2015Transpilation/wwwroot/js/main.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import Greeting from './greeting.js';
|
||||
|
||||
console.log(new Greeting().getMessage());
|
||||
5
samples/misc/ES2015Transpilation/wwwroot/lib/system.js
Normal file
5
samples/misc/ES2015Transpilation/wwwroot/lib/system.js
Normal file
File diff suppressed because one or more lines are too long
9
samples/misc/ES2015Transpilation/wwwroot/web.config
Normal file
9
samples/misc/ES2015Transpilation/wwwroot/web.config
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/>
|
||||
</handlers>
|
||||
<httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" stdoutLogEnabled="false"/>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user