Skip to content

Commit

Permalink
apm: themes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Oct 15, 2021
1 parent 54aae32 commit 0603819
Show file tree
Hide file tree
Showing 15 changed files with 379 additions and 43 deletions.
122 changes: 85 additions & 37 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

<target name="apm" depends="-apm,-cleanup" description="builds apm package">
<delete file="${output.path}/${swc.file}"/>
<delete dir="${themes.output}" includeemptydirs="true"/>
</target>

<target name="package" depends="full" description="builds and packages a .zip file for distribution">
Expand Down Expand Up @@ -59,10 +60,9 @@
</target>

<target name="-cleanup">
<delete dir="${dependency.output}"/>
<echo>${output.path}/apm</echo>
<delete dir="${output.path}/apm"/>
<delete dir="${output.path}/apm-src"/>
<delete dir="${dependency.output}" includeemptydirs="true"/>
<delete dir="${output.path}/apm" includeemptydirs="true"/>
<delete dir="${output.path}/apm-src" includeemptydirs="true"/>
</target>

<target name="-starling" depends="-prepare">
Expand Down Expand Up @@ -447,38 +447,86 @@
verbose="true"
toDir="${dependency.output}"/>
</target>

<target name="-apm" depends="-feathers">
<fail unless="apm" message="Path to apm executable is missing."/>
<copy overwrite="true" file="${output.path}/${swc.file}" todir="${output.path}/apm/lib"/>
<copy overwrite="true" file="package-swc.json" tofile="${output.path}/apm/package.json"/>
<copy overwrite="true" todir="${output.path}/apm">
<fileset dir="${basedir}">
<include name="README.md"/>
<include name="LICENSE.md"/>
<include name="CHANGELOG.md"/>
</fileset>
</copy>

<copy overwrite="true" todir="${output.path}/apm-src/src">
<fileset dir="${source.root}"/>
</copy>
<copy overwrite="true" file="package-src.json" tofile="${output.path}/apm-src/package.json"/>
<copy overwrite="true" todir="${output.path}/apm-src">
<fileset dir="${basedir}">
<include name="README.md"/>
<include name="LICENSE.md"/>
<include name="CHANGELOG.md"/>
</fileset>
</copy>

<exec executable="${apm}" dir="${output.path}">
<arg value="build"/>
<arg value="apm"/>
</exec>
<exec executable="${apm}" dir="${output.path}">
<arg value="build"/>
<arg value="apm-src"/>
</exec>

<macrodef name="apm">
<attribute name="src"/>
<attribute name="swc"/>
<attribute name="readme"/>
<attribute name="changelog" default=""/>
<attribute name="package-swc"/>
<attribute name="package-src"/>
<sequential>
<fail unless="apm" message="Path to apm executable is missing."/>
<copy overwrite="true" file="@{swc}" todir="${output.path}/apm/swc"/>
<copy overwrite="true" file="@{package-swc}" tofile="${output.path}/apm/package.json"/>
<copy overwrite="true" todir="${output.path}/apm">
<fileset file="@{readme}"/>
<fileset file="@{changelog}"/>
<fileset file="${basedir}/LICENSE.md"/>
</copy>

<copy overwrite="true" todir="${output.path}/apm-src/src">
<fileset dir="@{src}"/>
</copy>
<copy overwrite="true" file="@{package-src}" tofile="${output.path}/apm-src/package.json"/>
<copy overwrite="true" todir="${output.path}/apm-src">
<fileset file="@{readme}"/>
<fileset file="@{changelog}"/>
<fileset file="${basedir}/LICENSE.md"/>
</copy>

<exec executable="${apm}" dir="${output.path}" failonerror="true">
<arg value="build"/>
<arg value="apm"/>
</exec>
<exec executable="${apm}" dir="${output.path}" failonerror="true">
<arg value="build"/>
<arg value="apm-src"/>
</exec>

