This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new de33c10 AppWithLib: start of an example that uses a library. This is
just the app part, created with the maven archetype on the fly
de33c10 is described below
commit de33c104744a1d39d0f52d63e07607e4d93da621
Author: Carlos Rovira <[email protected]>
AuthorDate: Sat Feb 27 12:13:50 2021 +0100
AppWithLib: start of an example that uses a library. This is just the app
part, created with the maven archetype on the fly
---
examples/jewel/AppWithLib/AppWithLib.mxml.as3proj | 117 ++++++++++++
examples/jewel/AppWithLib/asconfig.json | 37 ++++
examples/jewel/AppWithLib/pom.xml | 196 +++++++++++++++++++++
.../AppWithLib/src/main/resources/default.css | 20 +++
.../resources/jewel-example-index-template.html | 30 ++++
.../AppWithLib/src/main/royale/AppWithLib.mxml | 51 ++++++
.../org/apache/royale/examples/config/Beans.mxml | 28 +++
.../org/apache/royale/examples/events/SomeEvent.as | 44 +++++
.../org/apache/royale/examples/views/MainView.mxml | 27 +++
.../jewel/AppWithLib/src/main/sass/_global.sass | 25 +++
.../jewel/AppWithLib/src/main/sass/default.sass | 21 +++
11 files changed, 596 insertions(+)
diff --git a/examples/jewel/AppWithLib/AppWithLib.mxml.as3proj
b/examples/jewel/AppWithLib/AppWithLib.mxml.as3proj
new file mode 100644
index 0000000..11c86c4
--- /dev/null
+++ b/examples/jewel/AppWithLib/AppWithLib.mxml.as3proj
@@ -0,0 +1,117 @@
+<!--
+
+ 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.
+
+-->
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <output>
+ <movie width="800"/>
+ <movie disabled="False"/>
+ <movie path="bin-debug/AppWithLib.swf"/>
+ <movie platform="Flash Player"/>
+ <movie fps="60"/>
+ <movie version="11"/>
+ <movie height="600"/>
+ <movie background="#FFFFFF"/>
+ <movie input=""/>
+ </output>
+ <!-- Other classes to be compiled into your SWF -->
+ <jsOutput>
+ <option
path="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+ </jsOutput>
+ <classpaths>
+ <class path="src"/>
+ </classpaths>
+ <moonshineResourcePaths></moonshineResourcePaths>
+ <moonshineNativeExtensionPaths></moonshineNativeExtensionPaths>
+ <build>
+ <option compilerConstants=""/>
+ <option strict="True"/>
+ <option useResourceBundleMetadata="True"/>
+ <option allowSourcePathOverlap="False"/>
+ <option sourceMap="True"/>
+ <option showDeprecationWarnings="True"/>
+ <option benchmark="False"/>
+ <option showBindingWarnings="True"/>
+ <option warnings="True"/>
+ <option
customSDK="/Users/christofer.dutz/Downloads/MoonshineSDKs/Royale_SDK/apache-royale-0.9.8-bin-js/royale-asjs"/>
+ <option showActionScriptWarnings="True"/>
+ <option antBuildPath="build/build.xml"/>
+ <option verboseStackTraces="False"/>
+ <option loadConfig=""/>
+ <option
additional="-theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
-html-template=src/resources/jewel-index-template.html"/>
+ <option linkReport=""/>
+ <option optimize="False"/>
+ <option locale=""/>
+ <option accessible="False"/>
+ <option staticLinkRSL="False"/>
+ <option showUnusedTypeSelectorWarnings="True"/>
+ <option useNetwork="True"/>
+ <option es="False"/>
+ </build>
+ <mavenBuild>
+ <option settingsFilePath=""/>
+ <option
mavenBuildPath="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+ <option commandLine=""/>
+ <actions>
+ <action action="install" actionName="Build"/>
+ <action action="clean package" actionName="Clean and package"/>
+ <action action="clean" actionName="Clean"/>
+ <action action="clean install" actionName="Clean and Build"/>
+ <action action="war:exploded" actionName="Exploded"/>
+ </actions>
+ </mavenBuild>
+ <includeLibraries></includeLibraries>
+ <libraryPaths></libraryPaths>
+ <externalLibraryPaths></externalLibraryPaths>
+ <rslPaths></rslPaths>
+ <intrinsics>
+ <element path="Library/AS3/frameworks/Flex4"/>
+ <element path="Library\AS3\frameworks\Flex4"/>
+ <element path="Library\AS3\frameworks\Flex4"/>
+ </intrinsics>
+ <library></library>
+ <compileTargets>
+ <compile path="src/NewJavaScriptBrowserProject.mxml"/>
+ </compileTargets>
+ <hiddenPaths></hiddenPaths>
+ <preBuildCommand>null</preBuildCommand>
+ <postBuildCommand alwaysRun="False">null</postBuildCommand>
+ <trustSVNCertificate>False</trustSVNCertificate>
+ <options>
+ <option testMovieCommand=""/>
+ <option defaultBuildTargets=""/>
+ <option isRoyale="True"/>
+ <option isExportedToExistingSource="False"/>
+ <option showHiddenPaths="False"/>
+ <option isPrimeFacesVisualEditor="False"/>
+ <option testMovie=""/>
+ <option visualEditorExportPath=""/>
+ </options>
+ <moonshineRunCustomization>
+ <option launchMethod="Simulator"/>
+ <option
urlToLaunch="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject/bin/js-debug/index.html"/>
+ <option targetPlatform="5"/>
+ <option projectType="2"/>
+ <option customUrlToLaunch=""/>
+ <option deviceSimulator="null"/>
+ <deviceSimulator>null</deviceSimulator>
+ <certAndroid>null</certAndroid>
+ <certIos>null</certIos>
+ <certIosProvisioning>null</certIosProvisioning>
+ </moonshineRunCustomization>
+</project>
\ No newline at end of file
diff --git a/examples/jewel/AppWithLib/asconfig.json
b/examples/jewel/AppWithLib/asconfig.json
new file mode 100644
index 0000000..c7cd803
--- /dev/null
+++ b/examples/jewel/AppWithLib/asconfig.json
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+{
+ "config": "royale",
+ "compilerOptions": {
+ "debug": false,
+ "targets": ["JSRoyale"],
+ "source-path": [
+ "src/main/resources"
+ ],
+ "source-map": true,
+ "html-template":
"src/main/resources/jewel-example-index-template.html",
+ "theme":
"${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
+ },
+ "copySourcePathAssets": true,
+ "additionalOptions": "-js-dynamic-access-unknown-members=true",
+ "files":
+ [
+ "src/main/royale/AppWithLib.mxml"
+ ]
+}
diff --git a/examples/jewel/AppWithLib/pom.xml
b/examples/jewel/AppWithLib/pom.xml
new file mode 100644
index 0000000..dbbb1b4
--- /dev/null
+++ b/examples/jewel/AppWithLib/pom.xml
@@ -0,0 +1,196 @@
+<?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</groupId>
+ <artifactId>apache</artifactId>
+ <version>23</version>
+ <relativePath />
+ </parent>
+
+ <groupId>org.apache.royale.examples</groupId>
+ <artifactId>AppWithLib</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <packaging>swf</packaging>
+
+ <properties>
+ <compiler.debug>true</compiler.debug>
+ </properties>
+
+ <build>
+ <sourceDirectory>src/main/royale</sourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>royale-maven-plugin</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <extensions>true</extensions>
+ <configuration>
+ <mainClass>AppWithLib.mxml</mainClass>
+ <targets>JSRoyale</targets>
+ <debug>false</debug>
+
<htmlTemplate>${basedir}/src/main/resources/jewel-example-index-template.html</htmlTemplate>
+ <additionalCompilerOptions>
+ -source-map=true;
+ -js-default-initializers=true;
+ -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css;
+
-keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
+ -keep-code-with-metadata=Inject;
+ <!-- to access JSON object graph subobjects -->
+ <!-- -js-dynamic-access-unknown-members=true; -->
+ </additionalCompilerOptions>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>compiler-jx</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
+ <groupId>nl.geodienstencentrum.maven</groupId>
+ <artifactId>sass-maven-plugin</artifactId>
+ <version>3.7.2</version>
+ <configuration>
+ <resources>
+ <resource>
+ <source>
+ <directory>${basedir}/src/main/sass</directory>
+ <includes>
+ <include>**/*.sass</include>
+ </includes>
+ </source>
+ <destination>${basedir}/src/main/resources</destination>
+ </resource>
+ </resources>
+ </configuration>
+ <executions>
+ <execution>
+ <id>generate-css-using-sass</id>
+ <goals>
+ <goal>update-stylesheets</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>Core</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>js</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>Basic</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>js</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>Jewel</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>js</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>JewelTheme</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <scope>theme</scope>
+ <classifier>js</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>Icons</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>js</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>Crux</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>js</classifier>
+ </dependency>
+
+ <!-- Needed for JavaScript compilation -->
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>HTML</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>js</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>Language</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>js</classifier>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <profile>
+ <id>apache-release</id>
+ <properties>
+ <compiler.debug>false</compiler.debug>
+ </properties>
+ </profile>
+
+ <profile>
+ <id>option-with-swf</id>
+ <properties>
+ <!-- no point building the swf target -->
+ <royale.targets>JSRoyale</royale.targets>
+ </properties>
+ <dependencies>
+ <!-- Needed for Flash compilation -->
+ <!-- <dependency>
+ <groupId>com.adobe.flash.framework</groupId>
+ <artifactId>playerglobal</artifactId>
+ <version>20.0</version>
+ <type>swc</type>
+ <scope>provided</scope>
+ </dependency> -->
+ </dependencies>
+ </profile>
+ </profiles>
+
+</project>
diff --git a/examples/jewel/AppWithLib/src/main/resources/default.css
b/examples/jewel/AppWithLib/src/main/resources/default.css
new file mode 100644
index 0000000..7497f0f
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/resources/default.css
@@ -0,0 +1,20 @@
+/**
+ * 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.
+ */
+@namespace "http://www.w3.org/1999/xhtml";
+@namespace j "library://ns.apache.org/royale/jewel";
+
+/*# sourceMappingURL=default.css.map */
diff --git
a/examples/jewel/AppWithLib/src/main/resources/jewel-example-index-template.html
b/examples/jewel/AppWithLib/src/main/resources/jewel-example-index-template.html
new file mode 100644
index 0000000..140ba98
--- /dev/null
+++
b/examples/jewel/AppWithLib/src/main/resources/jewel-example-index-template.html
@@ -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.
+-->
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="Custom Template for injecting custom style CSS">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0,
minimum-scale=1.0">
+ <link rel="stylesheet" type="text/css" href="${application}.css">
+ <link href="https://fonts.googleapis.com/css?family=Lato:400,700"
rel="stylesheet">
+${head}
+</head>
+<body>
+${body}
+</body>
+</html>
diff --git a/examples/jewel/AppWithLib/src/main/royale/AppWithLib.mxml
b/examples/jewel/AppWithLib/src/main/royale/AppWithLib.mxml
new file mode 100644
index 0000000..4364d9d
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/royale/AppWithLib.mxml
@@ -0,0 +1,51 @@
+<?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.
+
+-->
+<j:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:js="library://ns.apache.org/royale/basic"
+ xmlns:j="library://ns.apache.org/royale/jewel"
+ xmlns:crux="library://ns.apache.org/royale/crux"
+ xmlns:config="org.apache.royale.examples.config.*"
+ xmlns:views="org.apache.royale.examples.views.*">
+
+ <!-- <fx:Style source="../../main/resources/default.css"/> -->
+
+ <j:valuesImpl>
+ <js:SimpleCSSValuesImpl />
+ </j:valuesImpl>
+ <j:beads>
+ <crux:JSStageEvents packageExclusionFilter="_default_"/>
+ <crux:Crux>
+ <crux:beanProviders>
+ <config:Beans/>
+ </crux:beanProviders>
+ <crux:config>
+ <crux:CruxConfig
+ eventPackages="org.apache.royale.examples.events.*"
+ viewPackages="org.apache.royale.examples.views.*"
+ />
+ </crux:config>
+ </crux:Crux>
+ </j:beads>
+
+ <j:initialView>
+ <views:MainView width="100%" height="100%"/>
+ </j:initialView>
+
+</j:Application>
diff --git
a/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/config/Beans.mxml
b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/config/Beans.mxml
new file mode 100644
index 0000000..9efab2a
--- /dev/null
+++
b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/config/Beans.mxml
@@ -0,0 +1,28 @@
+<?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.
+
+-->
+<crux:BeanProvider
+ xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:crux="library://ns.apache.org/royale/crux"
+ xmlns:mx="library://ns.apache.org/royale/mx">
+
+ <!-- Add beans -->
+ <!-- <mx:HTTPService id="service"/> -->
+
+</crux:BeanProvider>
diff --git
a/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/events/SomeEvent.as
b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/events/SomeEvent.as
new file mode 100644
index 0000000..b7ad8aa
--- /dev/null
+++
b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/events/SomeEvent.as
@@ -0,0 +1,44 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.apache.royale.examples.events
+{
+ import org.apache.royale.events.Event;
+
+ /**
+ * Some Event
+ */
+ public class SomeEvent extends Event
+ {
+ /**
+ * Actions
+ */
+ public static const SOME_ACTION:String = "some_action";
+
+ /**
+ * constructor
+ *
+ * This is just a normal Royale event which will be dispatched
from a view instance.
+ * The only thing to note is that we set 'bubbles' to true, so
that the event will bubble
+ * up the 'display' list, allowing Crux to listen for your
events.
+ */
+ public function SomeEvent(type:String) {
+ super(type, true);
+ }
+ }
+}
\ No newline at end of file
diff --git
a/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
new file mode 100644
index 0000000..fcb3f77
--- /dev/null
+++
b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
@@ -0,0 +1,27 @@
+<?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.
+
+-->
+<j:View xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:j="library://ns.apache.org/royale/jewel"
+ xmlns:js="library://ns.apache.org/royale/basic">
+
+ <j:VGroup>
+ <j:Label text="Hello Jewel + Crux!"/>
+ </j:VGroup>
+</j:View>
\ No newline at end of file
diff --git a/examples/jewel/AppWithLib/src/main/sass/_global.sass
b/examples/jewel/AppWithLib/src/main/sass/_global.sass
new file mode 100644
index 0000000..4245094
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/sass/_global.sass
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+@namespace "http://www.w3.org/1999/xhtml"
+@namespace j "library://ns.apache.org/royale/jewel"
+
+// .jewel
+// .label
+// color: #ff0000
\ No newline at end of file
diff --git a/examples/jewel/AppWithLib/src/main/sass/default.sass
b/examples/jewel/AppWithLib/src/main/sass/default.sass
new file mode 100644
index 0000000..bbad92a
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/sass/default.sass
@@ -0,0 +1,21 @@
+/**
+ * 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.
+ */
+
+// Variables
+
+// Global
+@import "global"
\ No newline at end of file