This is an automated email from the ASF dual-hosted git repository.

thiagohp pushed a commit to branch feature/coffeescript-to-typescript
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git

commit 80152bc8a6d0f979a15a3995fdf59a30cec6c540
Author: Thiago H. de Paula Figueiredo <[email protected]>
AuthorDate: Fri Apr 4 14:08:05 2025 -0300

    TAP5-2804: creating TypeScript project
---
 settings.gradle                                    |  2 +-
 tapestry-core/src/main/typescript/.gitignore       |  1 +
 .../src/main/typescript/package-lock.json          | 25 ++++++++++++++++++++++
 tapestry-core/src/main/typescript/package.json     |  5 +++++
 tapestry-core/src/main/typescript/tsconfig.json    | 21 ++++++++++++++++++
 5 files changed, 53 insertions(+), 1 deletion(-)

diff --git a/settings.gradle b/settings.gradle
index f7400a150..7cdaa0632 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -31,7 +31,7 @@ buildCache {
     }
 }
 
-rootProject.name = "tapestry"
+rootProject.name = "tapestry-5"
 
 include "plastic", "tapestry5-annotations", "tapestry-test", "tapestry-func", 
"tapestry-ioc", "tapestry-json", "tapestry-http", "tapestry-core"
 include "tapestry-hibernate-core", "tapestry-hibernate", "tapestry-jmx", 
"tapestry-upload"
diff --git a/tapestry-core/src/main/typescript/.gitignore 
b/tapestry-core/src/main/typescript/.gitignore
new file mode 100644
index 000000000..2ccbe4656
--- /dev/null
+++ b/tapestry-core/src/main/typescript/.gitignore
@@ -0,0 +1 @@
+/node_modules/
diff --git a/tapestry-core/src/main/typescript/package-lock.json 
b/tapestry-core/src/main/typescript/package-lock.json
new file mode 100644
index 000000000..24f53662f
--- /dev/null
+++ b/tapestry-core/src/main/typescript/package-lock.json
@@ -0,0 +1,25 @@
+{
+  "name": "typescript",
+  "lockfileVersion": 3,
+  "requires": true,
+  "packages": {
+    "": {
+      "devDependencies": {
+        "typescript": "^5.8.2"
+      }
+    },
+    "node_modules/typescript": {
+      "version": "5.8.2",
+      "resolved": 
"https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz";,
+      "integrity": 
"sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==",
+      "dev": true,
+      "bin": {
+        "tsc": "bin/tsc",
+        "tsserver": "bin/tsserver"
+      },
+      "engines": {
+        "node": ">=14.17"
+      }
+    }
+  }
+}
diff --git a/tapestry-core/src/main/typescript/package.json 
b/tapestry-core/src/main/typescript/package.json
new file mode 100644
index 000000000..3ba47b7ad
--- /dev/null
+++ b/tapestry-core/src/main/typescript/package.json
@@ -0,0 +1,5 @@
+{
+  "devDependencies": {
+    "typescript": "^5.0.0"
+  }
+}
diff --git a/tapestry-core/src/main/typescript/tsconfig.json 
b/tapestry-core/src/main/typescript/tsconfig.json
new file mode 100644
index 000000000..5fa70e761
--- /dev/null
+++ b/tapestry-core/src/main/typescript/tsconfig.json
@@ -0,0 +1,21 @@
+{
+  "compilerOptions": {
+    /* Visit https://aka.ms/tsconfig to read more about this file */
+
+    /* Language and Environment */
+    "target": "ES2015",                                  /* Set the JavaScript 
language version for emitted JavaScript and include compatible library 
declarations. */
+    
+    /* Modules */
+    "module": "ES2015",                                /* Specify what module 
code is generated. */
+    "esModuleInterop": true,                             /* Emit additional 
JavaScript to ease support for importing CommonJS modules. This enables 
'allowSyntheticDefaultImports' for type compatibility. */
+    // "preserveSymlinks": true,                         /* Disable resolving 
symlinks to their realpath. This correlates to the same flag in node. */
+    "forceConsistentCasingInFileNames": true,            /* Ensure that casing 
is correct in imports. */
+
+    /* Type Checking */
+    "strict": true,                                      /* Enable all strict 
type-checking options. */
+
+    /* Completeness */
+    // "skipDefaultLibCheck": true,                      /* Skip type checking 
.d.ts files that are included with TypeScript. */
+    "skipLibCheck": true                                 /* Skip type checking 
all .d.ts files. */
+  }
+}

Reply via email to