This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<project name="Flare" basedir="." default="compile"> | |
<property environment="env" /> | |
<property name="FLEX_HOME" value="${env.FLEX_HOME}"/> | |
<property name="SRC_FOLDER" value="${basedir}/src"/> | |
<property name="LIBS_FOLDER" value="${basedir}/libs"/> | |
<property name="OUTPUT_FOLDER" value="${basedir}/bin"/> | |
<property name="REPORT_FOLDER" value="${basedir}/report"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<project name="Flare" basedir="." default="compile"> | |
<property environment="env" /> | |
<property name="FLEX_HOME" value="${env.FLEX_HOME}"/> | |
<property name="SRC_FOLDER" value="${basedir}/src"/> | |
<property name="LIBS_FOLDER" value="${basedir}/libs"/> | |
<property name="OUTPUT_FOLDER" value="${basedir}/bin"/> | |
<property name="REPORT_FOLDER" value="${basedir}/report"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/halo" | |
minWidth="1024" | |
minHeight="768" | |
creationComplete="application1_creationCompleteHandler(event)"> | |
<fx:Declarations> | |
<!-- Place non-visual elements (e.g., services, value objects) here --> | |
</fx:Declarations> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/halo" | |
minWidth="1024" | |
minHeight="768" | |
creationComplete="clockhand1_creationCompleteHandler(event)"> | |
<fx:Script> | |
<![CDATA[ | |
import mx.events.FlexEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/halo" | |
minWidth="1024" | |
minHeight="768" | |
creationComplete="application1_creationCompleteHandler(event)"> | |
<fx:Script> | |
<![CDATA[ | |
import mx.events.FlexEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USER="%user%" | |
KEY="%key%" | |
FILE="%file%" | |
if [[ ! -n "$KEY" ]]; then | |
KEY="INSERT YOUR DEFAULT PUBLIC KEY HERE" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH=$PATH:/usr/local/share/npm/bin | |
PATH=/usr/local/bin/:$PATH | |
PATH=/usr/local/sbin:$PATH | |
export PATH | |
export NODE_PATH="/usr/local/lib/node" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
├─┬ [email protected] | |
│ ├── [email protected] | |
│ ├── [email protected] | |
│ └── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├─┬ [email protected] | |
│ └── [email protected] | |
├── [email protected] | |
├── [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package.compile(function (err, source) { | |
var jsp = require("uglify-js").parser; | |
var pro = require("uglify-js").uglify; | |
var ast = jsp.parse(source); // parse code and get the initial AST | |
ast = pro.ast_mangle(ast); // get a new AST with mangled names | |
ast = pro.ast_squeeze(ast); // get an AST with compression optimizations | |
var final_code = pro.gen_code(ast); // compressed code here | |
fs.writeFile(__dirname + '/public/scripts/application.js', final_code, function (err) { | |
if (err) throw err; | |
util.puts('Compiled application.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
argv = process.argv.slice(2) | |
stitch = require('stitch') | |
fs = require('fs') | |
mode = argv[0] || "DEV" | |
package = stitch.createPackage | |
paths: [__dirname + '/scripts'] | |
OlderNewer