dfontan / aem-typescript

TypeScript compiler for AEM Client Libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript compiler for AEM Client Libraries

Installation

Install the bundle with maven or via the Felix console (/system/console).

	$ mvn clean install -PautoInstallBundle -Daem.host=localhost -Daem.port=4504

If the bundle doesn't get in running state because the dependency to jdk.nashorn.api.scripting can't be resolved, you have to add

    ,jdk.nashorn.api.scripting;version\="0.0.0.1_008_JavaSE"

to the jre-1.8 property in your sling.properties file (crx-quickstart/conf)

Usage

Every file of your typical client library with a .ts extension will be processed by this compiler.

Client Library example:

├── myClientlib
│   ├── .content.xml
│   ├── ts
│   │   ├── Application.ts
│   ├── js.txt

.content.xml

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
    jcr:primaryType="cq:ClientLibraryFolder"
    categories="[my-client-lib]"/>

js.txt

ts/Application.ts

System requirements

Credits

Based on jtsc

About

TypeScript compiler for AEM Client Libraries

License:Apache License 2.0


Languages

Language:JavaScript 41.6%Language:TypeScript 32.9%Language:Java 25.5%