mirror of
https://github.com/koodiklinikka/gulp-project-template.git
synced 2026-02-08 20:50:22 +00:00
initial commit
This commit is contained in:
10
src/index.html
Normal file
10
src/index.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Gulp template</title>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<script src="js/bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
13
src/js/app.jsx
Normal file
13
src/js/app.jsx
Normal file
@@ -0,0 +1,13 @@
|
||||
/*** @jsx React.DOM */
|
||||
|
||||
var React = require('react');
|
||||
|
||||
var APP = React.createClass({
|
||||
render:function(){
|
||||
return (
|
||||
<h1>Hello World</h1>
|
||||
)
|
||||
}
|
||||
});
|
||||
|
||||
React.renderComponent(<APP />, document.body)
|
||||
5
src/js/main.js
Normal file
5
src/js/main.js
Normal file
@@ -0,0 +1,5 @@
|
||||
/*jslint browser: true */
|
||||
'use strict';
|
||||
|
||||
require('./app');
|
||||
|
||||
3
src/style.css
Normal file
3
src/style.css
Normal file
@@ -0,0 +1,3 @@
|
||||
body, html {
|
||||
margin: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user