Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
condenser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
condenser
Commits
598f528c
Commit
598f528c
authored
7 years ago
by
Benjamin Chodoroff
Browse files
Options
Downloads
Patches
Plain Diff
add server-side debug command to package.json
parent
b13d443f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+7
-0
7 additions, 0 deletions
README.md
package.json
+1
-0
1 addition, 0 deletions
package.json
webpack/debug.config.js
+28
-0
28 additions, 0 deletions
webpack/debug.config.js
with
36 additions
and
0 deletions
README.md
+
7
−
0
View file @
598f528c
...
@@ -117,6 +117,13 @@ full-fledged site relying on your own, we recommend looking into running a
...
@@ -117,6 +117,13 @@ full-fledged site relying on your own, we recommend looking into running a
copy of
`steemd`
locally instead
copy of
`steemd`
locally instead
[
https://github.com/steemit/steem
](
https://github.com/steemit/steem
)
.
[
https://github.com/steemit/steem
](
https://github.com/steemit/steem
)
.
#### Debugging SSR code
`yarn debug`
will build a development version of the codebase and then start the
local server with
`--inspect-brk`
so that you can connect a debugging client.
You can use Chromium to connect by finding the remote client at
`chrome://inspect/#devices`
.
#### Configuration
#### Configuration
The intention is to configure condenser using environment variables. You
The intention is to configure condenser using environment variables. You
...
...
This diff is collapsed.
Click to expand it.
package.json
+
1
−
0
View file @
598f528c
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
"precommit"
:
"lint-staged"
,
"precommit"
:
"lint-staged"
,
"production"
:
"NODE_ENV=production node lib/server/index.js"
,
"production"
:
"NODE_ENV=production node lib/server/index.js"
,
"start"
:
"NODE_ENV=development babel-node ./webpack/dev-server.js"
,
"start"
:
"NODE_ENV=development babel-node ./webpack/dev-server.js"
,
"debug"
:
"NODE_ENV=development webpack --config ./webpack/debug.config.js && rm -rf ./lib && babel src --source-maps --out-dir lib -D && node --inspect-brk lib/server/index.js"
,
"checktranslations"
:
"node scripts/check_translations.js"
,
"checktranslations"
:
"node scripts/check_translations.js"
,
"storybook"
:
"start-storybook -p 9001 -c .storybook"
,
"storybook"
:
"start-storybook -p 9001 -c .storybook"
,
"storybook-build"
:
"build-storybook -c .storybook -o docs"
"storybook-build"
:
"build-storybook -c .storybook -o docs"
...
...
This diff is collapsed.
Click to expand it.
webpack/debug.config.js
0 → 100644
+
28
−
0
View file @
598f528c
const
webpack
=
require
(
'
webpack
'
);
const
git
=
require
(
'
git-rev-sync
'
);
const
baseConfig
=
require
(
'
./base.config
'
);
module
.
exports
=
{
...
baseConfig
,
devtool
:
'
cheap-module-eval-source-map
'
,
output
:
{
...
baseConfig
.
output
,
publicPath
:
'
/assets/
'
,
},
module
:
{
...
baseConfig
.
module
,
rules
:
[
...
baseConfig
.
module
.
rules
,
],
},
plugins
:
[
new
webpack
.
DefinePlugin
({
'
process.env
'
:
{
BROWSER
:
JSON
.
stringify
(
true
),
NODE_ENV
:
JSON
.
stringify
(
'
development
'
),
VERSION
:
JSON
.
stringify
(
git
.
long
()),
}
}),
...
baseConfig
.
plugins
,
],
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment