Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

[WIP] Typescript Compilation + Exploring editor extensions #614

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a9ce469
initial cut at allowing typescript to be compiled by the editor and h…
shaddockh Jan 16, 2016
465ad04
small update to build common to make sure that the js modules directo…
shaddockh Jan 16, 2016
62fe7fd
updated build script to copy typescript.js from the node_modules dire…
shaddockh Jan 17, 2016
30914ec
removed the customized typescript.js file. The build will copy over …
shaddockh Jan 17, 2016
44e9a64
creating a d.ts file for duktape builtins such as console.log
shaddockh Jan 18, 2016
4fcd3de
make sure we ignore lib.core.d.ts if it is in here because it will be…
shaddockh Jan 18, 2016
3bf8e1b
Updated build common to copy the typescript lib.core.d.ts into the Ty…
shaddockh Jan 18, 2016
329bb5c
work on executing a full compile on save
shaddockh Jan 18, 2016
81188d9
- hook in project unload trigger so the state of the language service…
shaddockh Jan 18, 2016
38892dc
- modified UIResourceOps to bubble the delete up to the ProjectFrame …
shaddockh Jan 20, 2016
4017fb1
implemented a new service type: ProjectService and moved the UnloadPr…
shaddockh Jan 20, 2016
0d2b649
* refactored the way the SeriveLocator is being called. Now instead …
shaddockh Jan 23, 2016
ddcdece
hooked in the EditorPlayRequest event to be able to perform logic pri…
shaddockh Jan 23, 2016
9bf06ef
* compile the typescript files prior to the player launching
shaddockh Jan 23, 2016
dfabc8d
clean up error handling in the extension services
shaddockh Jan 24, 2016
2f94448
bringing in usertiming node module so that it is easier to start gath…
shaddockh Jan 24, 2016
1029617
updated build script to copy over usertiming.js into the editor modul…
shaddockh Jan 24, 2016
730c9a1
created a simple d.ts wrapper around usertiming.js also wrapped calls…
shaddockh Jan 24, 2016
6f132c0
updated the typescript language service to time certain pieces in ord…
shaddockh Jan 24, 2016
0073805
Refactoring the typescript language service out of the typescript ext…
shaddockh Jan 30, 2016
36d3f26
removed another instance of atomic specific logic inside the typescri…
shaddockh Jan 31, 2016
a0aaeda
- delay loading of the code into the editor instance until the editor…
shaddockh Feb 16, 2016
f4463af
- find issue with atomic://resource calls not working when an absolut…
shaddockh Feb 16, 2016
b3a3ab2
massive cleanup and implementation of the typescript services in the …
shaddockh Feb 20, 2016
ba18bc3
cleaning up build script. Moved the typescript definition and compil…
shaddockh Feb 20, 2016
4c30f58
ignore generated code
shaddockh Feb 20, 2016
2948b2e
cleaning up the way files are transmitted to the web view and staging…
shaddockh Feb 20, 2016
2b01894
fix javascript language extension to look for .js not .ts
shaddockh Feb 20, 2016
8f7210a
forcing commit of EditorWork.d.ts
shaddockh Feb 20, 2016
d13bc20
Enable remote debugging of the web view with the chrome dev tools. …
shaddockh Feb 24, 2016
1ed3b35
migrated the autocomplete functionality for typescript into a shared …
shaddockh Feb 27, 2016
6dd59a7
fix issues with the merge
shaddockh Feb 27, 2016
fd74425
updated to release version of typescript 1.8 and removed unused usert…
shaddockh Feb 27, 2016
1e47e7e
added copyright banners to new files
shaddockh Feb 27, 2016
b77f5ab
staging the webview extension code so that it will be ready to receiv…
shaddockh Mar 1, 2016
f5d1e6c
as a stopgap measure, if a file extension is not provided for creatin…
shaddockh Mar 1, 2016
95858eb
Added delete, rename, and project unloaded events to the native side …
shaddockh Mar 31, 2016
bcb4cf1
Work on routing delete, rename, and project unloaded events to the we…
shaddockh Mar 31, 2016
6609cd9
Fixing submodule commit
JoshEngebretson Apr 1, 2016
fc4af21
Merge pull request #1 from AtomicGameEngine/JME-ATOMIC-SUBMODULEFIX
shaddockh Apr 1, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions Build/Scripts/BuildCommon.js
Expand Up @@ -88,6 +88,17 @@ namespace('build', function() {
console.log("\n\nLint: Typescript linting complete.\n\n");
jake.exec(cmds, function() {

// copy some external dependencies into the editor modules directory
var editorModulesDir = "./Artifacts/Build/Resources/EditorData/AtomicEditor/EditorScripts/AtomicEditor/modules";
var webeditorModulesDir = "./Data/AtomicEditor/CodeEditor/source/editorCore/modules";
var nodeModulesDir = "./Build/node_modules";
fs.mkdirsSync(editorModulesDir);
// TypeScript
fs.copySync(nodeModulesDir + "/typescript/lib/typescript.js", webeditorModulesDir + "/typescript.js")

// copy lib.core.d.ts into the tool data directory
fs.mkdirsSync("./Artifacts/Build/Resources/EditorData/AtomicEditor/EditorScripts/AtomicEditor/TypeScriptSupport");
fs.copySync("./Build/node_modules/typescript/lib/lib.core.d.ts","./Data/AtomicEditor/TypeScriptSupport/lib.core.d.ts")
complete();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like I will need to update the CI scripts once landed (also testing Windows), making a note


}, {
Expand Down
990 changes: 606 additions & 384 deletions Build/node_modules/typescript/lib/tsc.js

Large diffs are not rendered by default.

1,004 changes: 618 additions & 386 deletions Build/node_modules/typescript/lib/tsserver.js

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions Build/node_modules/typescript/lib/typescript.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,233 changes: 779 additions & 454 deletions Build/node_modules/typescript/lib/typescript.js

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions Build/node_modules/typescript/lib/typescriptServices.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.