<delete includeemptydirs="true">
<fileset dir="${output.path}/apm"/>
<fileset dir="${output.path}/apm-src"/>
</delete>
</sequential>
</macrodef>

<target name="-apm" depends="-feathers,-themes">
<apm src="${source.root}"
swc="${output.path}/${swc.file}"
readme="README.md"
changelog="CHANGELOG.md"
package-swc="package-swc.json"
package-src="package-src.json"/>
<apm src="${themes.root}/AeonDesktopTheme/source"
swc="${themes.output}/AeonDesktopTheme/swc/AeonDesktopTheme.swc"
readme="${themes.root}/AeonDesktopTheme/README.md"
package-swc="${themes.root}/AeonDesktopTheme/package-swc.json"
package-src="${themes.root}/AeonDesktopTheme/package-src.json"/>
<apm src="${themes.root}/MetalWorksDesktopTheme/source"
swc="${themes.output}/MetalWorksDesktopTheme/swc/MetalWorksDesktopTheme.swc"
readme="${themes.root}/MetalWorksDesktopTheme/README.md"
package-swc="${themes.root}/MetalWorksDesktopTheme/package-swc.json"
package-src="${themes.root}/MetalWorksDesktopTheme/package-src.json"/>
<apm src="${themes.root}/MetalWorksMobileTheme/source"
swc="${themes.output}/MetalWorksMobileTheme/swc/MetalWorksMobileTheme.swc"
readme="${themes.root}/MetalWorksMobileTheme/README.md"
package-swc="${themes.root}/MetalWorksMobileTheme/package-swc.json"
package-src="${themes.root}/MetalWorksMobileTheme/package-src.json"/>
<apm src="${themes.root}/MinimalDesktopTheme/source"
swc="${themes.output}/MinimalDesktopTheme/swc/MinimalDesktopTheme.swc"
readme="${themes.root}/MinimalDesktopTheme/README.md"
package-swc="${themes.root}/MinimalDesktopTheme/package-swc.json"
package-src="${themes.root}/MinimalDesktopTheme/package-src.json"/>
<apm src="${themes.root}/MinimalMobileTheme/source"
swc="${themes.output}/MinimalMobileTheme/swc/MinimalMobileTheme.swc"
readme="${themes.root}/MinimalMobileTheme/README.md"
package-swc="${themes.root}/MinimalMobileTheme/package-swc.json"
package-src="${themes.root}/MinimalMobileTheme/package-src.json"/>
<apm src="${themes.root}/TopcoatLightMobileTheme/source"
swc="${themes.output}/TopcoatLightMobileTheme/swc/TopcoatLightMobileTheme.swc"
readme="${themes.root}/TopcoatLightMobileTheme/README.md"
package-swc="${themes.root}/TopcoatLightMobileTheme/package-swc.json"
package-src="${themes.root}/TopcoatLightMobileTheme/package-src.json"/>
</target>
</project>
12 changes: 9 additions & 3 deletions package-src.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
{
"id": "feathersui-source",
"id": "com.feathersui-source",
"name": "feathersui-source",
"url": "https://feathersui.com/as3-starling/",
"docUrl": "https://feathersui/api-reference/",
"description": "Cross-platform user interface components for creative frontend projects built with Starling",
"type": "src",
"version": "4.2.0",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/feathersui-source_4.2.0.airpackage",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/com.feathersui-source_4.2.0.airpackage",
"dependencies": ["starling-source:2.7.0"],
"parameters": [],
"tags": ["components", "gui", "starling", "ui", "widgets"]
"tags": ["components", "gui", "starling", "ui", "widgets"],
"status": "release",
"license": {
"type": "Simplified BSD",
"url": "https://github.com/feathersui/feathersui-starling/blob/v4.2.0/LICENSE.md",
"public": true
}
}
12 changes: 9 additions & 3 deletions package-swc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
{
"id": "feathersui",
"id": "com.feathersui",
"name": "feathersui",
"url": "https://feathersui.com/as3-starling/",
"docUrl": "https://feathersui/api-reference/",
"description": "Cross-platform user interface components for creative frontend projects built with Starling",
"type": "swc",
"version": "4.2.0",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/feathersui_4.2.0.airpackage",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/com.feathersui_4.2.0.airpackage",
"dependencies": ["starling:2.7.0"],
"parameters": [],
"tags": ["components", "gui", "starling", "ui", "widgets"]
"tags": ["components", "gui", "starling", "ui", "widgets"],
"status": "release",
"license": {
"type": "Simplified BSD",
"url": "https://github.com/feathersui/feathersui-starling/blob/v4.2.0/LICENSE.md",
"public": true
}
}
23 changes: 23 additions & 0 deletions themes/AeonDesktopTheme/package-src.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "com.feathersui.AeonDesktopTheme-source",
"name": "Feathers UI Aeon Desktop Theme",
"url": "https://feathersui.com/as3-starling/",
"docUrl": "https://feathersui/api-reference/",
"description": "Aeon desktop theme for Feathers UI (Starling version)",
"type": "src",
"version": "4.2.0",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/com.feathersui.AeonDesktopTheme-source_4.2.0.airpackage",
"dependencies": [
"starling-source:2.7.0",
"feathersui-source:4.2.0"
],
"parameters": [],
"tags": ["theme", "feathers", "starling"],
"status": "release",
"license": {
"type": "Simplified BSD",
"url": "https://github.com/feathersui/feathersui-starling/blob/v4.2.0/LICENSE.md",
"public": true
}
}

