Skip to content
This repository was archived by the owner on Aug 21, 2020. It is now read-only.

debug server side code on VsCode IDE #136

Open
wants to merge 117 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
d9de525
Added vscode support
skolmer Dec 9, 2015
1ccad9f
Added HtmlWebpackPlugin
skolmer Dec 9, 2015
0452bcd
Added support for mac os
skolmer Dec 10, 2015
7fa551b
Optimized sourcemap performance
skolmer Dec 12, 2015
3daf5a1
Added eventsource polyfill and removed HtmlWebpackPlugin to fix hot m…
skolmer Feb 10, 2016
caf1f70
Updated configurations to work with the latest version of chrome debu…
skolmer Feb 10, 2016
dec46bb
Added webroot to launch.json and react typings
skolmer Mar 18, 2016
bde179e
Optimized configuration
skolmer Mar 18, 2016
1049ab6
simplified babel config
skolmer Mar 18, 2016
9d80c31
replace tsd with typings
skolmer Mar 18, 2016
e375c43
Changed module loader to system to allow React intellisense in vscode
skolmer Mar 18, 2016
37fdea8
Updated dependencies
skolmer Mar 18, 2016
a3cde69
Updated eslint config
skolmer Mar 18, 2016
dc59b15
Updated eslint 2 ES6 configuration
skolmer Mar 18, 2016
3a68cc7
Added eslint:recommended
skolmer Mar 18, 2016
0f073e9
Code cleanup
skolmer Mar 18, 2016
090c4a8
Moved typings to root
skolmer Mar 18, 2016
354d23a
Added more typings
skolmer Mar 18, 2016
9a12fd7
Code review
skolmer Mar 18, 2016
773a882
Update README.md
skolmer Apr 2, 2016
9569fbf
Excluded chrome user dir from file explorer
skolmer Apr 6, 2016
e4e5da2
Updated configuration to support changes in vscode March release
skolmer Apr 6, 2016
a75cfd5
Excluded dist directory from file search
skolmer Apr 6, 2016
c58eaa0
Code review
skolmer Apr 6, 2016
8eda22d
Added precommit hook for linting
skolmer Apr 6, 2016
e6bbff7
removed obsolete module option from jsconfig
skolmer Apr 6, 2016
cbbbb77
Added file associations config
skolmer Apr 7, 2016
112dec9
Fixed production build
skolmer Apr 7, 2016
2c1d6ab
Optimized linting
skolmer Apr 8, 2016
8b78ece
Code review
skolmer Apr 14, 2016
bf47fc8
Updated dependencies and added lodash to demonstrate typings integration
skolmer Apr 14, 2016
11b7290
Update README.md
skolmer Apr 21, 2016
d63228d
Migrated project to react-hot-loader 3.0-alpha12 This closes #1
skolmer Apr 25, 2016
25fd88e
Update README.md
skolmer Apr 25, 2016
4961f4d
Updated naming and dependencies
skolmer Apr 25, 2016
335cba5
Merge branch 'master' of github.com:skolmer/react-transform-boilerpla…
skolmer Apr 25, 2016
51e1433
Update README.md
skolmer Apr 25, 2016
aed4f11
Updated to react-hot-loader beta 2
skolmer May 5, 2016
2ee79f9
Optimized webpack console output
skolmer May 5, 2016
5d6633d
Fixed formatting
skolmer May 5, 2016
c9349f6
Moved hot loader config to index.dev.js
skolmer May 5, 2016
ed7a9a4
code review
skolmer May 5, 2016
3dfabd3
Added eslint ignore
skolmer May 5, 2016
49b08a9
Updated jsconfig to use only browser typings
skolmer May 5, 2016
557938f
Added babel plugin to remove proptypes from production build
skolmer May 5, 2016
939baa5
Added babel-plugin-transform-react-inline-elements to optimize produc…
skolmer May 5, 2016
b53a1d7
Added babel-plugin-transform-react-constant-elements to optimize prod…
skolmer May 5, 2016
d9600e7
Switched to babel-preset-react-optimize to opltimized production buil…
skolmer May 5, 2016
0650b47
Removed duplicate presets from babel config
skolmer May 5, 2016
54f7a23
Simplified dev server configuration
skolmer May 5, 2016
409fea9
Added blank favicon to avoid 404 in chrome console
skolmer May 5, 2016
7e9169f
Added chunk config to production release
skolmer May 5, 2016
be2a7e0
Optimized chunk config
skolmer May 5, 2016
a022253
Optimized uglify options
skolmer May 5, 2016
c5bd979
Optimized formatting settings
skolmer May 5, 2016
1acb6c8
Updated README
skolmer May 6, 2016
f19b34f
Updated links to vscode extensions
skolmer May 6, 2016
f876155
Added feature demo
skolmer May 6, 2016
6ac1a17
Update README.md
skolmer May 6, 2016
71a577a
Added recommended sourcemap prefix
skolmer May 6, 2016
f42cd21
Optimized npm install output
skolmer May 8, 2016
4b7fd89
Added eslint problem matcher
skolmer May 8, 2016
68edd5e
Optimized lint task output
skolmer May 8, 2016
034ca9d
Added problemMatcher to release and development task
skolmer May 9, 2016
a61800b
Fixed problem matcher
skolmer May 9, 2016
b6771ed
Optimzed problemMatcher message
skolmer May 9, 2016
6f4f69b
added problemMatcher for module import errors
skolmer May 9, 2016
67b533f
Optimized problem matcher
skolmer May 9, 2016
04d9a70
Updated typings
skolmer May 9, 2016
09fb53d
Updated dependencies
skolmer May 9, 2016
c589700
Optimized webserver configuration
skolmer May 10, 2016
f2194c2
Code formatting
skolmer May 10, 2016
151856a
Code formatting
skolmer May 10, 2016
9d0cc47
Updated dependency
skolmer May 10, 2016
a066924
Added problem matcher to watching task and prelaunchTask configuration
skolmer May 10, 2016
7312df9
Update README.md
skolmer May 10, 2016
0fee99b
Optimized task configuration
skolmer May 10, 2016
732fb55
More task optimizations
skolmer May 10, 2016
2ed7319
Changed html formatting
skolmer May 10, 2016
6b1fd85
Added new demo
skolmer May 11, 2016
39c8c13
Added babel option to get correct line numbers for webpack problemMat…
skolmer May 13, 2016
72905f5
Merge branch 'master' of github.com:skolmer/react-hot-boilerplate-vscode
skolmer May 13, 2016
3cf592f
Removed space char
skolmer May 14, 2016
44f7aa8
Added json schema for package.json
skolmer May 14, 2016
d6205d2
Set .eslintignore syntax
skolmer May 14, 2016
cd51146
Optimized json schema
skolmer May 14, 2016
00f4b01
App is now a functional component
skolmer May 16, 2016
5d97c07
removed obsolete jsonfig setting
skolmer May 16, 2016
2494c9d
Added webpack resolver to eslint import-plugin settings
skolmer May 16, 2016
aab8b54
Fixed eslint lodash rule
skolmer May 17, 2016
5eefc07
Update README.md
skolmer May 18, 2016
c4f4d44
Added __DEV__ global var
skolmer May 19, 2016
ac14e20
Excluded typings/ from file search
skolmer May 19, 2016
7d431d5
Update README.md
skolmer May 20, 2016
852f5ef
Update README.md
skolmer May 20, 2016
2e447c1
Updated to typings 1.0
skolmer Jun 2, 2016
94db75d
#cheap-module-eval-source-map is now supported by Chrome Debugger
skolmer Jun 12, 2016
5b8a08b
Added hot-loader babel plugin
skolmer Jul 28, 2016
ee3bfd0
Removed babel plugin fron env config
skolmer Jul 28, 2016
3a94775
Updated dependencies
skolmer Sep 3, 2016
9085716
Changed webpack devtool to cheap-eval-source-map #4
skolmer Sep 3, 2016
6213575
added babel transform-react-jsx-source and updated dependencies
skolmer Sep 23, 2016
c0a5f8c
Use SourceMapDevToolPlugin instead of devtool to fix chrome compatibi…
skolmer Oct 11, 2016
277f3e0
Added smart stepping to ignore code without sourcemaps
skolmer Oct 22, 2016
30d4169
Added extension recommendation configuration
skolmer Nov 12, 2016
825acd4
Added option to always open debug console
skolmer Nov 12, 2016
1e5955d
Removed typings in favor of ATA https://code.visualstudio.com/updates…
skolmer Nov 22, 2016
2846e45
Added skipFiles option to launch.json
skolmer Dec 21, 2016
671807f
optimized source-map configuration
skolmer Feb 10, 2017
f422cf8
Update README.md
skolmer Feb 14, 2017
e8be93e
Fixed task configuration
skolmer Mar 27, 2017
7857cb5
Set recommended source map type
skolmer Mar 27, 2017
1dbd65b
Optimized tasks.json
skolmer Mar 28, 2017
b711059
Updated to webpack 2 resolves #9
skolmer Mar 29, 2017
2b65b8a
Update README.md
skolmer May 14, 2017
e540357
Updated dependencies
skolmer May 29, 2017
46b4b19
Update README.md
skolmer Feb 14, 2018
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
37 changes: 20 additions & 17 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{
"presets": ["react", "es2015"],
"env": {
"development": {
"plugins": [
["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}, {
"transform": "react-transform-catch-errors",
"imports": ["react", "redbox-react"]
}]
}]
]
"presets": [
"es2015",
"stage-0",
"react"
],
"plugins": [
"react-hot-loader/babel"
],
"env": {
"production": {
"presets": [
"react-optimize"
]
},
"development": {
"plugins": [
"transform-react-jsx-source"
]
}
}
}
}
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore built files
dist/
bundle.js
102 changes: 76 additions & 26 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,27 +1,77 @@
{
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"node": true
},
"parser": "babel-eslint",
"rules": {
"quotes": [2, "single"],
"strict": [2, "never"],
"babel/generator-star-spacing": 1,
"babel/new-cap": 1,
"babel/object-shorthand": 1,
"babel/arrow-parens": 1,
"babel/no-await-in-loop": 1,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2
},
"plugins": [
"babel",
"react"
]
}
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"ecmaVersion": 6
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"ignore": [
"node_modules"
],
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:lodash/recommended",
"plugin:react/recommended"
],
"globals": {
"__DEV__": true
},
"parser": "babel-eslint",
"rules": {
"quotes": [
2,
"single"
],
"strict": [
2,
"never"
],
"no-var": 2,
"prefer-spread": 2,
"prefer-const": 2,
"prefer-template": 2,
"generator-star-spacing": 1,
"babel/new-cap": 1,
"object-shorthand": 1,
"arrow-parens": 1,
"no-await-in-loop": 1,
"react/no-multi-comp": [
2,
{
"ignoreStateless": true
}
],
"lodash/prefer-lodash-method": [
2,
{
"ignoreObjects": [
"React.Children"
]
}
]
},
"plugins": [
"babel",
"import",
"lodash",
"react"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.dev.js"
}
},
"import/ignore": [
"node_modules"
]
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
node_modules
npm-debug.log
dist
dist
.vscode/chrome
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"msjsdiag.debugger-for-chrome",
"dbaeumer.vscode-eslint",
"xabikos.ReactSnippets",
"fknop.vscode-npm",
"christian-kohler.npm-intellisense"
]
}
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "chrome",
"request": "launch",
"webRoot": "${workspaceRoot}",
"url": "http://localhost:3000",
"userDataDir": "${workspaceRoot}/.vscode/chrome",
"sourceMaps": true,
"preLaunchTask": "development",
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"node_modules/**"
],
"sourceMapPathOverrides": {
"webpack:///*": "${webRoot}/*"
}
}
]
}
49 changes: 49 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Place your settings in this file to overwrite default and user settings.
{
"editor.formatOnType": true,
"eslint.enable": true,
"files.associations": {
"**/src/**/*.js": "javascriptreact",
"**/node_modules/**/*.js": "javascript",
".babelrc": "json",
".eslintignore": "gitignore"
},
"files.exclude": {
".vscode/chrome/**": true
},
"files.watcherExclude": {
".vscode/chrome/**": true
},
"html.format.extraLiners": "!",
"html.format.indentInnerHtml": true,
"json.schemas": [
{
"fileMatch": [
"/package.json"
],
"schema": {
"type": "object",
"properties": {
"config": {
"properties": {
"port": {
"type": "number",
"description": "The port of the webpack-dev-server",
"default": 3000
},
"host": {
"type": "string",
"description": "The hostname or ip of the webpack-dev-server",
"default": "localhost"
}
}
}
}
}
}
],
"search.exclude": {
"dist/**": true
},
"typescript.check.tscVersion": false
}
151 changes: 151 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
{
"version": "0.1.0",
"command": "npm",
"isShellCommand": true,
"echoCommand": false,
"suppressTaskName": true,
"showOutput": "always",
"tasks": [
{
"args": [
"run",
"start",
"--silent",
"--react-hot-boilerplate-vscode:port=3000",
"--react-hot-boilerplate-vscode:host=localhost" // use these command line args to override host and port of the dev-server. default values are defined in package.json config section.
],
"problemMatcher": [
{
"owner": "custom",
"pattern": {
"regexp": "____________"
},
"watching": {
"activeOnStart": true,
"beginsPattern": "^webpack: Compiling\\.\\.\\.$",
"endsPattern": "^webpack: (Compiled successfully|Failed to compile)\\.$"
}
},
{
"owner": "javascript",
"severity": "error",
"applyTo": "closedDocuments",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^(Module build failed:\\s.*?:\\s(.*):(.*?))[\\s+](?:\\(([\\d-]+):([\\d-]+)\\))?$",
"message": 3,
"file": 2,
"line": 4,
"column": 5
}
]
},
{
"owner": "javascript",
"severity": "error",
"applyTo": "closedDocuments",
"fileLocation": "relative",
"pattern": [
{
"regexp": "^ERROR in ./(.*)\\s?$",
"file": 1
},
{
"regexp": "^.*?Error:\\s(.*').*$",
"message": 1
},
{
"regexp": "^\\s+@.*?(\\d+)(?:-([\\d]+))?:(\\d+)(?:-([\\d]+))?\\s?$",
"line": 1,
"endLine": 2,
"column": 3,
"endColumn": 4
}
]
}
],
"isBackground": true,
"taskName": "development"
},
{
"args": [
"run",
"build",
"--silent"
],
"problemMatcher": [
{
"owner": "javascript",
"severity": "error",
"applyTo": "closedDocuments",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^(Module build failed:\\s.*?:\\s(.*):(.*?))[\\s+](?:\\(([\\d-]+):([\\d-]+)\\))?$",
"message": 3,
"file": 2,
"line": 4,
"column": 5
}
]
},
{
"owner": "javascript",
"severity": "error",
"applyTo": "closedDocuments",
"fileLocation": "relative",
"pattern": [
{
"regexp": "^ERROR in ./(.*)\\s?$",
"file": 1
},
{
"regexp": "^.*?Error:\\s(.*').*$",
"message": 1
},
{
"regexp": "^\\s+@.*?(\\d+)(?:-([\\d]+))?:(\\d+)(?:-([\\d]+))?\\s?$",
"line": 1,
"endLine": 2,
"column": 3,
"endColumn": 4
}
]
}
],
"taskName": "release",
"isBuildCommand": true
},
{
"args": [
"install",
"--progress",
"false",
"--loglevel",
"http"
],
"taskName": "install"
},
{
"args": [
"run",
"lint",
"--loglevel",
"silent"
],
"problemMatcher": [
"$eslint-stylish"
],
"taskName": "lint",
"isTestCommand": true
}
]
}
Loading