File tree 9 files changed +7217
-25
lines changed
9 files changed +7217
-25
lines changed Original file line number Diff line number Diff line change @@ -15,29 +15,35 @@ jobs:
15
15
steps :
16
16
- uses : actions/checkout@v4
17
17
18
+ - uses : pnpm/action-setup@v4
19
+
18
20
- name : Install Node
19
21
uses : actions/setup-node@v4
20
22
with :
21
23
node-version : ${{ env.NODE_VERSION_LOWEST_SUPPORTED }} # lowest supported version
24
+ cache : ' pnpm'
22
25
23
- - name : Install Yarn Dependencies
24
- run : yarn install
26
+ - name : Install Node.js Dependencies
27
+ run : pnpm install
25
28
26
29
- name : Run Biome
27
- run : yarn run ci
30
+ run : pnpm run ci
28
31
29
32
js-dist-current :
30
33
name : Check for un-built JS dist files
31
34
runs-on : ubuntu-latest
32
35
steps :
33
36
- uses : actions/checkout@v4
34
37
38
+ - uses : pnpm/action-setup@v4
39
+
35
40
- name : Install Node
36
41
uses : actions/setup-node@v4
37
42
with :
38
43
node-version : ${{ env.NODE_VERSION_LOWEST_SUPPORTED }} # lowest supported version
39
-
40
- - run : yarn install && yarn build
44
+ cache : ' pnpm'
45
+
46
+ - run : pnpm install && pnpm run build
41
47
42
48
- name : Check if js dist files are current
43
49
run : |
@@ -60,13 +66,16 @@ jobs:
60
66
- name : Checkout
61
67
uses : actions/checkout@v4
62
68
69
+ - uses : pnpm/action-setup@v4
70
+
63
71
- name : Node ${{matrix.node-versions}}
64
72
uses : actions/setup-node@v4
65
73
with :
66
74
node-version : ${{matrix.node-versions}}
75
+ cache : ' pnpm'
67
76
68
- - name : Install Yarn Dependencies
69
- run : yarn install
77
+ - name : Install Node.js Dependencies
78
+ run : pnpm install
70
79
71
80
- name : Tests
72
- run : yarn test
81
+ run : pnpm run test
Original file line number Diff line number Diff line change 1
1
node_modules
2
- yarn.lock
3
- yarn-error.log
Original file line number Diff line number Diff line change
1
+ 18
Original file line number Diff line number Diff line change 17
17
* [ CI] Check for un-built JS dist files by @Kocal in https://github.com/symfony/stimulus-bridge/pull/96
18
18
* Replace ESLint and Prettier by Biome.js by @Kocal in https://github.com/symfony/stimulus-bridge/pull/95
19
19
* Migrate from [ Rollup] ( https://rollupjs.org/ ) to [ Rolldown] ( https://rolldown.rs/ ) by @Kocal in https://github.com/symfony/stimulus-bridge/pull/99
20
+ * Migrate from [ Yarn] ( https://yarnpkg.com/ ) to [ pnpm] ( https://pnpm.io/ ) by @Kocal in https://github.com/symfony/stimulus-bridge/pull/108
20
21
21
22
## 3.3.3
22
23
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Symfony Flex recipe that will set up everything for you. Finish by
22
22
running Encore:
23
23
24
24
``` sh
25
- yarn encore dev --watch
25
+ npm encore dev --watch
26
26
```
27
27
28
28
If you already had Encore installed (and so the recipe did not run), you
@@ -34,7 +34,7 @@ The Webpack Encore recipe usually handles setting up everything you need.
34
34
But you can also do it manually. First, install the bridge:
35
35
36
36
``` sh
37
- yarn add @symfony/stimulus-bridge @hotwired/stimulus --dev
37
+ npm add @symfony/stimulus-bridge @hotwired/stimulus --dev
38
38
```
39
39
40
40
Next, create an ` assets/controllers.json ` file: Flex will update
@@ -77,7 +77,7 @@ export const app = startStimulusApp(require.context(
77
77
That's it! Now run Encore:
78
78
79
79
``` sh
80
- yarn encore watch
80
+ npm encore watch
81
81
```
82
82
83
83
## Usage: Installing UX Packages
@@ -297,9 +297,3 @@ Uncaught (in promise) TypeError: class constructors must be invoked with 'new'
297
297
The error is caused when an ES5 class tries to "extend" an ES6 class. If the target is not correctly set,
298
298
TypeScript will transpile the controller to old ES5 code. But Stimulus 3 uses pure ES6 classes.
299
299
This causes an incompatibility, hence the need to target ES6 explicitly.
300
-
301
- ## Run tests
302
-
303
- ``` sh
304
- yarn test
305
- ```
Original file line number Diff line number Diff line change 1
1
import { Application } from "@hotwired/stimulus" ;
2
2
import symfonyControllers from "./webpack/loader!@symfony/stimulus-bridge/controllers.json" ;
3
3
4
- //#region node_modules/@hotwired /stimulus-webpack-helpers/dist/stimulus-webpack-helpers.js
4
+ //#region node_modules/.pnpm/ @hotwired +stimulus-webpack-helpers@1.0.1_@hotwired+stimulus@3.2.2/node_modules/ @hotwired/stimulus-webpack-helpers/dist/stimulus-webpack-helpers.js
5
5
function definitionsFromContext ( context ) {
6
6
return context . keys ( ) . map ( ( key ) => definitionForModuleWithContextAndKey ( context , key ) ) . filter ( ( value ) => value ) ;
7
7
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const loader_utils = __toESM(require("loader-utils"));
26
26
const schema_utils = __toESM ( require ( "schema-utils" ) ) ;
27
27
const node_vm = __toESM ( require ( "node:vm" ) ) ;
28
28
29
- //#region node_modules/acorn/dist/acorn.mjs
29
+ //#region node_modules/.pnpm/acorn@8.14.0/node_modules/ acorn/dist/acorn.mjs
30
30
var astralIdentifierCodes = [
31
31
509 ,
32
32
0 ,
Original file line number Diff line number Diff line change 9
9
"engines" : {
10
10
"node" : " ^18.12.0 || ^20.0.0 || >=22.0"
11
11
},
12
+ "packageManager" : " pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0" ,
12
13
"scripts" : {
13
- "build" : " yarn rolldown -c" ,
14
- "test" : " yarn run webpack --config test/webpack.config.js && yarn run jest" ,
14
+ "build" : " rolldown -c" ,
15
+ "test" : " webpack --config test/webpack.config.js && jest" ,
15
16
"check" : " biome check" ,
16
17
"ci" : " biome ci"
17
18
},
51
52
" dist/" ,
52
53
" controllers.json" ,
53
54
" lazy-controller-loader.js"
54
- ],
55
- "packageManager" : " yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
55
+ ]
56
56
}
There was a problem loading the remainder of the diff.
You can’t perform that action at this time.
0 commit comments