23 changes: 23 additions & 0 deletions themes/AeonDesktopTheme/package-swc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "com.feathersui.AeonDesktopTheme",
"name": "Feathers UI Aeon Desktop Theme",
"url": "https://feathersui.com/as3-starling/",
"docUrl": "https://feathersui/api-reference/",
"description": "Aeon desktop theme for Feathers UI (Starling version)",
"type": "swc",
"version": "4.2.0",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/com.feathersui.AeonDesktopTheme_4.2.0.airpackage",
"dependencies": [
"starling:2.7.0",
"feathersui:4.2.0"
],
"parameters": [],
"tags": ["theme", "feathers", "starling"],
"status": "release",
"license": {
"type": "Simplified BSD",
"url": "https://github.com/feathersui/feathersui-starling/blob/v4.2.0/LICENSE.md",
"public": true
}
}

23 changes: 23 additions & 0 deletions themes/MetalWorksDesktopTheme/package-src.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "com.feathersui.MetalWorksDesktopTheme-source",
"name": "Feathers UI Metal Works Desktop Theme",
"url": "https://feathersui.com/as3-starling/",
"docUrl": "https://feathersui/api-reference/",
"description": "Metal Works desktop theme for Feathers UI (Starling version)",
"type": "src",
"version": "4.2.0",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/com.feathersui.MetalWorksDesktopTheme-source_4.2.0.airpackage",
"dependencies": [
"starling-source:2.7.0",
"feathersui-source:4.2.0"
],
"parameters": [],
"tags": ["theme", "feathers", "starling"],
"status": "release",
"license": {
"type": "Simplified BSD",
"url": "https://github.com/feathersui/feathersui-starling/blob/v4.2.0/LICENSE.md",
"public": true
}
}

23 changes: 23 additions & 0 deletions themes/MetalWorksDesktopTheme/package-swc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "com.feathersui.MetalWorksDesktopTheme",
"name": "Feathers UI Metal Works Desktop Theme",
"url": "https://feathersui.com/as3-starling/",
"docUrl": "https://feathersui/api-reference/",
"description": "Metal Works desktop theme for Feathers UI (Starling version)",
"type": "swc",
"version": "4.2.0",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/com.feathersui.MetalWorksDesktopTheme_4.2.0.airpackage",
"dependencies": [
"starling:2.7.0",
"feathersui:4.2.0"
],
"parameters": [],
"tags": ["theme", "feathers", "starling"],
"status": "release",
"license": {
"type": "Simplified BSD",
"url": "https://github.com/feathersui/feathersui-starling/blob/v4.2.0/LICENSE.md",
"public": true
}
}

