Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
logging-scratch-gui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
David Goessmann
logging-scratch-gui
Commits
50ea4eb3
Commit
50ea4eb3
authored
6 years ago
by
Ben Wheeler
Browse files
Options
Downloads
Patches
Plain Diff
added build mode 'dist' to npm build options
parent
f68b3ee3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+15
-0
15 additions, 0 deletions
README.md
webpack.config.js
+1
-1
1 addition, 1 deletion
webpack.config.js
with
16 additions
and
1 deletion
README.md
+
15
−
0
View file @
50ea4eb3
...
...
@@ -28,6 +28,21 @@ npm start
```
Then go to
[
http://localhost:8601/
](
http://localhost:8601/
)
- the playground outputs the default GUI component
## Developing alongside other Scratch repositories
If you wish to develop scratch-gui alongside other scratch repositories that depend on it, you may wish
to have the other repositories use your local scratch-gui build instead of fetching the current production
version of the scratch-gui that is found by default using
`npm install`
.
To do this:
1.
Make sure you have run
`npm install`
from this repository's top level
2.
Make sure you have run
`npm install`
from the top level of each repository (such as scratch-www) that depends on scratch-gui
3.
From this repository's top level, build the
`dist`
directory by running
`BUILD_MODE=dist npm run build`
4.
From this repository's top level, establish a link to this repository by running
`npm link`
5.
From the top level of each repository that depends on scratch-gui, run
`npm link scratch-gui`
6.
Build or run the repositories that depend on scratch-gui
## Testing
NOTE: If you're a windows user, please run these scripts in Windows
`cmd.exe`
instead of Git Bash/MINGW64.
...
...
This diff is collapsed.
Click to expand it.
webpack.config.js
+
1
−
1
View file @
50ea4eb3
...
...
@@ -177,7 +177,7 @@ module.exports = [
])
})
].
concat
(
process
.
env
.
NODE_ENV
===
'
production
'
?
(
process
.
env
.
NODE_ENV
===
'
production
'
||
process
.
env
.
BUILD_MODE
===
'
dist
'
?
(
// export as library
defaultsDeep
({},
base
,
{
target
:
'
web
'
,
...
...
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