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

Commit2bdecf8

Browse files
authored
Build: migrate most grunt tasks off of grunt
Updated tasks include:- lint- npmcopy- build, minify, and process for distribution.- new custom build command using yargs- compare size of minified/gzip built files- pretest scripts, including qunit-fixture, babel transpilation, and npmcopy- node smoke tests- promises aplus tests- new watch task using `rollup.watch` directlyAlso:- upgraded husky and added the new lint command- updated lint config to use new "flat" config format. Seehttps://eslint.org/docs/latest/use/configure/configuration-files-new- Temporarily disabled one lint rule until flat config is supported by eslint-plugin-import. Seeimport-js/eslint-plugin-import#2556- committed package-lock.json- updated all test scripts to use the new build- added an express test server that uses middleware-mockserver (this can be used to run tests without karma)- build-all-variants is now build:allClosegh-5318
1 parentf75daab commit2bdecf8

File tree

62 files changed

+9973
-1655
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+9973
-1655
lines changed

‎.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ charset = utf-8
1010
trim_trailing_whitespace =true
1111
insert_final_newline =true
1212

13-
[package.json]
13+
[*.{json,yml}]
1414
indent_style =space
1515
indent_size =2
1616

‎.eslintignore

Lines changed: 0 additions & 22 deletions
This file was deleted.

‎.eslintrc-browser.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎.eslintrc-node.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎.eslintrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.github/workflows/node.js.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,25 @@ jobs:
6161
run:|
6262
export FIREFOX_SOURCE_URL='https://download.mozilla.org/?product=firefox-esr-latest&lang=en-US&os=linux64'
6363
wget --no-verbose $FIREFOX_SOURCE_URL -O - | tar -jx -C ${HOME}
64-
if:"contains(matrix.NAME, 'Firefox ESR')"
64+
if:contains(matrix.NAME, 'Firefox ESR')
6565

6666
-name:Install dependencies
67-
run:|
68-
npm install
67+
run:npm install
6968

7069
-name:Install Playwright dependencies
7170
run:npx playwright-webkit install-deps
72-
if:"matrix.NPM_SCRIPT == 'test:browser' && contains(matrix.BROWSERS, 'WebkitHeadless')"
71+
if:matrix.NPM_SCRIPT == 'test:browser' && contains(matrix.BROWSERS, 'WebkitHeadless')
72+
73+
-name:Build jQuery for Lint
74+
run:npm run build:all
75+
if:matrix.NPM_SCRIPT == 'test:browserless'
76+
77+
-name:Lint code
78+
run:npm run lint
79+
if:matrix.NODE_VERSION == '18.x'
80+
81+
-name:Prepare tests
82+
run:npm run pretest
7383

7484
-name:Run tests
7585
env:

‎.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,18 @@
88
.bower.json
99
.sizecache.json
1010
yarn.lock
11-
package-lock.json
11+
.eslintcache
1212

1313
npm-debug.log*
1414

15-
# Ignore everything in `dist` folder except for the ESLint config
15+
# Ignore everything in `dist` folder except for
16+
# the ESLint config & package.json files
1617
/dist/*
17-
!/dist/.eslintrc.json
1818
!/dist/package.json
1919

2020
# Ignore everything in the `dist-module` folder except for the ESLint config,
2121
# package.json & Node module wrapper files
2222
/dist-module/*
23-
!/dist-module/.eslintrc.json
2423
!/dist-module/package.json
2524
!/dist-module/jquery.node-module-wrapper.js
2625
!/dist-module/jquery.node-module-wrapper.slim.js

‎.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
."$(dirname --"$0")/_/husky.sh"
3+
4+
npx commitplease .git/COMMIT_EDITMSG

‎.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
."$(dirname --"$0")/_/husky.sh"
3+
4+
npm run lint
5+
npm run qunit-fixture

‎.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.eslintignore
2-
.eslintrc.json
2+
eslint.config.js
33

44
/.editorconfig
55
/.gitattributes

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp