Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial-progress #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions npm-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
0 info it worked if it ends with ok
1 verbose cli [ '/Users/Bobryk/.nvm/versions/node/v6.8.1/bin/node',
1 verbose cli '/Users/Bobryk/.nvm/versions/node/v6.8.1/bin/npm',
1 verbose cli 'run',
1 verbose cli 'debug' ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack Error: missing script: debug
4 verbose stack at run (/Users/Bobryk/.nvm/versions/node/v6.8.1/lib/node_modules/npm/lib/run-script.js:151:19)
4 verbose stack at /Users/Bobryk/.nvm/versions/node/v6.8.1/lib/node_modules/npm/lib/run-script.js:61:5
4 verbose stack at /Users/Bobryk/.nvm/versions/node/v6.8.1/lib/node_modules/npm/node_modules/read-package-json/read-json.js:356:5
4 verbose stack at checkBinReferences_ (/Users/Bobryk/.nvm/versions/node/v6.8.1/lib/node_modules/npm/node_modules/read-package-json/read-json.js:320:45)
4 verbose stack at final (/Users/Bobryk/.nvm/versions/node/v6.8.1/lib/node_modules/npm/node_modules/read-package-json/read-json.js:354:3)
4 verbose stack at then (/Users/Bobryk/.nvm/versions/node/v6.8.1/lib/node_modules/npm/node_modules/read-package-json/read-json.js:124:5)
4 verbose stack at /Users/Bobryk/.nvm/versions/node/v6.8.1/lib/node_modules/npm/node_modules/read-package-json/read-json.js:311:12
4 verbose stack at /Users/Bobryk/.nvm/versions/node/v6.8.1/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16
4 verbose stack at tryToString (fs.js:455:3)
4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)
5 verbose cwd /Users/Bobryk/Documents/sprint_planning_dashboard_items
6 error Darwin 17.7.0
7 error argv "/Users/Bobryk/.nvm/versions/node/v6.8.1/bin/node" "/Users/Bobryk/.nvm/versions/node/v6.8.1/bin/npm" "run" "debug"
8 error node v6.8.1
9 error npm v3.10.8
10 error missing script: debug
11 error If you need help, you may report this error at:
11 error <https://github.com/npm/npm/issues>
12 verbose exit [ 1, true ]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"private": true,
"scripts": {
"start": "node -r esm app.js",
"lint": "eslint app.js routes"
"lint": "eslint app.js routes",
"debug": "node -r esm --inspect app.js"
},
"dependencies": {
"body-parser": "^1.19.0",
Expand Down
7 changes: 6 additions & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ export default function routes(app) {
})

app.get('/sprint-capacity-bar', (req, res) => {
res.render('SprintCapacityBar')
const view = req.params
console.log(req)
debugger
res.render('SprintCapacityBar', {
view: view
})
})

app.get('/atlassian-connect.json', (req, res) => {
Expand Down
6 changes: 3 additions & 3 deletions views/SprintCapacityBar.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var React = require('react');
import React, { Component } from 'react'

class SprintCapacityBar extends React.Component {
class SprintCapacityBar extends Component {
render() {
return <div>Hello {this.props.name}</div>;
return <div>Hello {this.props.reqs}</div>
}
}

Expand Down