Skip to content

Commit 207d02b

Browse files
author
Myles Borins
committed
Maybe zoidexamples?
1 parent e99fff0 commit 207d02b

File tree

61 files changed

+253
-941
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+253
-941
lines changed

.editorconfig

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# EditorConfig: http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
[*.js]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[Gruntfile.js]
21+
indent_style = space
22+
indent_size = 2
23+
24+
[grunt/*.js]
25+
indent_style = space
26+
indent_size = 2
27+
28+
[*.json]
29+
indent_style = space
30+
indent_size = 2
31+
32+
[*.css]
33+
indent_style = space
34+
indent_size = 2

.eslintrc

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true
5+
},
6+
"globals": {
7+
"DocumentFragment": true
8+
},
9+
"rules": {
10+
"valid-jsdoc": 0,
11+
"curly": [1, "multi"],
12+
"brace-style": [1, "stroustrup"],
13+
"consistent-this": 2,
14+
"no-constant-condition": 1,
15+
"no-underscore-dangle": 0,
16+
"no-use-before-define": 1,
17+
"func-names": 0,
18+
"func-style": [2, "declaration"],
19+
"new-cap": 1,
20+
"new-parens": 2,
21+
"no-ternary": 0,
22+
"no-unused-vars": [1, {"vars": "local", "args": "none"}],
23+
"quotes": [2, "single"],
24+
"one-var": 0,
25+
"space-infix-ops": 0,
26+
"strict": 0
27+
}
28+
}

.gitignore

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
node_modules/
2-
build*
3-
build0*
4-
localS3*
5-
.DS_Store
1+
public/*bundle.*

.jscsrc

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"requireCurlyBraces": ["do", "try", "catch"],
3+
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
4+
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
5+
"disallowSpaceAfterPrefixUnaryOperators": true,
6+
"disallowKeywords": ["with"],
7+
"disallowMultipleLineBreaks": true,
8+
"requireBlocksOnNewline": true,
9+
"disallowMixedSpacesAndTabs": true,
10+
"disallowTrailingWhitespace": true,
11+
"requireLineFeedAtFileEnd": true,
12+
"requireSpacesInFunctionExpression": {
13+
"beforeOpeningCurlyBrace": true
14+
},
15+
"disallowSpacesInFunctionExpression": {
16+
"beforeOpeningRoundBrace": true
17+
},
18+
"validateJSDoc": {
19+
"checkParamNames": true,
20+
"requireParamTypes": false
21+
},
22+
"validateQuoteMarks": "'",
23+
"disallowMultipleVarDecl": true,
24+
"disallowSpacesInsideParentheses": true
25+
}

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js:
3+
- '0.10'
4+
before_install:
5+
- currentfolder=${PWD##*/}
6+
- if [ "$currentfolder" != 'browserify-seed' ]; then cd .. && eval "mv $currentfolder browserify-seed" && cd browserify-seed; fi

content/famous_symbol.svg

-19
This file was deleted.

index.html

-18
This file was deleted.

package.json

+33-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
11
{
2-
"name": "parseExamples",
3-
"version": "0.0.0",
4-
"description": "famous examples parser",
5-
"main": "index.js",
2+
"name": "famous-example",
3+
"version": "0.3.0-alpha",
4+
"description": "famous examples",
5+
"browser": "src/index.js",
6+
"main": "plugin.js",
7+
"browserify": {
8+
"transform": [
9+
"cssify",
10+
"deamdify"
11+
]
12+
},
613
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
14+
"start": "npm run build && node server.js",
15+
"start-dev": "npm run watch & node server.js",
16+
"test": "npm run lint -s && npm run build",
17+
"build": "browserify src/index.js | uglifyjs > public/bundle.js",
18+
"watch": "watchify src/index.js -o public/bundle.js --debug --verbose",
19+
"lint-eslint": "eslint src/",
20+
"lint-jscs": "jscs src/",
21+
"lint": "npm run lint-eslint && npm run lint-jscs"
22+
},
23+
"devDependencies": {
24+
"eslint": "^0.7.4",
25+
"jscs": "^1.5.8"
826
},
9-
"author": "",
27+
"author": "TheAlphaNerd",
28+
"license": "ISC",
1029
"dependencies": {
11-
"findit": "~1.1.1",
12-
"graceful-fs": "~2.0.3",
13-
"esprima": "~1.0.4",
14-
"doctrine": "~0.5.0",
15-
"escodegen": "~1.3.0",
16-
"firebase": "~1.0.11",
17-
"async": "~0.2.10",
18-
"readdirp": "~0.3.3",
19-
"wrench": "~1.5.8",
20-
"underscore": "~1.6.0",
21-
"aws-sdk": "~2.0.0-rc.17"
30+
"browserify": "^5.9.1",
31+
"cssify": "^0.6.0",
32+
"deamdify": "^0.1.1",
33+
"famous": "famous/famous#v0.3.0-alpha",
34+
"famous-polyfills": "^0.2.2",
35+
"hapi": "^6.5.1",
36+
"uglify-js": "^2.4.15",
37+
"watchify": "^1.0.1"
2238
}
2339
}

plugin.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
var path = require('path');
2+
3+
exports.register = function (plugin, options, next) {
4+
plugin.route({
5+
method: 'GET',
6+
path: '/{param*}',
7+
handler: {
8+
directory: {
9+
path: path.join(__dirname, 'public/')
10+
}
11+
}
12+
});
13+
next();
14+
};
15+
16+
exports.register.attributes = {
17+
pkg: require('./package.json')
18+
};

public/images/famous_logo.png

4.02 KB
Loading

public/index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE HTML>
2+
<html>
3+
<head>
4+
<title>Famo.us</title>
5+
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
6+
<meta name="mobile-web-app-capable" content="yes" />
7+
<meta name="apple-mobile-web-app-capable" content="yes" />
8+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
9+
10+
<script type="text/javascript" src="bundle.js"></script>
11+
</head>
12+
<body></body>
13+
</html>

scripts/index.js

-28
This file was deleted.

0 commit comments

Comments
 (0)