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
90295540
Commit
90295540
authored
Sep 09, 2020
by
Lukas Eipert
Committed by
Mike Greiling
Mar 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to jquery slim
parent
a6d5966a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
config/webpack.config.js
config/webpack.config.js
+1
-0
config/webpack.vendor.config.js
config/webpack.vendor.config.js
+4
-1
jest.config.base.js
jest.config.base.js
+1
-0
vendor/assets/javascripts/jasmine-jquery.js
vendor/assets/javascripts/jasmine-jquery.js
+4
-1
No files found.
config/webpack.config.js
View file @
90295540
...
...
@@ -121,6 +121,7 @@ const alias = {
images
:
path
.
join
(
ROOT_PATH
,
'
app/assets/images
'
),
vendor
:
path
.
join
(
ROOT_PATH
,
'
vendor/assets/javascripts
'
),
vue
$
:
'
vue/dist/vue.esm.js
'
,
jquery
$
:
'
jquery/dist/jquery.slim.js
'
,
spec
:
path
.
join
(
ROOT_PATH
,
'
spec/javascripts
'
),
jest
:
path
.
join
(
ROOT_PATH
,
'
spec/frontend
'
),
shared_queries
:
path
.
join
(
ROOT_PATH
,
'
app/graphql/queries
'
),
...
...
config/webpack.vendor.config.js
View file @
90295540
...
...
@@ -13,6 +13,9 @@ module.exports = {
mode
:
'
development
'
,
resolve
:
{
extensions
:
[
'
.js
'
],
alias
:
{
jquery
$
:
'
jquery/dist/jquery.slim.js
'
,
},
},
// ensure output is not generated when errors are encountered
...
...
@@ -22,7 +25,7 @@ module.exports = {
entry
:
{
vendor
:
[
'
jquery
'
,
'
jquery
/dist/jquery.slim.js
'
,
'
pdfjs-dist/build/pdf
'
,
'
pdfjs-dist/build/pdf.worker.min
'
,
'
sql.js
'
,
...
...
jest.config.base.js
View file @
90295540
...
...
@@ -50,6 +50,7 @@ module.exports = (path, options = {}) => {
'
emojis(/.*).json
'
:
'
<rootDir>/fixtures/emojis$1.json
'
,
'
^spec/test_constants$
'
:
'
<rootDir>/spec/frontend/__helpers__/test_constants
'
,
'
^jest/(.*)$
'
:
'
<rootDir>/spec/frontend/$1
'
,
'
^jquery$
'
:
'
<rootDir>/node_modules/jquery/dist/jquery.slim.js
'
,
...
extModuleNameMapper
,
};
...
...
vendor/assets/javascripts/jasmine-jquery.js
View file @
90295540
...
...
@@ -33,7 +33,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
(
function
(
root
,
factory
)
{
if
(
typeof
module
!==
'
undefined
'
&&
module
.
exports
)
{
factory
(
root
,
root
.
jasmine
,
require
(
'
jquery
'
));
// The line below is patched from jquery => jquery/dist/jquery
// in order to load a jQuery with ajax, so that this testing library
// doesn't break
factory
(
root
,
root
.
jasmine
,
require
(
'
jquery/dist/jquery
'
));
}
else
{
factory
(
root
,
root
.
jasmine
,
root
.
jQuery
);
}
...
...
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