File tree Expand file tree Collapse file tree 13 files changed +10843
-7404
lines changed Expand file tree Collapse file tree 13 files changed +10843
-7404
lines changed Original file line number Diff line number Diff line change
1
+ /.yarn /** linguist-vendored
2
+ /.yarn /releases /* binary
3
+ /.yarn /plugins /** /* binary
4
+ /.pnp. * binary linguist-generated
Original file line number Diff line number Diff line change @@ -25,14 +25,16 @@ jobs:
25
25
with :
26
26
node-version : ${{matrix.node-versions}}
27
27
28
+ - run : corepack enable
29
+
28
30
- name : Remove Lock File
29
31
run : rm yarn.lock
30
32
31
33
- name : Install Yarn Dependencies
32
- run : yarn install
34
+ run : yarn install --mode update-lockfile && yarn install
33
35
34
36
- name : Show Installed Versions
35
- run : yarn list --depth=0
37
+ run : yarn info --name-only
36
38
37
39
- name : Run Tests
38
40
run : yarn test
Original file line number Diff line number Diff line change 18
18
with :
19
19
node-version : ' 22'
20
20
21
+ - run : corepack enable
22
+
21
23
- name : Install Yarn Dependencies
22
24
run : yarn install
23
25
Original file line number Diff line number Diff line change 25
25
with :
26
26
node-version : ${{matrix.node-versions}}
27
27
28
+ - run : corepack enable
29
+
28
30
- name : Remove Lock File
29
31
run : rm yarn.lock
30
32
@@ -40,10 +42,10 @@ jobs:
40
42
git commit -am "Force Lowest Dependencies"
41
43
42
44
- name : Install Yarn Dependencies
43
- run : yarn install
45
+ run : yarn install --mode update-lockfile && yarn install
44
46
45
47
- name : Show Installed Versions
46
- run : yarn list --depth=0
48
+ run : yarn info --name-only
47
49
48
50
- name : Run Tests
49
51
run : yarn test
Original file line number Diff line number Diff line change @@ -25,11 +25,13 @@ jobs:
25
25
with :
26
26
node-version : ${{matrix.node-versions}}
27
27
28
+ - run : corepack enable
29
+
28
30
- name : Install Yarn Dependencies
29
31
run : yarn install
30
32
31
33
- name : Show Installed Versions
32
- run : yarn list --depth=0
34
+ run : yarn info --name-only
33
35
34
36
- name : Run Tests
35
37
run : yarn test
Original file line number Diff line number Diff line change 97
97
with :
98
98
node-version : ' 22'
99
99
100
+ - run : corepack enable
101
+
100
102
- if : ${{ contains(matrix.app.name, 'pnpm') }}
101
103
name : Install pnpm
102
104
uses : pnpm/action-setup@v4
Original file line number Diff line number Diff line change 1
- node_modules /
2
- npm-debug.log *
1
+ # https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
2
+ .yarn /*
3
+ ! .yarn /cache
4
+ ! .yarn /patches
5
+ ! .yarn /plugins
6
+ ! .yarn /releases
7
+ ! .yarn /sdks
8
+ ! .yarn /versions
9
+
10
+ node_modules
11
+ yarn-error.log
12
+
3
13
/test_tmp
Original file line number Diff line number Diff line change
1
+ nodeLinker : node-modules
Original file line number Diff line number Diff line change 3
3
"version" : " 4.7.0" ,
4
4
"description" : " Webpack Encore is a simpler way to integrate Webpack into your application" ,
5
5
"main" : " index.js" ,
6
+ "packageManager" : " yarn@4.5.0" ,
6
7
"scripts" : {
7
8
"test" : " yarn run test:main && yarn run test:persistent-cache" ,
8
9
"test:main" : " mocha --reporter spec test --recursive --ignore test/persistent-cache/*" ,
51
52
"@babel/preset-react" : " ^7.9.0" ,
52
53
"@babel/preset-typescript" : " ^7.0.0" ,
53
54
"@hotwired/stimulus" : " ^3.0.0" ,
54
- "@symfony/mock-module" : " file :fixtures/stimulus/mock-module" ,
55
+ "@symfony/mock-module" : " portal :fixtures/stimulus/mock-module" ,
55
56
"@symfony/stimulus-bridge" : " ^3.0.0" ,
56
57
"@vue/babel-helper-vue-jsx-merge-props" : " ^1.0.0" ,
57
58
"@vue/babel-plugin-jsx" : " ^1.0.0" ,
223
224
" lib/" ,
224
225
" bin/" ,
225
226
" index.js"
226
- ],
227
- "packageManager" : " yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
227
+ ]
228
228
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const vueLoaderLowVersion = '15.0.11';
22
22
*/
23
23
function getLowestVersion ( dependency , range ) {
24
24
return new Promise ( ( resolve , reject ) => {
25
- if ( range . startsWith ( 'file:' ) ) {
25
+ if ( range . startsWith ( 'file:' ) || range . startsWith ( 'portal:' ) ) {
26
26
resolve ( [ dependency , range ] ) ;
27
27
}
28
28
Original file line number Diff line number Diff line change @@ -286,13 +286,17 @@ module.exports = Encore.getWebpackConfig();
286
286
287
287
describe ( 'Without webpack-dev-server installed' , ( ) => {
288
288
before ( ( ) => {
289
- execSync ( 'yarn remove webpack-dev-server --dev ' , { cwd : projectDir } ) ;
289
+ execSync ( 'yarn remove webpack-dev-server' , { cwd : projectDir } ) ;
290
290
} ) ;
291
291
292
292
after ( ( ) => {
293
+ // Yarn install can take a long time
294
+ this . timeout ( 10000 ) ;
295
+ let output ;
293
296
// Re-install webpack-dev-server and ensure the project is in a clean state
294
- execSync ( 'git checkout package.json' , { cwd : projectDir } ) ;
295
- execSync ( 'yarn install' , { cwd : projectDir } ) ;
297
+ try { output = execSync ( 'git checkout package.json yarn.lock' , { cwd : projectDir } ) ; console . log ( output . toString ( ) ) } catch ( e ) { console . error ( e ) ; }
298
+ // try { output = execSync('yarn install --mode update-lockfile' , { cwd: projectDir }); console.log(output.toString()) } catch(e) { console.error(e); }
299
+ try { output = execSync ( 'yarn install ' , { cwd : projectDir } ) ; console . log ( output . toString ( ) ) } catch ( e ) { console . error ( e ) ; }
296
300
} ) ;
297
301
298
302
it ( 'Throw an error when trying to use the webpack-dev-server if not installed' , done => {
Original file line number Diff line number Diff line change @@ -2070,14 +2070,14 @@ module.exports = {
2070
2070
'main.js' ,
2071
2071
'main.css' ,
2072
2072
'manifest.json' ,
2073
- 'node_modules_symfony_mock -module_dist_controller_js.js' ,
2073
+ 'fixtures_stimulus_mock -module_dist_controller_js.js' ,
2074
2074
'entrypoints.json' ,
2075
2075
'runtime.js' ,
2076
2076
] ) ;
2077
2077
2078
2078
// test controllers and style are shipped
2079
2079
webpackAssert . assertOutputFileContains ( 'main.js' , 'app-controller' ) ;
2080
- webpackAssert . assertOutputFileContains ( 'node_modules_symfony_mock -module_dist_controller_js.js' , 'mock-module-controller' ) ;
2080
+ webpackAssert . assertOutputFileContains ( 'fixtures_stimulus_mock -module_dist_controller_js.js' , 'mock-module-controller' ) ;
2081
2081
webpackAssert . assertOutputFileContains ( 'main.css' , 'body {}' ) ;
2082
2082
2083
2083
done ( ) ;
You can’t perform that action at this time.
0 commit comments