Browse Source

add boilerplate

pull/38/head
garritfra 6 years ago
parent
commit
bd265a2d2c
  1. 44
      .gitignore
  2. 8019
      package-lock.json
  3. 27
      package.json
  4. 13
      public/index.html
  5. 5
      public/index.js
  6. 7
      src/App.js

44
.gitignore vendored

@ -0,0 +1,44 @@
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
# npm log file
npm-debug.log
#######################################################################
# PLEASE NOTE!! #
# Two bottom lines are commented just for this project to demonstrate #
# how built folders look like. For the real project uncomment those #
# two lines. Otherwise you will get into merge/code review hell when #
# dist folders will be marked as changed after every single change #
# in src files #
#######################################################################
dist/
test-dist
.DS_Store
.vscode
.cache

8019
package-lock.json generated

File diff suppressed because it is too large Load Diff

27
package.json

@ -0,0 +1,27 @@
{
"name": "portfolio",
"version": "1.0.0",
"description": "Personal portfolio",
"main": "index.js",
"scripts": {
"start": "parcel ./public/index.html",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/garritfra/Portfolio.git"
},
"author": "Garrit Franke",
"license": "MIT",
"bugs": {
"url": "https://github.com/garritfra/Portfolio/issues"
},
"homepage": "https://github.com/garritfra/Portfolio#readme",
"devDependencies": {
"parcel-bundler": "^1.7.0"
},
"dependencies": {
"react": "^16.3.1",
"react-dom": "^16.3.1"
}
}

13
public/index.html

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Welcome</title>
</head>
<body>
<div id="root"></div>
<script src="./index.js"></script>
</body>
</html>

5
public/index.js

@ -0,0 +1,5 @@
import React from 'react';
import ReactDOM from "react-dom";
import App from "../src/App";
ReactDOM.render(<App />, document.getElementById("root"));

7
src/App.js

@ -0,0 +1,7 @@
import React, { Component } from "react";
export default class App extends Component {
render() {
return(<h1>Hello World</h1>)
}
}
Loading…
Cancel
Save