Repository: flex-asjs Updated Branches: refs/heads/develop 316f9201e -> d40b9ddff
- Removed the "Basic" module from the distribution Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d40b9ddf Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d40b9ddf Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d40b9ddf Branch: refs/heads/develop Commit: d40b9ddff8d6032dff5f1c9e8bace3ef4f3a5b6a Parents: 316f920 Author: Christofer Dutz <[email protected]> Authored: Thu Feb 9 10:10:24 2017 +0100 Committer: Christofer Dutz <[email protected]> Committed: Thu Feb 9 10:10:24 2017 +0100 ---------------------------------------------------------------------- .../org/example/flexjs/mylib/JavaScriptClass.as | 30 ++++++++ .../flexjs-simple-typedef-archetype/pom.xml | 55 ++++++++++++++ .../META-INF/maven/archetype-metadata.xml | 43 +++++++++++ .../main/resources/archetype-resources/pom.xml | 80 ++++++++++++++++++++ .../src/main/javascript/myscripts.js | 58 ++++++++++++++ archetypes/pom.xml | 1 + 6 files changed, 267 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d40b9ddf/archetypes/flexjs-simple-library-archetype/src/main/resources/archetype-resources/src/main/flex/org/example/flexjs/mylib/JavaScriptClass.as ---------------------------------------------------------------------- diff --git a/archetypes/flexjs-simple-library-archetype/src/main/resources/archetype-resources/src/main/flex/org/example/flexjs/mylib/JavaScriptClass.as b/archetypes/flexjs-simple-library-archetype/src/main/resources/archetype-resources/src/main/flex/org/example/flexjs/mylib/JavaScriptClass.as new file mode 100644 index 0000000..7ce4f82 --- /dev/null +++ b/archetypes/flexjs-simple-library-archetype/src/main/resources/archetype-resources/src/main/flex/org/example/flexjs/mylib/JavaScriptClass.as @@ -0,0 +1,30 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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 org.example.flexjs.mylib { + +public class JavaScriptClass +{ + + public function javaScriptMethod():void { + // Do nothing in JavaScript + } + +} +} + http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d40b9ddf/archetypes/flexjs-simple-typedef-archetype/pom.xml ---------------------------------------------------------------------- diff --git a/archetypes/flexjs-simple-typedef-archetype/pom.xml b/archetypes/flexjs-simple-typedef-archetype/pom.xml new file mode 100644 index 0000000..73f9ef6 --- /dev/null +++ b/archetypes/flexjs-simple-typedef-archetype/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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>flexjs-maven-archetypes</artifactId> + <version>0.8.0-SNAPSHOT</version> + </parent> + + <artifactId>flexjs-simple-typedef-archetype</artifactId> + <version>0.8.0-SNAPSHOT</version> + <packaging>maven-archetype</packaging> + + <name>Apache Flex - FlexJS: Framework: Archetypes: Simple FlexJS Typedef Library</name> + <description>Maven archetype for creating FlexJS Maven project for building a simple FlexJS typedef library.</description> + + <build> + <extensions> + <extension> + <groupId>org.apache.maven.archetype</groupId> + <artifactId>archetype-packaging</artifactId> + <version>2.4</version> + </extension> + </extensions> + + <pluginManagement> + <plugins> + <plugin> + <artifactId>maven-archetype-plugin</artifactId> + <version>2.4</version> + </plugin> + </plugins> + </pluginManagement> + </build> + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d40b9ddf/archetypes/flexjs-simple-typedef-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml ---------------------------------------------------------------------- diff --git a/archetypes/flexjs-simple-typedef-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/archetypes/flexjs-simple-typedef-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000..2ef5b6d --- /dev/null +++ b/archetypes/flexjs-simple-typedef-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,43 @@ +<?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. + +--> +<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="Core" + xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <fileSets> + <fileSet encoding="UTF-8"> + <directory>src/main/flex</directory> + <includes> + <include>**/*</include> + </includes> + </fileSet> + <fileSet encoding="UTF-8"> + <directory>src/main/javascript</directory> + <includes> + <include>**/*.js</include> + </includes> + </fileSet> + <fileSet encoding="UTF-8"> + <directory>src/main/patch</directory> + <includes> + <include>**/*</include> + </includes> + </fileSet> + </fileSets> +</archetype-descriptor> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d40b9ddf/archetypes/flexjs-simple-typedef-archetype/src/main/resources/archetype-resources/pom.xml ---------------------------------------------------------------------- diff --git a/archetypes/flexjs-simple-typedef-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/flexjs-simple-typedef-archetype/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000..470a971 --- /dev/null +++ b/archetypes/flexjs-simple-typedef-archetype/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,80 @@ +#set( $symbol_dollar = '$' ) +<?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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <artifactId>${artifactId}</artifactId> + <groupId>${groupId}</groupId> + <version>${version}</version> + <packaging>swc</packaging> + + <properties> + <git.executable>git</git.executable> + </properties> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>flexjs-maven-plugin</artifactId> + <version>0.8.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <includeSources>true</includeSources> + <externcInput> + <fileSet> + <directory>${symbol_dollar}{project.basedir}/src/main/javascript</directory> + <includes> + <include>**/*.js</include> + </includes> + </fileSet> + </externcInput> + <skipSwc>true</skipSwc> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>compiler-jx</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.typedefs</groupId> + <artifactId>flexjs-typedefs-js</artifactId> + <version>0.8.0-SNAPSHOT</version> + <type>swc</type> + <classifier>typedefs</classifier> + <scope>runtime</scope> + </dependency> + + <!-- Add dependencies you might be needing here --> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d40b9ddf/archetypes/flexjs-simple-typedef-archetype/src/main/resources/archetype-resources/src/main/javascript/myscripts.js ---------------------------------------------------------------------- diff --git a/archetypes/flexjs-simple-typedef-archetype/src/main/resources/archetype-resources/src/main/javascript/myscripts.js b/archetypes/flexjs-simple-typedef-archetype/src/main/resources/archetype-resources/src/main/javascript/myscripts.js new file mode 100644 index 0000000..3410815 --- /dev/null +++ b/archetypes/flexjs-simple-typedef-archetype/src/main/resources/archetype-resources/src/main/javascript/myscripts.js @@ -0,0 +1,58 @@ +/* + + 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. + +*/ +/* + * + * 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. + * + */ + +/** + * @constructor + */ +function MyCoolClass() {}; + +/** + * @param {!OtherCoolClass} some important Property + */ +MyCoolClass.someProperty = function(other) {}; + +/** + * @constructor + */ +function OtherCoolClass() {} + +/** + * @type {number} + * @const + */ +MyCoolClass.SOME_AWESOME_NUMERIC_CONSTANT; + http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d40b9ddf/archetypes/pom.xml ---------------------------------------------------------------------- diff --git a/archetypes/pom.xml b/archetypes/pom.xml index 294f1c1..3124119 100644 --- a/archetypes/pom.xml +++ b/archetypes/pom.xml @@ -38,6 +38,7 @@ <module>flexjs-simple-application-pure-js-archetype</module> <module>flexjs-simple-application-pure-swf-archetype</module> <module>flexjs-simple-library-archetype</module> + <module>flexjs-simple-typedef-archetype</module> </modules> <build>
