Repository: flex-asjs
Updated Branches:
  refs/heads/develop 7a3c0e875 -> 60664b858


- Added a NodeJS section to the examples
- Added a NodeJS "Hello World" example


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/60664b85
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/60664b85
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/60664b85

Branch: refs/heads/develop
Commit: 60664b85865cec2a5eaa2877afbc3a0124d697c0
Parents: 7a3c0e8
Author: Christofer Dutz <christofer.d...@codecentric.de>
Authored: Thu May 18 11:53:51 2017 -0400
Committer: Christofer Dutz <christofer.d...@codecentric.de>
Committed: Thu May 18 11:53:51 2017 -0400

----------------------------------------------------------------------
 examples/node/HelloWorld/pom.xml                | 55 +++++++++++++++++
 .../node/HelloWorld/src/main/flex/HelloWorld.as | 29 +++++++++
 examples/node/pom.xml                           | 65 ++++++++++++++++++++
 examples/pom.xml                                |  1 +
 4 files changed, 150 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/60664b85/examples/node/HelloWorld/pom.xml
----------------------------------------------------------------------
diff --git a/examples/node/HelloWorld/pom.xml b/examples/node/HelloWorld/pom.xml
new file mode 100644
index 0000000..c030150
--- /dev/null
+++ b/examples/node/HelloWorld/pom.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.flex.flexjs.examples</groupId>
+    <artifactId>examples-node</artifactId>
+    <version>0.8.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.flex.flexjs.examples.node</groupId>
+  <artifactId>Node-HelloWorld</artifactId>
+  <version>0.8.0-SNAPSHOT</version>
+  <packaging>swf</packaging>
+
+  <name>Apache Flex - FlexJS: Examples: NodeJS: HelloWorld</name>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.flex.flexjs.compiler</groupId>
+        <artifactId>flexjs-maven-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <mainClass>HelloWorld.as</mainClass>
+          <targets>JSNode</targets>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+  </dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/60664b85/examples/node/HelloWorld/src/main/flex/HelloWorld.as
----------------------------------------------------------------------
diff --git a/examples/node/HelloWorld/src/main/flex/HelloWorld.as 
b/examples/node/HelloWorld/src/main/flex/HelloWorld.as
new file mode 100644
index 0000000..a6f40f5
--- /dev/null
+++ b/examples/node/HelloWorld/src/main/flex/HelloWorld.as
@@ -0,0 +1,29 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package {
+
+public class HelloWorld {
+
+    public function HelloWorld() {
+        console.log("Hello FlexJS World!")
+    }
+
+}
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/60664b85/examples/node/pom.xml
----------------------------------------------------------------------
diff --git a/examples/node/pom.xml b/examples/node/pom.xml
new file mode 100644
index 0000000..d641846
--- /dev/null
+++ b/examples/node/pom.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.flex.flexjs.examples</groupId>
+    <artifactId>examples</artifactId>
+    <version>0.8.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>examples-node</artifactId>
+  <version>0.8.0-SNAPSHOT</version>
+  <packaging>pom</packaging>
+
+  <name>Apache Flex - FlexJS: Examples: NodeJS</name>
+
+  <modules>
+    <module>HelloWorld</module>
+  </modules>
+
+  <dependencies>
+    <!--
+     By declaring this dependency here, we force the flexjs-externs-js to be
+     added to the external library path of all modules. Without this it would
+     have gone to the library path.
+     -->
+    <dependency>
+      <groupId>org.apache.flex.flexjs.typedefs</groupId>
+      <artifactId>flexjs-typedefs-js</artifactId>
+      <version>${flexjs.typedefs.version}</version>
+      <type>swc</type>
+      <classifier>typedefs</classifier>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.flex.flexjs.typedefs</groupId>
+      <artifactId>flexjs-typedefs-node</artifactId>
+      <version>${flexjs.typedefs.version}</version>
+      <type>swc</type>
+      <classifier>typedefs</classifier>
+      <scope>runtime</scope>
+    </dependency>
+  </dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/60664b85/examples/pom.xml
----------------------------------------------------------------------
diff --git a/examples/pom.xml b/examples/pom.xml
index 9499b80..562fe50 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -42,6 +42,7 @@
     <module>express</module>
     <module>flexjs</module>
     <module>native</module>
+    <module>node</module>
 
     <module>examples-tests</module>
     <module>examples-integrationtests</module>

Reply via email to