Skip to content

Commit

Permalink
flattened code resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrimpel committed Apr 21, 2015
1 parent c5823b0 commit 61f1a0a
Show file tree
Hide file tree
Showing 3,495 changed files with 692,473 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "directory" : "." }
44 changes: 44 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "web-components-book-code-examples",
"version": "0.0.0",
"authors": [
"Jason Strimpel <[email protected]>"
],
"description": "a flattened version of the book code samples",
"moduleType": [
"globals"
],
"keywords": [
"web components"
],
"license": "MIT",
"homepage": "https://github.com/WebComponentsBook/code-examples",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"vendor",
"test",
"tests"
],
"dependencies": {
"chapter-16_grunt-vulcanize": "*",
"chapter-16_vulcanize": "*",
"x-dialog-chapter-15_karma": "*",
"chapter-14_x-dialog": "*",
"chapter-14_x-dialog-nojquery": "*",
"chapter-9_dialog": "*",
"chapter-8_apache-chief": "*",
"chapter-8_dialog": "*",
"chapter-7_shamen": "*",
"chapter-7_dialog": "*",
"chapter-6_duvet": "*",
"chapter-6_dialog": "*",
"chapter-5_dialog": "*",
"chapter-4_dialog": "*",
"chapter-3_dialog": "*",
"chapter-2_voltron": "*",
"chapter-2_dialog": "*",
"webcomponent-seed": "*"
}
}
38 changes: 38 additions & 0 deletions chapter-14_x-dialog-nojquery/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "chapter-14_x-dialog-nojquery",
"authors": [
"Jarrod Overson <[email protected]>"
],
"description": "a dialog box web component",
"main": "./x-dialog.html",
"moduleType": [
"globals"
],
"keywords": [
"dialog"
],
"license": "MIT",
"homepage": "http://github.com/YOURUSER/x-dialog.html",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"vendor",
"test",
"tests"
],
"dependencies": {
"polymer": "~0.3.3",
"jquery": "~2.1.1",
"jenga": "*"
},
"_release": "62f2de0647",
"_resolution": {
"type": "branch",
"branch": "master",
"commit": "62f2de06474e881b3196c522e9367e50014edf62"
},
"_source": "git://github.com/WebComponentsBook/chapter-14_x-dialog-nojquery.git",
"_target": "*",
"_originalSource": "chapter-14_x-dialog-nojquery"
}
30 changes: 30 additions & 0 deletions chapter-14_x-dialog-nojquery/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "chapter-14_x-dialog-nojquery",
"version": "0.0.0",
"authors": [
"Jarrod Overson <[email protected]>"
],
"description": "a dialog box web component",
"main": "./x-dialog.html",
"moduleType": [
"globals"
],
"keywords": [
"dialog"
],
"license": "MIT",
"homepage": "http://github.com/YOURUSER/x-dialog.html",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"vendor",
"test",
"tests"
],
"dependencies": {
"polymer": "~0.3.3",
"jquery": "~2.1.1",
"jenga": "*"
}
}
63 changes: 63 additions & 0 deletions chapter-14_x-dialog-nojquery/components/jenga/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
module.exports = function (grunt) {

'use strict';

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
version: '<%= pkg.version %>',
banner: '// Jenga: fuck z-indexes\n' +
'// ----------------------------------\n' +
'// v<%= pkg.version %>\n' +
'//\n' +
'// Copyright (c)<%= grunt.template.today("yyyy") %> Jason Strimpel\n' +
'// Distributed under MIT license\n'
},
preprocess: {
global: {
files: {
'dist/jenga.js': 'src/jenga.global.js'
}
},
amd: {
files: {
'dist/jenga.amd.js': 'src/jenga.amd.js'
}
},
plugin: {
files: {
'dist/jenga.plugin.js': 'src/jenga.plugin.js'
}
}
},
concat: {
options: {
banner: "<%= meta.banner %>"
},
global: {
src: 'dist/jenga.js',
dest: 'dist/jenga.js'
},
amd: {
src: 'dist/jenga.amd.js',
dest: 'dist/jenga.amd.js'
},
plugin: {
src: 'dist/jenga.plugin.js',
dest: 'dist/jenga.plugin.js'
}
},
mocha_phantomjs: {
all: ['test/**/*.html']
}
});

grunt.loadNpmTasks('grunt-preprocess');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-mocha-phantomjs');

grunt.registerTask('test', ['mocha_phantomjs']);
grunt.registerTask('default', [
'preprocess:global', 'concat:global', 'preprocess:amd', 'concat:amd', 'preprocess:plugin', 'concat:plugin'
]);
};
18 changes: 18 additions & 0 deletions chapter-14_x-dialog-nojquery/components/jenga/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "jenga",
"description": "z-index management",
"authors": [{ "name": "Jason Strimpel", "email": "[email protected]" }],
"version": "0.0.1",
"main": "dist/jenga.js",
"repository": {
"type": "git",
"url": "[email protected]:jstrimpel/jenga.git"
},
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
16 changes: 16 additions & 0 deletions chapter-14_x-dialog-nojquery/components/jenga/debugging/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jenga example</title>
</head>
<body>
<div style="z-index: 0; position: relative;"></div>
<div style="z-index: 5; position: relative;"></div>
<div style="z-index: 3; position: relative;" id="foo"></div>
<script src="../dist/jenga.js"></script>
<script type="text/javascript">
jenga.sendToBack(document.getElementById('foo'));
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jenga example</title>
</head>
<body>
<div class="1"></div>
<div class="1.1"></div>
<div class="1.2">
<div class="2">
<div class="3"></div>
<div class="3"></div>
<div id="foo" class="3"></div>
</div>
</div>
<script src="../dist/jenga.js"></script>
<script type="text/javascript">
jenga.sendToBack(document.getElementById('foo'));
</script>
</body>
</html>
16 changes: 16 additions & 0 deletions chapter-14_x-dialog-nojquery/components/jenga/demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jenga example</title>
</head>
<body>
<div style="z-index: 0; position: relative;"></div>
<div style="z-index: 5; position: relative;"></div>
<div style="z-index: 20; position: relative;" id="foo"></div>
<script src="../dist/jenga.js"></script>
<script type="text/javascript">
jenga.sendToBack(document.getElementById('foo'));
</script>
</body>
</html>
Loading

0 comments on commit 61f1a0a

Please sign in to comment.