Skip to content

Commit

Permalink
Front-end example
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Young committed Feb 23, 2016
1 parent 91fe200 commit f41b1ea
Show file tree
Hide file tree
Showing 4,731 changed files with 439,716 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 ch05-front-end/es2015-example/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "presets": ["es2015"] }
8 changes: 8 additions & 0 deletions ch05-front-end/es2015-example/browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Example {
render() {
return '<h1>Example</h1>';
}
}

const example = new Example();
console.log(example.render());
23 changes: 23 additions & 0 deletions ch05-front-end/es2015-example/build/browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
'use strict';

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Example = function () {
function Example() {
_classCallCheck(this, Example);
}

_createClass(Example, [{
key: 'render',
value: function render() {
return '<h1>Example</h1>';
}
}]);

return Example;
}();

var example = new Example();
console.log(example.render());
1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/build/browser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/babel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/babel-node

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/babylon

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/jsesc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/json5

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/mkdirp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/repeating

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/sshpk-conv

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/sshpk-sign

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/uglifyjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/user-home

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ch05-front-end/es2015-example/node_modules/.bin/uuid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions ch05-front-end/es2015-example/node_modules/amdefine/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

171 changes: 171 additions & 0 deletions ch05-front-end/es2015-example/node_modules/amdefine/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f41b1ea

Please sign in to comment.