Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55cd3a4

Browse files
authored
Build: Followups after introducing ES modules compiled via Rollup
This commit cleans up a few comments & configurations that are out of dateafter the migration to ES modules backed by a Rollup-based compilation.Also, de-indent AMD modules. This will preserve a more similarstructure to the one on 3.x-stable where the body of the main `define`wrapper is not indented.Closesgh-4705
1 parent297d18d commit55cd3a4

File tree

6 files changed

+9
-17
lines changed

6 files changed

+9
-17
lines changed

‎.eslintrc.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
{
22
"root":true,
33

4-
"extends":"./.eslintrc-node.json",
5-
6-
"overrides": [
7-
{
8-
"files":"rollup.config.js",
9-
"parserOptions": {
10-
"sourceType":"module"
11-
}
12-
}
13-
]
4+
"extends":"./.eslintrc-node.json"
145
}

‎Gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = function( grunt ) {
2424
grunt.initConfig({
2525
pkg:grunt.file.readJSON("package.json"),
2626
dst:readOptionalJSON("dist/.destination.json"),
27-
"compare_size":{
27+
compare_size:{
2828
files:["dist/jquery.js","dist/jquery.min.js"],
2929
options:{
3030
compress:{
@@ -232,7 +232,7 @@ module.exports = function( grunt ) {
232232
"test/data/jquery-1.9.1.js",
233233
"test/data/testinit-jsdom.js",
234234

235-
// We don't support various loading methods likeAMD,
235+
// We don't support various loading methods likeesmodules,
236236
// choosing a version etc. for jsdom.
237237
"dist/jquery.js",
238238

‎build/tasks/amd.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ module.exports = function( grunt ) {
1919

2020
constoutputRollupOptions={
2121
format:"amd",
22-
dir:"amd"
22+
dir:"amd",
23+
indent:false
2324
};
2425

2526
grunt.registerTask(

‎build/tasks/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = function( grunt ) {
5454

5555
grunt.registerMultiTask(
5656
"build",
57-
"Concatenate source, remove sub AMD definitions, "+
57+
"Build jQuery ECMAScript modules, "+
5858
"(include/exclude modules with +/- flags), embed date/version",
5959
asyncfunction(){
6060
constdone=this.async();
@@ -302,7 +302,7 @@ module.exports = function( grunt ) {
302302
);
303303

304304
grunt.file.write(name,compiledContents);
305-
grunt.log.ok("File '"+name+"' created.");
305+
grunt.log.ok(`File '${name}' created.`);
306306
done();
307307
}catch(err){
308308
done(err);

‎src/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
// Code Style. This makes that indentation check is not
3535
// performed for 1 depth of outer FunctionExpressions
3636
"ignoredNodes": [
37-
"Program > ExpressionStatement > CallExpression >FunctionExpression > *"
37+
"Program > ExpressionStatement > CallExpression >:last-child > *"
3838
]
3939
} ]
4040
},

‎src/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ jQuery.extend( {
576576
}
577577

578578
// We can fire global events as of now if asked to
579-
// Don't fire events if jQuery.event is undefined in anAMD-usage scenario (#15118)
579+
// Don't fire events if jQuery.event is undefined in anESM-usage scenario (trac-15118)
580580
fireGlobals=jQuery.event&&s.global;
581581

582582
// Watch for a new set of requests

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp