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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
6474eca1
Commit
6474eca1
authored
Mar 11, 2019
by
Clement Ho
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mg-remove-node6-support' into 'master'
Remove node 6 config See merge request gitlab-org/gitlab-ce!25933
parents
d018f1dc
c46b7919
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
26 deletions
+18
-26
.prettierrc
.prettierrc
+1
-9
config/karma.config.js
config/karma.config.js
+5
-5
config/webpack.config.js
config/webpack.config.js
+3
-3
package.json
package.json
+1
-1
scripts/frontend/postinstall.js
scripts/frontend/postinstall.js
+1
-1
scripts/frontend/prettier.js
scripts/frontend/prettier.js
+2
-2
yarn.lock
yarn.lock
+5
-5
No files found.
.prettierrc
View file @
6474eca1
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5",
"overrides": [
{
"files": ["**/app/**/*", "**/spec/**/*"],
"options": {
"trailingComma": "all"
}
}
]
}
config/karma.config.js
View file @
6474eca1
...
...
@@ -26,7 +26,7 @@ webpackConfig.devtool = 'cheap-inline-source-map';
webpackConfig
.
plugins
.
push
(
new
webpack
.
DefinePlugin
({
'
process.env.BABEL_ENV
'
:
JSON
.
stringify
(
process
.
env
.
BABEL_ENV
||
process
.
env
.
NODE_ENV
||
null
),
})
})
,
);
const
specFilters
=
argumentsParser
...
...
@@ -37,7 +37,7 @@ const specFilters = argumentsParser
memo
.
push
(
filter
,
filter
.
replace
(
/
\/?
$/
,
'
/**/*.js
'
));
return
memo
;
},
[]
[]
,
)
.
parse
(
process
.
argv
).
filterSpec
;
...
...
@@ -51,7 +51,7 @@ if (specFilters.length) {
root
:
ROOT_PATH
,
matchBase
:
true
,
})
.
filter
(
path
=>
path
.
endsWith
(
'
spec.js
'
))
.
filter
(
path
=>
path
.
endsWith
(
'
spec.js
'
))
,
);
// flatten
...
...
@@ -78,8 +78,8 @@ if (specFilters.length) {
new
webpack
.
ContextReplacementPlugin
(
/spec
[\\\/]
javascripts$/
,
path
.
join
(
ROOT_PATH
,
'
spec/javascripts
'
),
newContext
)
newContext
,
)
,
);
}
...
...
config/webpack.config.js
View file @
6474eca1
...
...
@@ -251,7 +251,7 @@ module.exports = {
}
else
{
resource
.
request
=
path
.
join
(
ROOT_PATH
,
'
app/assets/javascripts/vue_shared/components/empty_component.js
'
'
app/assets/javascripts/vue_shared/components/empty_component.js
'
,
);
}
}),
...
...
@@ -267,7 +267,7 @@ module.exports = {
const
missingDeps
=
Array
.
from
(
compilation
.
missingDependencies
);
const
nodeModulesPath
=
path
.
join
(
ROOT_PATH
,
'
node_modules
'
);
const
hasMissingNodeModules
=
missingDeps
.
some
(
file
=>
file
.
indexOf
(
nodeModulesPath
)
!==
-
1
file
=>
file
.
indexOf
(
nodeModulesPath
)
!==
-
1
,
);
// watch for changes to missing node_modules
...
...
@@ -278,7 +278,7 @@ module.exports = {
// report our auto-generated bundle count
console
.
log
(
`
${
autoEntriesCount
}
entries from '/pages' automatically added to webpack output.`
`
${
autoEntriesCount
}
entries from '/pages' automatically added to webpack output.`
,
);
callback
();
...
...
package.json
View file @
6474eca1
...
...
@@ -169,7 +169,7 @@
"
nodemon
"
:
"
^1.18.9
"
,
"
pixelmatch
"
:
"
^4.0.2
"
,
"
postcss
"
:
"
^7.0.14
"
,
"
prettier
"
:
"
1.16.
1
"
,
"
prettier
"
:
"
1.16.
4
"
,
"
stylelint
"
:
"
^9.10.1
"
,
"
stylelint-config-recommended
"
:
"
^2.1.0
"
,
"
stylelint-scss
"
:
"
^3.5.3
"
,
...
...
scripts/frontend/postinstall.js
View file @
6474eca1
...
...
@@ -13,7 +13,7 @@ if (process.platform === 'darwin') {
ensure that it is supported by the fsevents library.
You can try installing again with \`
${
chalk
.
cyan
(
'
yarn install --force
'
)}
\`
`
)
`
)
,
);
process
.
exit
(
1
);
}
...
...
scripts/frontend/prettier.js
View file @
6474eca1
...
...
@@ -32,7 +32,7 @@ let globDir = process.argv[3] || '';
if
(
globDir
&&
globDir
.
charAt
(
globDir
.
length
-
1
)
!==
'
/
'
)
globDir
+=
'
/
'
;
console
.
log
(
`Loading all
${
allFiles
?
''
:
'
staged
'
}
files
${
globDir
?
`within
${
globDir
}
`
:
''
}
...`
`Loading all
${
allFiles
?
''
:
'
staged
'
}
files
${
globDir
?
`within
${
globDir
}
`
:
''
}
...`
,
);
const
globPatterns
=
matchExtensions
.
map
(
ext
=>
`
${
globDir
}
**/*.
${
ext
}
`
);
...
...
@@ -105,7 +105,7 @@ Promise.all(matchedFiles.map(checkFileWithPrettierConfig))
.
then
(()
=>
{
const
failAction
=
shouldSave
?
'
fixed
'
:
'
failed
'
;
console
.
log
(
`\nSummary:\n
${
matchedCount
}
files processed (
${
passedCount
}
passed,
${
failedCount
}
${
failAction
}
,
${
ignoredCount
}
ignored)\n`
`\nSummary:\n
${
matchedCount
}
files processed (
${
passedCount
}
passed,
${
failedCount
}
${
failAction
}
,
${
ignoredCount
}
ignored)\n`
,
);
if
(
didWarn
)
process
.
exit
(
1
);
...
...
yarn.lock
View file @
6474eca1
...
...
@@ -8086,16 +8086,16 @@ prepend-http@^2.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
prettier@1.16.1:
version "1.16.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.1.tgz#534c2c9d7853f8845e5e078384e71973bd74089f"
integrity sha512-XXUITwIkGb3CPJ2hforHah/zTINRyie5006Jd2HKy2qz7snEJXl0KLfsJZW/wst9g6R2rFvqba3VpNYdu1hDcA==
prettier@1.16.3:
version "1.16.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.3.tgz#8c62168453badef702f34b45b6ee899574a6a65d"
integrity sha512-kn/GU6SMRYPxUakNXhpP0EedT/KmaPzr0H5lIsDogrykbaxOpOfAFfk5XA7DZrJyMAv1wlMV3CPcZruGXVVUZw==
prettier@1.16.4:
version "1.16.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717"
integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g==
pretty-format@^24.0.0:
version "24.0.0"
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.0.0.tgz#cb6599fd73ac088e37ed682f61291e4678f48591"
...
...
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