.DS_Store
build/
+node_modules/
*.xcodeproj
*.swp
'app_sources': [
'app/atom_main.cc',
],
+ 'coffee_sources': [
+ 'browser/atom/atom.coffee',
+ ],
'lib_sources': [
'app/atom_main_delegate.cc',
'app/atom_main_delegate.h',
'target_name': '<(project_name)',
'type': 'executable',
'dependencies': [
+ 'generated_sources',
'<(project_name)_lib',
],
'sources': [
'<(PRODUCT_DIR)/<(product_name).framework',
],
},
- {
- 'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources',
- 'files': [
- 'browser/atom',
- ],
- },
],
'postbuilds': [
{
'vendor',
],
},
+ {
+ 'target_name': 'generated_sources',
+ 'type': 'none',
+ 'sources': [
+ '<@(coffee_sources)',
+ ],
+ 'rules': [
+ {
+ 'rule_name': 'coffee',
+ 'extension': 'coffee',
+ 'inputs': [
+ 'script/compile-coffee',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
+ ],
+ 'action': [
+ 'sh',
+ 'script/compile-coffee',
+ '<(RULE_INPUT_PATH)',
+ '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
+ ],
+ },
+ ],
+ },
],
'conditions': [
['OS=="mac"', {
--- /dev/null
+# Don't quit on fatal error.
+process.on "uncaughtException", (error) ->
+ console.error "uncaughtException:"
+ if error.stack?
+ console.error error.stack
+ else
+ console.error error.name + ": " + error.message
+++ /dev/null
-process.on('uncaughtException', function(error) {
- console.error('uncaughtException:');
- if (error.stack)
- console.error(error.stack);
- else
- console.error(error.name + ': ' + error.message);
-});
-
-console.log(process.atom_binding('window'));
--- /dev/null
+{
+ "name" : "atom",
+ "version" : "0.1.0",
+
+ "dependencies": {
+ "coffee-script": "1.6.2"
+ },
+
+ "private": true,
+
+ "scripts": {
+ "preinstall": "true"
+ }
+}
git submodule sync --quiet
git submodule update --init --recursive
+npm install npm --silent
+./node_modules/.bin/npm install --silent
+
"${BRIGHTRAY_DIR}/script/bootstrap" "${BASE_URL}"
"${SOURCE_ROOT}/script/update"
--- /dev/null
+#!/bin/sh
+
+set -e
+
+# Because of the way xcodebuild invokes external scripts we need to load
+# The Setup's environment ourselves. If this isn't done, things like the
+# node shim won't be able to find the stuff they need.
+
+node --version > /dev/null 2>&1 || {
+ if [ -e /opt/github/env.sh ]; then
+ source /opt/github/env.sh
+ else
+ # Try Constructicon's PATH.
+ export PATH="/usr/local/Cellar/node/0.8.21/bin:${PATH}"
+ fi
+}
+
+INPUT_FILE="${1}"
+OUTPUT_DIR=`dirname "$2"`
+
+node_modules/.bin/coffee -c -o "$OUTPUT_DIR" "$INPUT_FILE"