23 changes: 23 additions & 0 deletions themes/MetalWorksMobileTheme/package-src.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "com.feathersui.MetalWorksMobileTheme-source",
"name": "Feathers UI Metal Works Mobile Theme",
"url": "https://feathersui.com/as3-starling/",
"docUrl": "https://feathersui/api-reference/",
"description": "Metal Works mobile theme for Feathers UI (Starling version)",
"type": "src",
"version": "4.2.0",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/com.feathersui.MetalWorksMobileTheme-source_4.2.0.airpackage",
"dependencies": [
"starling-source:2.7.0",
"feathersui-source:4.2.0"
],
"parameters": [],
"tags": ["theme", "feathers", "starling"],
"status": "release",
"license": {
"type": "Simplified BSD",
"url": "https://github.com/feathersui/feathersui-starling/blob/v4.2.0/LICENSE.md",
"public": true
}
}

23 changes: 23 additions & 0 deletions themes/MetalWorksMobileTheme/package-swc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "com.feathersui.MetalWorksMobileTheme",
"name": "Feathers UI Metal Works Mobile Theme",
"url": "https://feathersui.com/as3-starling/",
"docUrl": "https://feathersui/api-reference/",
"description": "Metal Works mobile theme for Feathers UI (Starling version)",
"type": "swc",
"version": "4.2.0",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/com.feathersui.MetalWorksMobileTheme_4.2.0.airpackage",
"dependencies": [
"starling:2.7.0",
"feathersui:4.2.0"
],
"parameters": [],
"tags": ["theme", "feathers", "starling"],
"status": "release",
"license": {
"type": "Simplified BSD",
"url": "https://github.com/feathersui/feathersui-starling/blob/v4.2.0/LICENSE.md",
"public": true
}
}

23 changes: 23 additions & 0 deletions themes/MinimalDesktopTheme/package-src.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "com.feathersui.MinimalDesktopTheme-source",
"name": "Feathers UI Minimal Desktop Theme",
"url": "https://feathersui.com/as3-starling/",
"docUrl": "https://feathersui/api-reference/",
"description": "Minimal desktop theme for Feathers UI (Starling version)",
"type": "src",
"version": "4.2.0",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/com.feathersui.MinimalDesktopTheme-source_4.2.0.airpackage",
"dependencies": [
"starling-source:2.7.0",
"feathersui-source:4.2.0"
],
"parameters": [],
"tags": ["theme", "feathers", "starling"],
"status": "release",
"license": {
"type": "Simplified BSD",
"url": "https://github.com/feathersui/feathersui-starling/blob/v4.2.0/LICENSE.md",
"public": true
}
}

23 changes: 23 additions & 0 deletions themes/MinimalDesktopTheme/package-swc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "com.feathersui.MinimalDesktopTheme",
"name": "Feathers UI Minimal Desktop Theme",
"url": "https://feathersui.com/as3-starling/",
"docUrl": "https://feathersui/api-reference/",
"description": "Minimal desktop theme for Feathers UI (Starling version)",
"type": "swc",
"version": "4.2.0",
"sourceUrl": "https://github.com/feathersui/feathersui-starling/releases/download/v4.2.0/com.feathersui.MinimalDesktopTheme_4.2.0.airpackage",
"dependencies": [
"starling:2.7.0",
"feathersui:4.2.0"
],
"parameters": [],
"tags": ["theme", "feathers", "starling"],
"status": "release",
"license": {
"type": "Simplified BSD",
"url": "https://github.com/feathersui/feathersui-starling/blob/v4.2.0/LICENSE.md",
"public": true
}
}

Loading

0 comments on commit 0603819

Please sign in to comment.