Skip to content

Commit

Permalink
add basic build infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Yesudeep Mangalapilly committed Dec 2, 2009
1 parent 1e94706 commit 8f23d4b
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 0 deletions.
25 changes: 25 additions & 0 deletions COPYING
@@ -0,0 +1,25 @@
MIT License.

Copyright (c) 2009 happychickoo.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Content Copyright (C) 2009 TISS HRM and LR.
The content is not governed by this license.

26 changes: 26 additions & 0 deletions SConstruct
@@ -0,0 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
from util import get_project_config
from colorizer import colorizer

col = colorizer()

env = Environment(tools=['default', 'puppy_tools'])
col.colorize(env)

Export('env')

puppy_config = get_project_config(os.getcwd())

env['APP_DIR'] = puppy_config.query('application.app_dir', 'app')
env['TEMPLATES_DEST_DIR'] = puppy_config.query('build.templates.dest_dir', 'app/templates')
env['MEDIA_SRC_DIR'] = puppy_config.query('build.media.src_dir', 'media')
env['MEDIA_DEST_DIR'] = puppy_config.query('build.media.dest_dir', 'app/public')

SConscript([
'media/SConscript',
'templates/SConscript',
])

12 changes: 12 additions & 0 deletions media/compass_config.rb
@@ -0,0 +1,12 @@
require 'ninesixty'
# require 'susy'
# Require any additional compass plugins here.

project_type = :stand_alone
css_dir = "css"
sass_dir = "sass"
images_dir = "image"
javascripts_dir = "script"
output_style = :expanded # :nested, :expanded, :compact, or :compressed
relative_assets = true

6 changes: 6 additions & 0 deletions media/crossdomain.xml
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="talkgadget.google.com" />
</cross-domain-policy>

3 changes: 3 additions & 0 deletions media/robots.txt
@@ -0,0 +1,3 @@
User-agent: *
Disallow: /admin/

13 changes: 13 additions & 0 deletions puppy.yaml
@@ -0,0 +1,13 @@
application:
app_dir: app
framework: google-app-engine-python
build:
templates:
src_dir: templates
dest_dir: "app/templates"
media:
src_dir: media
dest_dir: "app/public"
watch:
paths: ["media", "templates"]

0 comments on commit 8f23d4b

Please sign in to comment.