Skip to content

Commit

Permalink
initial project scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Cabrera committed May 28, 2015
0 parents commit 6279e2f
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
.api-cache/*
.dist/*
node_modules/*
npm-debug.log
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.10
14 changes: 14 additions & 0 deletions assets/_config.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Colors
$palette-white : #fff
$palette-black : #000
$palette-light_gray : #BBB
$palette-gray : #777
$palette-dark_gray : #333


// Fonts
$font-stack-sans_serif : "Helvetica", "Verdana", sans-serif
$font-stack-serif : "Georgia", "Times New Roman", serif
$font-stack-monospace : "Menlo", "Courier", monospace
Binary file added assets/images/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions assets/script.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.debug 'script.coffee'
8 changes: 8 additions & 0 deletions assets/style.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Core Marquee helpers
@import "marquee"

// Marquee styles that generate classes
@import "marquee/classes"

// Variable definitions shared across the project
@import "_config.sass"
6 changes: 6 additions & 0 deletions main.cjsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
React = require 'react'
Home = require './views/Home.cjsx'

module.exports = ({ emitFile, done }) ->
emitFile('index.html', <Home />)
done()
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "marquee-sdk-example",
"version": "1.0.0",
"description": "",
"main": "./main.cjsx",
"scripts": {
"build": "npm install && ./node_modules/.bin/marqueestatic build --verbose",
"develop": "npm install && ./node_modules/.bin/marqueestatic develop --verbose --use-cache",
"deploy": "npm install && ./node_modules/.bin/marqueestatic deploy --verbose"
},
"author": "",
"license": "ISC",
"marquee": {
"CONTENT_API_TOKEN": "r0_82144e3af0db217e277bda4e9fa160ee36ba2bef",
"CONTENT_API_HOST": "api.marquee.by",
"HOST": "example.org"
},
"devDependencies": {
"marquee-static-sdk": "^0.4.0-alpha.4"
},
"dependencies": {
"react": "^0.12.2"
}
}
10 changes: 10 additions & 0 deletions views/Home.cjsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
React = require 'react'
Base = require './_Base.cjsx'

module.exports = React.createClass
displayName: 'Home'
render: ->

<Base>
<p>You are all set to get started with the Marquee SDK.</p>
</Base>
22 changes: 22 additions & 0 deletions views/_Base.cjsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
React = require 'react'

Asset = require 'marquee-static-sdk/base/Asset'
Favicon = require 'marquee-static-sdk/base/Favicon'

module.exports = React.createClass
displayName: 'Base'
render: ->

<html>
<head>
<title>Marquee SDK Example</title>

<Favicon name='images/favicon.ico' />
<Asset path='style.sass' />
</head>
<body>
{@props.children}

<Asset path='script.coffee' />
</body>
</html>

0 comments on commit 6279e2f

Please sign in to comment.