Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
70bf0807
Commit
70bf0807
authored
Jun 25, 2018
by
Mike Greiling
Committed by
Clement Ho
Jun 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "100% CPU for webpack-dev-server running in GDK"
parent
45453c27
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
133 deletions
+122
-133
.nvmrc
.nvmrc
+1
-1
package.json
package.json
+1
-0
scripts/frontend/postinstall.js
scripts/frontend/postinstall.js
+22
-0
yarn.lock
yarn.lock
+98
-132
No files found.
.nvmrc
View file @
70bf0807
9.0.0
8.11.3
package.json
View file @
70bf0807
...
...
@@ -9,6 +9,7 @@
"karma"
:
"BABEL_ENV=${BABEL_ENV:=karma} karma start --single-run true config/karma.config.js"
,
"karma-coverage"
:
"BABEL_ENV=coverage karma start --single-run true config/karma.config.js"
,
"karma-start"
:
"BABEL_ENV=karma karma start config/karma.config.js"
,
"postinstall"
:
"node ./scripts/frontend/postinstall.js"
,
"prettier-staged"
:
"node ./scripts/frontend/prettier.js"
,
"prettier-staged-save"
:
"node ./scripts/frontend/prettier.js save"
,
"prettier-all"
:
"node ./scripts/frontend/prettier.js check-all"
,
...
...
scripts/frontend/postinstall.js
0 → 100644
View file @
70bf0807
const
chalk
=
require
(
'
chalk
'
);
// check that fsevents is available if we're on macOS
if
(
process
.
platform
===
'
darwin
'
)
{
try
{
require
.
resolve
(
'
fsevents
'
);
}
catch
(
e
)
{
console
.
error
(
`
${
chalk
.
red
(
'
error
'
)}
Dependency postinstall check failed.`
);
console
.
error
(
chalk
.
red
(
`
The fsevents driver is not installed properly.
If you are running a new version of Node, please
ensure that it is supported by the fsevents library.
You can try installing again with \`
${
chalk
.
cyan
(
'
yarn install --force
'
)}
\`
`
)
);
process
.
exit
(
1
);
}
}
console
.
log
(
`
${
chalk
.
green
(
'
success
'
)}
Dependency postinstall check passed.`
);
yarn.lock
View file @
70bf0807
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment