-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathimportmap.php
More file actions
53 lines (52 loc) · 2.93 KB
/
Copy pathimportmap.php
File metadata and controls
53 lines (52 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* Returns the importmap for this application.
*
* - "path" is a path inside the asset mapper system. Use the
* "debug:asset-map" command to see the full list of paths.
*
* - "entrypoint" (JavaScript only) set to true for any module that will
* be used as an "entrypoint" (and passed to the importmap() Twig function).
*
* The "importmap:require" command can be used to add new entries to this file.
*
* @return array<string, array{ // Import name as key, description of the imported file as value
* path: string, // Logical, relative or absolute path to the file
* type?: 'js'|'css'|'json', // Type of the file, defaults to 'js'
* entrypoint?: bool, // Whether the file is an entrypoint, for 'js' only
* }|array{
* version: string, // Version of the remote package
* package_specifier?: string, // Remote "package-name/path" specifier, defaults to the import name
* type?: 'js'|'css'|'json',
* entrypoint?: bool,
* }>
*/
return [
'app' => ['path' => './assets/app.js', 'entrypoint' => true],
// The live operations board. A separate entry point because it is the one surface built on
// Tailwind and the shadcn kit: it must not receive Tabler or Bootstrap, and nothing it loads
// may reach the rest of the application. See assets/board.js.
'board' => ['path' => './assets/board.js', 'entrypoint' => true],
'@hotwired/stimulus' => ['version' => '3.2.2'],
'@symfony/stimulus-bundle' => ['path' => './vendor/symfony/stimulus-bundle/assets/dist/loader.js'],
'bootstrap' => ['version' => '5.3.8'],
'@popperjs/core' => ['version' => '2.11.8'],
'@tabler/core/dist/css/tabler.min.css' => ['version' => '1.4.0', 'type' => 'css'],
'@tabler/icons-webfont/dist/tabler-icons.min.css' => ['version' => '3.46.0', 'type' => 'css'],
'@sentry/browser' => ['version' => '10.67.0'],
'@sentry/feedback' => ['version' => '10.67.0'],
'@sentry/core/browser' => ['version' => '10.67.0'],
'@sentry/browser-utils' => ['version' => '10.67.0'],
'@sentry/conventions/attributes' => ['version' => '0.16.0'],
'@sentry/replay' => ['version' => '10.67.0'],
'@sentry/replay-canvas' => ['version' => '10.67.0'],
'@sentry/core' => ['version' => '10.67.0'],
'@hotwired/turbo' => ['version' => '8.0.23'],
// Tailwind SOURCE for the operations board, not stylesheets any page loads: `assets/vendor/` is
// gitignored, so these entries are what `importmap:install` restores before `tailwind:build`
// compiles them into assets/styles/board.css. They are `@import`ed by that file and read from
// disk by the compiler; nothing imports them from JavaScript, so they are never served.
// Removing them to tidy the import map breaks the board's build on a fresh checkout.
'shadcn/dist/tailwind.css' => ['version' => '4.18.0', 'type' => 'css'],
'tw-animate-css/dist/tw-animate.css' => ['version' => '1.4.0', 'type' => 'css'],
];