commit dac1dbb3374352fbf91fabf9734f2b2ca47e4c19 Author: github-action[bot] <> Date: Sat Mar 14 11:20:45 2026 +0000 Create Flex endpoint diff --git a/index.json b/index.json new file mode 100644 index 00000000..16121315 --- /dev/null +++ b/index.json @@ -0,0 +1,51 @@ +{ + "aliases": { + "encore": "symfony/webpack-encore-bundle", + "ux": "symfony/webpack-encore-bundle", + "webpack": "symfony/webpack-encore-bundle", + "webpack-encore": "symfony/webpack-encore-bundle", + "webpack-encore-bundle": "symfony/webpack-encore-bundle", + "webpackencore": "symfony/webpack-encore-bundle", + "webpackencorebundle": "symfony/webpack-encore-bundle" + }, + "recipes": { + "symfony/webpack-encore-bundle": [ + "1.0", + "1.6", + "1.9", + "1.10", + "1.17", + "2.0", + "2.1" + ] + }, + "recipe-conflicts": { + "symfony/webpack-encore-bundle": { + "1.10": { + "symfony/framework-bundle": "<5.4" + }, + "1.17": { + "symfony/framework-bundle": "<5.4" + }, + "2.0": { + "symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0", + "symfony/framework-bundle": "<5.4" + }, + "2.1": { + "symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0", + "symfony/framework-bundle": "<5.4" + } + } + }, + "versions": [], + "branch": "main", + "is_contrib": false, + "_links": { + "repository": "github.com/symfony/recipes", + "origin_template": "{package}:{version}@github.com/symfony/recipes:main", + "recipe_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1521/{package_dotted}.{version}.json", + "recipe_template_relative": "{package_dotted}.{version}.json", + "archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1521/archived/{package_dotted}/{ref}.json", + "archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json" + } +} diff --git a/symfony.webpack-encore-bundle.1.0.json b/symfony.webpack-encore-bundle.1.0.json new file mode 100644 index 00000000..c731ddc8 --- /dev/null +++ b/symfony.webpack-encore-bundle.1.0.json @@ -0,0 +1,248 @@ +{ + "manifests": { + "symfony/webpack-encore-bundle": { + "manifest": { + "bundles": { + "Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "assets/": "assets/", + "config/": "%CONFIG_DIR%/", + "package.json": "package.json", + "webpack.config.js": "webpack.config.js" + }, + "gitignore": [ + "/node_modules/", + "/%PUBLIC_DIR%/build/", + "npm-debug.log", + "yarn-error.log" + ] + }, + "files": { + "assets/app.js": { + "contents": [ + "/*", + " * Welcome to your app's main JavaScript file!", + " *", + " * We recommend including the built version of this JavaScript file", + " * (and its CSS file) in your base layout (base.html.twig).", + " */", + "", + "// any CSS you import will output into a single css file (app.css in this case)", + "import './styles/app.css';", + "", + "// start the Stimulus application", + "import './bootstrap';", + "" + ], + "executable": false + }, + "assets/bootstrap.js": { + "contents": [ + "import { startStimulusApp } from '@symfony/stimulus-bridge';", + "", + "// Registers Stimulus controllers from controllers.json and in the controllers/ directory", + "export const app = startStimulusApp(require.context(", + " '@symfony/stimulus-bridge/lazy-controller-loader!./controllers',", + " true,", + " /\\.[jt]sx?$/", + "));", + "", + "// register any custom, 3rd party controllers here", + "// app.register('some_controller_name', SomeImportedController);", + "" + ], + "executable": false + }, + "assets/controllers.json": { + "contents": [ + "{", + " \"controllers\": [],", + " \"entrypoints\": []", + "}", + "" + ], + "executable": false + }, + "assets/controllers/hello_controller.js": { + "contents": [ + "import { Controller } from 'stimulus';", + "", + "/*", + " * This is an example Stimulus controller!", + " *", + " * Any element with a data-controller=\"hello\" attribute will cause", + " * this controller to be executed. The name \"hello\" comes from the filename:", + " * hello_controller.js -> \"hello\"", + " *", + " * Delete this file or adapt it for your use!", + " */", + "export default class extends Controller {", + " connect() {", + " this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';", + " }", + "}", + "" + ], + "executable": false + }, + "assets/styles/app.css": { + "contents": [ + "body {", + " background-color: lightgray;", + "}", + "" + ], + "executable": false + }, + "config/packages/assets.yaml": { + "contents": [ + "framework:", + " assets:", + " json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'", + "" + ], + "executable": false + }, + "config/packages/prod/webpack_encore.yaml": { + "contents": [ + "#webpack_encore:", + " # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)", + " # Available in version 1.2", + " #cache: true", + "" + ], + "executable": false + }, + "config/packages/webpack_encore.yaml": { + "contents": [ + "webpack_encore:", + " # The path where Encore is building the assets.", + " # This should match Encore.setOutputPath() in webpack.config.js.", + " output_path: '%kernel.project_dir%/public/build'", + " # If multiple builds are defined (as shown below), you can disable the default build:", + " # output_path: false", + "", + " # if using Encore.enableIntegrityHashes() specify the crossorigin attribute value (default: false, or use 'anonymous' or 'use-credentials')", + " # crossorigin: 'anonymous'", + "", + " # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes).", + " # To enable caching for the production environment, creating a webpack_encore.yaml in the config/packages/prod directory with this value set to true", + " # Available in version 1.2", + " #cache: false", + "" + ], + "executable": false + }, + "package.json": { + "contents": [ + "{", + " \"devDependencies\": {", + " \"@symfony/stimulus-bridge\": \"^2.0.0\",", + " \"@symfony/webpack-encore\": \"^1.0.0\",", + " \"core-js\": \"^3.0.0\",", + " \"regenerator-runtime\": \"^0.13.2\",", + " \"stimulus\": \"^2.0.0\",", + " \"webpack-notifier\": \"^1.6.0\"", + " },", + " \"license\": \"UNLICENSED\",", + " \"private\": true,", + " \"scripts\": {", + " \"dev-server\": \"encore dev-server\",", + " \"dev\": \"encore dev\",", + " \"watch\": \"encore dev --watch\",", + " \"build\": \"encore production --progress\"", + " }", + "}", + "" + ], + "executable": false + }, + "webpack.config.js": { + "contents": [ + "const Encore = require('@symfony/webpack-encore');", + "", + "// Manually configure the runtime environment if not already configured yet by the \"encore\" command.", + "// It's useful when you use tools that rely on webpack.config.js file.", + "if (!Encore.isRuntimeEnvironmentConfigured()) {", + " Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');", + "}", + "", + "Encore", + " // directory where compiled assets will be stored", + " .setOutputPath('public/build/')", + " // public path used by the web server to access the output path", + " .setPublicPath('/build')", + " // only needed for CDN's or sub-directory deploy", + " //.setManifestKeyPrefix('build/')", + "", + " /*", + " * ENTRY CONFIG", + " *", + " * Each entry will result in one JavaScript file (e.g. app.js)", + " * and one CSS file (e.g. app.css) if your JavaScript imports CSS.", + " */", + " .addEntry('app', './assets/app.js')", + "", + " // enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)", + " .enableStimulusBridge('./assets/controllers.json')", + "", + " // When enabled, Webpack \"splits\" your files into smaller pieces for greater optimization.", + " .splitEntryChunks()", + "", + " // will require an extra script tag for runtime.js", + " // but, you probably want this, unless you're building a single-page app", + " .enableSingleRuntimeChunk()", + "", + " /*", + " * FEATURE CONFIG", + " *", + " * Enable & configure other features below. For a full", + " * list of features, see:", + " * https://symfony.com/doc/current/frontend.html#adding-more-features", + " */", + " .cleanupOutputBeforeBuild()", + " .enableBuildNotifications()", + " .enableSourceMaps(!Encore.isProduction())", + " // enables hashed filenames (e.g. app.abc123.css)", + " .enableVersioning(Encore.isProduction())", + "", + " .configureBabel((config) => {", + " config.plugins.push('@babel/plugin-proposal-class-properties');", + " })", + "", + " // enables @babel/preset-env polyfills", + " .configureBabelPresetEnv((config) => {", + " config.useBuiltIns = 'usage';", + " config.corejs = 3;", + " })", + "", + " // enables Sass/SCSS support", + " //.enableSassLoader()", + "", + " // uncomment if you use TypeScript", + " //.enableTypeScriptLoader()", + "", + " // uncomment if you use React", + " //.enableReactPreset()", + "", + " // uncomment to get integrity=\"...\" attributes on your script & link tags", + " // requires WebpackEncoreBundle 1.4 or higher", + " //.enableIntegrityHashes(Encore.isProduction())", + "", + " // uncomment if you're having problems with a jQuery plugin", + " //.autoProvidejQuery()", + ";", + "", + "module.exports = Encore.getWebpackConfig();", + "" + ], + "executable": false + } + }, + "ref": "594e2e4ee3307048f1405c00418eea688a67192c" + } + } +} diff --git a/symfony.webpack-encore-bundle.1.10.json b/symfony.webpack-encore-bundle.1.10.json new file mode 100644 index 00000000..e954e040 --- /dev/null +++ b/symfony.webpack-encore-bundle.1.10.json @@ -0,0 +1,273 @@ +{ + "manifests": { + "symfony/webpack-encore-bundle": { + "manifest": { + "bundles": { + "Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "assets/": "assets/", + "config/": "%CONFIG_DIR%/", + "package.json": "package.json", + "webpack.config.js": "webpack.config.js" + }, + "gitignore": [ + "/node_modules/", + "/%PUBLIC_DIR%/build/", + "npm-debug.log", + "yarn-error.log" + ], + "conflict": { + "symfony/framework-bundle": "<5.4" + }, + "post-install-output": [ + " * Install Yarn and run yarn install", + "", + " * Start the development server: yarn encore dev-server" + ] + }, + "files": { + "assets/app.js": { + "contents": [ + "/*", + " * Welcome to your app's main JavaScript file!", + " *", + " * We recommend including the built version of this JavaScript file", + " * (and its CSS file) in your base layout (base.html.twig).", + " */", + "", + "// any CSS you import will output into a single css file (app.css in this case)", + "import './styles/app.css';", + "", + "// start the Stimulus application", + "import './bootstrap';", + "" + ], + "executable": false + }, + "assets/bootstrap.js": { + "contents": [ + "import { startStimulusApp } from '@symfony/stimulus-bridge';", + "", + "// Registers Stimulus controllers from controllers.json and in the controllers/ directory", + "export const app = startStimulusApp(require.context(", + " '@symfony/stimulus-bridge/lazy-controller-loader!./controllers',", + " true,", + " /\\.[jt]sx?$/", + "));", + "", + "// register any custom, 3rd party controllers here", + "// app.register('some_controller_name', SomeImportedController);", + "" + ], + "executable": false + }, + "assets/controllers.json": { + "contents": [ + "{", + " \"controllers\": [],", + " \"entrypoints\": []", + "}", + "" + ], + "executable": false + }, + "assets/controllers/hello_controller.js": { + "contents": [ + "import { Controller } from '@hotwired/stimulus';", + "", + "/*", + " * This is an example Stimulus controller!", + " *", + " * Any element with a data-controller=\"hello\" attribute will cause", + " * this controller to be executed. The name \"hello\" comes from the filename:", + " * hello_controller.js -> \"hello\"", + " *", + " * Delete this file or adapt it for your use!", + " */", + "export default class extends Controller {", + " connect() {", + " this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';", + " }", + "}", + "" + ], + "executable": false + }, + "assets/styles/app.css": { + "contents": [ + "body {", + " background-color: lightgray;", + "}", + "" + ], + "executable": false + }, + "config/packages/webpack_encore.yaml": { + "contents": [ + "webpack_encore:", + " # The path where Encore is building the assets - i.e. Encore.setOutputPath()", + " output_path: '%kernel.project_dir%/public/build'", + " # If multiple builds are defined (as shown below), you can disable the default build:", + " # output_path: false", + "", + " # Set attributes that will be rendered on all script and link tags", + " script_attributes:", + " defer: true", + " # Uncomment (also under link_attributes) if using Turbo Drive", + " # https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change", + " # 'data-turbo-track': reload", + " # link_attributes:", + " # Uncomment if using Turbo Drive", + " # 'data-turbo-track': reload", + "", + " # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')", + " # crossorigin: 'anonymous'", + "", + " # Preload all rendered script and link tags automatically via the HTTP/2 Link header", + " # preload: true", + "", + " # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data", + " # strict_mode: false", + "", + " # If you have multiple builds:", + " # builds:", + " # frontend: '%kernel.project_dir%/public/frontend/build'", + "", + " # pass the build name as the 3rd argument to the Twig functions", + " # {{ encore_entry_script_tags('entry1', null, 'frontend') }}", + "", + "framework:", + " assets:", + " json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'", + "", + "#when@prod:", + "# webpack_encore:", + "# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)", + "# # Available in version 1.2", + "# cache: true", + "", + "#when@test:", + "# webpack_encore:", + "# strict_mode: false", + "" + ], + "executable": false + }, + "package.json": { + "contents": [ + "{", + " \"devDependencies\": {", + " \"@babel/core\": \"^7.17.0\",", + " \"@babel/preset-env\": \"^7.16.0\",", + " \"@hotwired/stimulus\": \"^3.0.0\",", + " \"@symfony/stimulus-bridge\": \"^3.0.0\",", + " \"@symfony/webpack-encore\": \"^4.0.0\",", + " \"core-js\": \"^3.23.0\",", + " \"regenerator-runtime\": \"^0.13.9\",", + " \"webpack\": \"^5.74.0\",", + " \"webpack-cli\": \"^4.10.0\",", + " \"webpack-notifier\": \"^1.15.0\"", + " },", + " \"license\": \"UNLICENSED\",", + " \"private\": true,", + " \"scripts\": {", + " \"dev-server\": \"encore dev-server\",", + " \"dev\": \"encore dev\",", + " \"watch\": \"encore dev --watch\",", + " \"build\": \"encore production --progress\"", + " }", + "}", + "" + ], + "executable": false + }, + "webpack.config.js": { + "contents": [ + "const Encore = require('@symfony/webpack-encore');", + "", + "// Manually configure the runtime environment if not already configured yet by the \"encore\" command.", + "// It's useful when you use tools that rely on webpack.config.js file.", + "if (!Encore.isRuntimeEnvironmentConfigured()) {", + " Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');", + "}", + "", + "Encore", + " // directory where compiled assets will be stored", + " .setOutputPath('public/build/')", + " // public path used by the web server to access the output path", + " .setPublicPath('/build')", + " // only needed for CDN's or subdirectory deploy", + " //.setManifestKeyPrefix('build/')", + "", + " /*", + " * ENTRY CONFIG", + " *", + " * Each entry will result in one JavaScript file (e.g. app.js)", + " * and one CSS file (e.g. app.css) if your JavaScript imports CSS.", + " */", + " .addEntry('app', './assets/app.js')", + "", + " // enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)", + " .enableStimulusBridge('./assets/controllers.json')", + "", + " // When enabled, Webpack \"splits\" your files into smaller pieces for greater optimization.", + " .splitEntryChunks()", + "", + " // will require an extra script tag for runtime.js", + " // but, you probably want this, unless you're building a single-page app", + " .enableSingleRuntimeChunk()", + "", + " /*", + " * FEATURE CONFIG", + " *", + " * Enable & configure other features below. For a full", + " * list of features, see:", + " * https://symfony.com/doc/current/frontend.html#adding-more-features", + " */", + " .cleanupOutputBeforeBuild()", + " .enableBuildNotifications()", + " .enableSourceMaps(!Encore.isProduction())", + " // enables hashed filenames (e.g. app.abc123.css)", + " .enableVersioning(Encore.isProduction())", + "", + " // configure Babel", + " // .configureBabel((config) => {", + " // config.plugins.push('@babel/a-babel-plugin');", + " // })", + "", + " // enables and configure @babel/preset-env polyfills", + " .configureBabelPresetEnv((config) => {", + " config.useBuiltIns = 'usage';", + " config.corejs = '3.23';", + " })", + "", + " // enables Sass/SCSS support", + " //.enableSassLoader()", + "", + " // uncomment if you use TypeScript", + " //.enableTypeScriptLoader()", + "", + " // uncomment if you use React", + " //.enableReactPreset()", + "", + " // uncomment to get integrity=\"...\" attributes on your script & link tags", + " // requires WebpackEncoreBundle 1.4 or higher", + " //.enableIntegrityHashes(Encore.isProduction())", + "", + " // uncomment if you're having problems with a jQuery plugin", + " //.autoProvidejQuery()", + ";", + "", + "module.exports = Encore.getWebpackConfig();", + "" + ], + "executable": false + } + }, + "ref": "06b10227d7b06488d3463909891fdfa4990476cf" + } + } +} diff --git a/symfony.webpack-encore-bundle.1.17.json b/symfony.webpack-encore-bundle.1.17.json new file mode 100644 index 00000000..c10f3f99 --- /dev/null +++ b/symfony.webpack-encore-bundle.1.17.json @@ -0,0 +1,273 @@ +{ + "manifests": { + "symfony/webpack-encore-bundle": { + "manifest": { + "bundles": { + "Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "assets/": "assets/", + "config/": "%CONFIG_DIR%/", + "package.json": "package.json", + "webpack.config.js": "webpack.config.js" + }, + "gitignore": [ + "/node_modules/", + "/%PUBLIC_DIR%/build/", + "npm-debug.log", + "yarn-error.log" + ], + "conflict": { + "symfony/framework-bundle": "<5.4" + }, + "post-install-output": [ + " * Install Yarn and run yarn install", + "", + " * Start the development server: yarn encore dev-server" + ] + }, + "files": { + "assets/app.js": { + "contents": [ + "/*", + " * Welcome to your app's main JavaScript file!", + " *", + " * We recommend including the built version of this JavaScript file", + " * (and its CSS file) in your base layout (base.html.twig).", + " */", + "", + "// any CSS you import will output into a single css file (app.css in this case)", + "import './styles/app.css';", + "", + "// start the Stimulus application", + "import './bootstrap';", + "" + ], + "executable": false + }, + "assets/bootstrap.js": { + "contents": [ + "import { startStimulusApp } from '@symfony/stimulus-bridge';", + "", + "// Registers Stimulus controllers from controllers.json and in the controllers/ directory", + "export const app = startStimulusApp(require.context(", + " '@symfony/stimulus-bridge/lazy-controller-loader!./controllers',", + " true,", + " /\\.[jt]sx?$/", + "));", + "", + "// register any custom, 3rd party controllers here", + "// app.register('some_controller_name', SomeImportedController);", + "" + ], + "executable": false + }, + "assets/controllers.json": { + "contents": [ + "{", + " \"controllers\": [],", + " \"entrypoints\": []", + "}", + "" + ], + "executable": false + }, + "assets/controllers/hello_controller.js": { + "contents": [ + "import { Controller } from '@hotwired/stimulus';", + "", + "/*", + " * This is an example Stimulus controller!", + " *", + " * Any element with a data-controller=\"hello\" attribute will cause", + " * this controller to be executed. The name \"hello\" comes from the filename:", + " * hello_controller.js -> \"hello\"", + " *", + " * Delete this file or adapt it for your use!", + " */", + "export default class extends Controller {", + " connect() {", + " this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';", + " }", + "}", + "" + ], + "executable": false + }, + "assets/styles/app.css": { + "contents": [ + "body {", + " background-color: lightgray;", + "}", + "" + ], + "executable": false + }, + "config/packages/webpack_encore.yaml": { + "contents": [ + "webpack_encore:", + " # The path where Encore is building the assets - i.e. Encore.setOutputPath()", + " output_path: '%kernel.project_dir%/public/build'", + " # If multiple builds are defined (as shown below), you can disable the default build:", + " # output_path: false", + "", + " # Set attributes that will be rendered on all script and link tags", + " script_attributes:", + " defer: true", + " # Uncomment (also under link_attributes) if using Turbo Drive", + " # https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change", + " # 'data-turbo-track': reload", + " # link_attributes:", + " # Uncomment if using Turbo Drive", + " # 'data-turbo-track': reload", + "", + " # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')", + " # crossorigin: 'anonymous'", + "", + " # Preload all rendered script and link tags automatically via the HTTP/2 Link header", + " # preload: true", + "", + " # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data", + " # strict_mode: false", + "", + " # If you have multiple builds:", + " # builds:", + " # frontend: '%kernel.project_dir%/public/frontend/build'", + "", + " # pass the build name as the 3rd argument to the Twig functions", + " # {{ encore_entry_script_tags('entry1', null, 'frontend') }}", + "", + "framework:", + " assets:", + " json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'", + "", + "#when@prod:", + "# webpack_encore:", + "# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)", + "# # Available in version 1.2", + "# cache: true", + "", + "#when@test:", + "# webpack_encore:", + "# strict_mode: false", + "" + ], + "executable": false + }, + "package.json": { + "contents": [ + "{", + " \"devDependencies\": {", + " \"@babel/core\": \"^7.17.0\",", + " \"@babel/preset-env\": \"^7.16.0\",", + " \"@hotwired/stimulus\": \"^3.0.0\",", + " \"@symfony/stimulus-bridge\": \"^4.0.0\",", + " \"@symfony/webpack-encore\": \"^5.1.0\",", + " \"core-js\": \"^3.23.0\",", + " \"regenerator-runtime\": \"^0.13.9\",", + " \"webpack\": \"^5.74.0\",", + " \"webpack-cli\": \"^4.10.0\",", + " \"webpack-notifier\": \"^1.15.0\"", + " },", + " \"license\": \"UNLICENSED\",", + " \"private\": true,", + " \"scripts\": {", + " \"dev-server\": \"encore dev-server\",", + " \"dev\": \"encore dev\",", + " \"watch\": \"encore dev --watch\",", + " \"build\": \"encore production --progress\"", + " }", + "}", + "" + ], + "executable": false + }, + "webpack.config.js": { + "contents": [ + "const Encore = require('@symfony/webpack-encore');", + "", + "// Manually configure the runtime environment if not already configured yet by the \"encore\" command.", + "// It's useful when you use tools that rely on webpack.config.js file.", + "if (!Encore.isRuntimeEnvironmentConfigured()) {", + " Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');", + "}", + "", + "Encore", + " // directory where compiled assets will be stored", + " .setOutputPath('public/build/')", + " // public path used by the web server to access the output path", + " .setPublicPath('/build')", + " // only needed for CDN's or subdirectory deploy", + " //.setManifestKeyPrefix('build/')", + "", + " /*", + " * ENTRY CONFIG", + " *", + " * Each entry will result in one JavaScript file (e.g. app.js)", + " * and one CSS file (e.g. app.css) if your JavaScript imports CSS.", + " */", + " .addEntry('app', './assets/app.js')", + "", + " // enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)", + " .enableStimulusBridge('./assets/controllers.json')", + "", + " // When enabled, Webpack \"splits\" your files into smaller pieces for greater optimization.", + " .splitEntryChunks()", + "", + " // will require an extra script tag for runtime.js", + " // but, you probably want this, unless you're building a single-page app", + " .enableSingleRuntimeChunk()", + "", + " /*", + " * FEATURE CONFIG", + " *", + " * Enable & configure other features below. For a full", + " * list of features, see:", + " * https://symfony.com/doc/current/frontend.html#adding-more-features", + " */", + " .cleanupOutputBeforeBuild()", + " .enableBuildNotifications()", + " .enableSourceMaps(!Encore.isProduction())", + " // enables hashed filenames (e.g. app.abc123.css)", + " .enableVersioning(Encore.isProduction())", + "", + " // configure Babel", + " // .configureBabel((config) => {", + " // config.plugins.push('@babel/a-babel-plugin');", + " // })", + "", + " // enables and configure @babel/preset-env polyfills", + " .configureBabelPresetEnv((config) => {", + " config.useBuiltIns = 'usage';", + " config.corejs = '3.23';", + " })", + "", + " // enables Sass/SCSS support", + " //.enableSassLoader()", + "", + " // uncomment if you use TypeScript", + " //.enableTypeScriptLoader()", + "", + " // uncomment if you use React", + " //.enableReactPreset()", + "", + " // uncomment to get integrity=\"...\" attributes on your script & link tags", + " // requires WebpackEncoreBundle 1.4 or higher", + " //.enableIntegrityHashes(Encore.isProduction())", + "", + " // uncomment if you're having problems with a jQuery plugin", + " //.autoProvidejQuery()", + ";", + "", + "module.exports = Encore.getWebpackConfig();", + "" + ], + "executable": false + } + }, + "ref": "eeb7f3bae6214a0cee8f48310f14e48f5cf90ba3" + } + } +} diff --git a/symfony.webpack-encore-bundle.1.6.json b/symfony.webpack-encore-bundle.1.6.json new file mode 100644 index 00000000..d523e432 --- /dev/null +++ b/symfony.webpack-encore-bundle.1.6.json @@ -0,0 +1,267 @@ +{ + "manifests": { + "symfony/webpack-encore-bundle": { + "manifest": { + "bundles": { + "Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "assets/": "assets/", + "config/": "%CONFIG_DIR%/", + "package.json": "package.json", + "webpack.config.js": "webpack.config.js" + }, + "gitignore": [ + "/node_modules/", + "/%PUBLIC_DIR%/build/", + "npm-debug.log", + "yarn-error.log" + ] + }, + "files": { + "assets/app.js": { + "contents": [ + "/*", + " * Welcome to your app's main JavaScript file!", + " *", + " * We recommend including the built version of this JavaScript file", + " * (and its CSS file) in your base layout (base.html.twig).", + " */", + "", + "// any CSS you import will output into a single css file (app.css in this case)", + "import './styles/app.css';", + "", + "// start the Stimulus application", + "import './bootstrap';", + "" + ], + "executable": false + }, + "assets/bootstrap.js": { + "contents": [ + "import { startStimulusApp } from '@symfony/stimulus-bridge';", + "", + "// Registers Stimulus controllers from controllers.json and in the controllers/ directory", + "export const app = startStimulusApp(require.context(", + " '@symfony/stimulus-bridge/lazy-controller-loader!./controllers',", + " true,", + " /\\.[jt]sx?$/", + "));", + "", + "// register any custom, 3rd party controllers here", + "// app.register('some_controller_name', SomeImportedController);", + "" + ], + "executable": false + }, + "assets/controllers.json": { + "contents": [ + "{", + " \"controllers\": [],", + " \"entrypoints\": []", + "}", + "" + ], + "executable": false + }, + "assets/controllers/hello_controller.js": { + "contents": [ + "import { Controller } from 'stimulus';", + "", + "/*", + " * This is an example Stimulus controller!", + " *", + " * Any element with a data-controller=\"hello\" attribute will cause", + " * this controller to be executed. The name \"hello\" comes from the filename:", + " * hello_controller.js -> \"hello\"", + " *", + " * Delete this file or adapt it for your use!", + " */", + "export default class extends Controller {", + " connect() {", + " this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';", + " }", + "}", + "" + ], + "executable": false + }, + "assets/styles/app.css": { + "contents": [ + "body {", + " background-color: lightgray;", + "}", + "" + ], + "executable": false + }, + "config/packages/assets.yaml": { + "contents": [ + "framework:", + " assets:", + " json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'", + "" + ], + "executable": false + }, + "config/packages/prod/webpack_encore.yaml": { + "contents": [ + "#webpack_encore:", + " # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)", + " # Available in version 1.2", + " #cache: true", + "" + ], + "executable": false + }, + "config/packages/test/webpack_encore.yaml": { + "contents": [ + "#webpack_encore:", + "# strict_mode: false", + "" + ], + "executable": false + }, + "config/packages/webpack_encore.yaml": { + "contents": [ + "webpack_encore:", + " # The path where Encore is building the assets - i.e. Encore.setOutputPath()", + " output_path: '%kernel.project_dir%/public/build'", + " # If multiple builds are defined (as shown below), you can disable the default build:", + " # output_path: false", + "", + " # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')", + " # crossorigin: 'anonymous'", + "", + " # Preload all rendered script and link tags automatically via the HTTP/2 Link header", + " # preload: true", + "", + " # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data", + " # strict_mode: false", + "", + " # If you have multiple builds:", + " # builds:", + " # pass \"frontend\" as the 3rg arg to the Twig functions", + " # {{ encore_entry_script_tags('entry1', null, 'frontend') }}", + "", + " # frontend: '%kernel.project_dir%/public/frontend/build'", + "", + " # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)", + " # Put in config/packages/prod/webpack_encore.yaml", + " # cache: true", + "" + ], + "executable": false + }, + "package.json": { + "contents": [ + "{", + " \"devDependencies\": {", + " \"@symfony/stimulus-bridge\": \"^2.0.0\",", + " \"@symfony/webpack-encore\": \"^1.0.0\",", + " \"core-js\": \"^3.0.0\",", + " \"regenerator-runtime\": \"^0.13.2\",", + " \"stimulus\": \"^2.0.0\",", + " \"webpack-notifier\": \"^1.6.0\"", + " },", + " \"license\": \"UNLICENSED\",", + " \"private\": true,", + " \"scripts\": {", + " \"dev-server\": \"encore dev-server\",", + " \"dev\": \"encore dev\",", + " \"watch\": \"encore dev --watch\",", + " \"build\": \"encore production --progress\"", + " }", + "}", + "" + ], + "executable": false + }, + "webpack.config.js": { + "contents": [ + "const Encore = require('@symfony/webpack-encore');", + "", + "// Manually configure the runtime environment if not already configured yet by the \"encore\" command.", + "// It's useful when you use tools that rely on webpack.config.js file.", + "if (!Encore.isRuntimeEnvironmentConfigured()) {", + " Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');", + "}", + "", + "Encore", + " // directory where compiled assets will be stored", + " .setOutputPath('public/build/')", + " // public path used by the web server to access the output path", + " .setPublicPath('/build')", + " // only needed for CDN's or sub-directory deploy", + " //.setManifestKeyPrefix('build/')", + "", + " /*", + " * ENTRY CONFIG", + " *", + " * Each entry will result in one JavaScript file (e.g. app.js)", + " * and one CSS file (e.g. app.css) if your JavaScript imports CSS.", + " */", + " .addEntry('app', './assets/app.js')", + "", + " // enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)", + " .enableStimulusBridge('./assets/controllers.json')", + "", + " // When enabled, Webpack \"splits\" your files into smaller pieces for greater optimization.", + " .splitEntryChunks()", + "", + " // will require an extra script tag for runtime.js", + " // but, you probably want this, unless you're building a single-page app", + " .enableSingleRuntimeChunk()", + "", + " /*", + " * FEATURE CONFIG", + " *", + " * Enable & configure other features below. For a full", + " * list of features, see:", + " * https://symfony.com/doc/current/frontend.html#adding-more-features", + " */", + " .cleanupOutputBeforeBuild()", + " .enableBuildNotifications()", + " .enableSourceMaps(!Encore.isProduction())", + " // enables hashed filenames (e.g. app.abc123.css)", + " .enableVersioning(Encore.isProduction())", + "", + " .configureBabel((config) => {", + " config.plugins.push('@babel/plugin-proposal-class-properties');", + " })", + "", + " // enables @babel/preset-env polyfills", + " .configureBabelPresetEnv((config) => {", + " config.useBuiltIns = 'usage';", + " config.corejs = 3;", + " })", + "", + " // enables Sass/SCSS support", + " //.enableSassLoader()", + "", + " // uncomment if you use TypeScript", + " //.enableTypeScriptLoader()", + "", + " // uncomment if you use React", + " //.enableReactPreset()", + "", + " // uncomment to get integrity=\"...\" attributes on your script & link tags", + " // requires WebpackEncoreBundle 1.4 or higher", + " //.enableIntegrityHashes(Encore.isProduction())", + "", + " // uncomment if you're having problems with a jQuery plugin", + " //.autoProvidejQuery()", + ";", + "", + "module.exports = Encore.getWebpackConfig();", + "" + ], + "executable": false + } + }, + "ref": "5919ae925ac2c06c860c6260fe12d1dc8ae2a419" + } + } +} diff --git a/symfony.webpack-encore-bundle.1.9.json b/symfony.webpack-encore-bundle.1.9.json new file mode 100644 index 00000000..ddda08ad --- /dev/null +++ b/symfony.webpack-encore-bundle.1.9.json @@ -0,0 +1,271 @@ +{ + "manifests": { + "symfony/webpack-encore-bundle": { + "manifest": { + "bundles": { + "Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "assets/": "assets/", + "config/": "%CONFIG_DIR%/", + "package.json": "package.json", + "webpack.config.js": "webpack.config.js" + }, + "gitignore": [ + "/node_modules/", + "/%PUBLIC_DIR%/build/", + "npm-debug.log", + "yarn-error.log" + ], + "post-install-output": [ + " * Install Yarn and run yarn install", + "", + " * Uncomment the Twig helpers in templates/base.html.twig (they may be already)", + "", + " * Start the development server: yarn encore dev-server" + ] + }, + "files": { + "assets/app.js": { + "contents": [ + "/*", + " * Welcome to your app's main JavaScript file!", + " *", + " * We recommend including the built version of this JavaScript file", + " * (and its CSS file) in your base layout (base.html.twig).", + " */", + "", + "// any CSS you import will output into a single css file (app.css in this case)", + "import './styles/app.css';", + "", + "// start the Stimulus application", + "import './bootstrap';", + "" + ], + "executable": false + }, + "assets/bootstrap.js": { + "contents": [ + "import { startStimulusApp } from '@symfony/stimulus-bridge';", + "", + "// Registers Stimulus controllers from controllers.json and in the controllers/ directory", + "export const app = startStimulusApp(require.context(", + " '@symfony/stimulus-bridge/lazy-controller-loader!./controllers',", + " true,", + " /\\.[jt]sx?$/", + "));", + "", + "// register any custom, 3rd party controllers here", + "// app.register('some_controller_name', SomeImportedController);", + "" + ], + "executable": false + }, + "assets/controllers.json": { + "contents": [ + "{", + " \"controllers\": [],", + " \"entrypoints\": []", + "}", + "" + ], + "executable": false + }, + "assets/controllers/hello_controller.js": { + "contents": [ + "import { Controller } from '@hotwired/stimulus';", + "", + "/*", + " * This is an example Stimulus controller!", + " *", + " * Any element with a data-controller=\"hello\" attribute will cause", + " * this controller to be executed. The name \"hello\" comes from the filename:", + " * hello_controller.js -> \"hello\"", + " *", + " * Delete this file or adapt it for your use!", + " */", + "export default class extends Controller {", + " connect() {", + " this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';", + " }", + "}", + "" + ], + "executable": false + }, + "assets/styles/app.css": { + "contents": [ + "body {", + " background-color: lightgray;", + "}", + "" + ], + "executable": false + }, + "config/packages/webpack_encore.yaml": { + "contents": [ + "webpack_encore:", + " # The path where Encore is building the assets - i.e. Encore.setOutputPath()", + " output_path: '%kernel.project_dir%/public/build'", + " # If multiple builds are defined (as shown below), you can disable the default build:", + " # output_path: false", + "", + " # Set attributes that will be rendered on all script and link tags", + " script_attributes:", + " defer: true", + " # Uncomment (also under link_attributes) if using Turbo Drive", + " # https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change", + " # 'data-turbo-track': reload", + " # link_attributes:", + " # Uncomment if using Turbo Drive", + " # 'data-turbo-track': reload", + "", + " # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')", + " # crossorigin: 'anonymous'", + "", + " # Preload all rendered script and link tags automatically via the HTTP/2 Link header", + " # preload: true", + "", + " # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data", + " # strict_mode: false", + "", + " # If you have multiple builds:", + " # builds:", + " # pass \"frontend\" as the 3rg arg to the Twig functions", + " # {{ encore_entry_script_tags('entry1', null, 'frontend') }}", + "", + " # frontend: '%kernel.project_dir%/public/frontend/build'", + "", + " # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)", + " # Put in config/packages/prod/webpack_encore.yaml", + " # cache: true", + "", + "framework:", + " assets:", + " json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'", + "", + "#when@prod:", + "# webpack_encore:", + "# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)", + "# # Available in version 1.2", + "# cache: true", + "", + "#when@test:", + "# webpack_encore:", + "# strict_mode: false", + "" + ], + "executable": false + }, + "package.json": { + "contents": [ + "{", + " \"devDependencies\": {", + " \"@hotwired/stimulus\": \"^3.0.0\",", + " \"@symfony/stimulus-bridge\": \"^3.0.0\",", + " \"@symfony/webpack-encore\": \"^1.7.0\",", + " \"core-js\": \"^3.0.0\",", + " \"regenerator-runtime\": \"^0.13.2\",", + " \"webpack-notifier\": \"^1.6.0\"", + " },", + " \"license\": \"UNLICENSED\",", + " \"private\": true,", + " \"scripts\": {", + " \"dev-server\": \"encore dev-server\",", + " \"dev\": \"encore dev\",", + " \"watch\": \"encore dev --watch\",", + " \"build\": \"encore production --progress\"", + " }", + "}", + "" + ], + "executable": false + }, + "webpack.config.js": { + "contents": [ + "const Encore = require('@symfony/webpack-encore');", + "", + "// Manually configure the runtime environment if not already configured yet by the \"encore\" command.", + "// It's useful when you use tools that rely on webpack.config.js file.", + "if (!Encore.isRuntimeEnvironmentConfigured()) {", + " Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');", + "}", + "", + "Encore", + " // directory where compiled assets will be stored", + " .setOutputPath('public/build/')", + " // public path used by the web server to access the output path", + " .setPublicPath('/build')", + " // only needed for CDN's or sub-directory deploy", + " //.setManifestKeyPrefix('build/')", + "", + " /*", + " * ENTRY CONFIG", + " *", + " * Each entry will result in one JavaScript file (e.g. app.js)", + " * and one CSS file (e.g. app.css) if your JavaScript imports CSS.", + " */", + " .addEntry('app', './assets/app.js')", + "", + " // enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)", + " .enableStimulusBridge('./assets/controllers.json')", + "", + " // When enabled, Webpack \"splits\" your files into smaller pieces for greater optimization.", + " .splitEntryChunks()", + "", + " // will require an extra script tag for runtime.js", + " // but, you probably want this, unless you're building a single-page app", + " .enableSingleRuntimeChunk()", + "", + " /*", + " * FEATURE CONFIG", + " *", + " * Enable & configure other features below. For a full", + " * list of features, see:", + " * https://symfony.com/doc/current/frontend.html#adding-more-features", + " */", + " .cleanupOutputBeforeBuild()", + " .enableBuildNotifications()", + " .enableSourceMaps(!Encore.isProduction())", + " // enables hashed filenames (e.g. app.abc123.css)", + " .enableVersioning(Encore.isProduction())", + "", + " .configureBabel((config) => {", + " config.plugins.push('@babel/plugin-proposal-class-properties');", + " })", + "", + " // enables @babel/preset-env polyfills", + " .configureBabelPresetEnv((config) => {", + " config.useBuiltIns = 'usage';", + " config.corejs = 3;", + " })", + "", + " // enables Sass/SCSS support", + " //.enableSassLoader()", + "", + " // uncomment if you use TypeScript", + " //.enableTypeScriptLoader()", + "", + " // uncomment if you use React", + " //.enableReactPreset()", + "", + " // uncomment to get integrity=\"...\" attributes on your script & link tags", + " // requires WebpackEncoreBundle 1.4 or higher", + " //.enableIntegrityHashes(Encore.isProduction())", + "", + " // uncomment if you're having problems with a jQuery plugin", + " //.autoProvidejQuery()", + ";", + "", + "module.exports = Encore.getWebpackConfig();", + "" + ], + "executable": false + } + }, + "ref": "f466b6384e592cfda11ca2361bbf7c7287b58f55" + } + } +} diff --git a/symfony.webpack-encore-bundle.2.0.json b/symfony.webpack-encore-bundle.2.0.json new file mode 100644 index 00000000..a5e86cce --- /dev/null +++ b/symfony.webpack-encore-bundle.2.0.json @@ -0,0 +1,241 @@ +{ + "manifests": { + "symfony/webpack-encore-bundle": { + "manifest": { + "bundles": { + "Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "assets/": "assets/", + "config/": "%CONFIG_DIR%/", + "package.json": "package.json", + "webpack.config.js": "webpack.config.js" + }, + "gitignore": [ + "/node_modules/", + "/%PUBLIC_DIR%/build/", + "npm-debug.log", + "yarn-error.log" + ], + "conflict": { + "symfony/framework-bundle": "<5.4", + "symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0" + }, + "add-lines": [ + { + "file": "templates/base.html.twig", + "content": " {{ encore_entry_script_tags('app') }}", + "position": "after_target", + "target": "{% block javascripts %}", + "warn_if_missing": true + }, + { + "file": "templates/base.html.twig", + "content": " {{ encore_entry_link_tags('app') }}", + "position": "after_target", + "target": "{% block stylesheets %}", + "warn_if_missing": true + } + ], + "post-install-output": [ + " * Install NPM and run npm install", + "", + " * Compile your assets for development: npm run dev", + " ", + " * Compile your assets for development and watch for any modifications: npm run watch", + " ", + " * Or start the development server: npm run dev-server", + " ", + " * Compile your assets for production: npm run build" + ] + }, + "files": { + "assets/app.js": { + "contents": [ + "/*", + " * Welcome to your app's main JavaScript file!", + " *", + " * We recommend including the built version of this JavaScript file", + " * (and its CSS file) in your base layout (base.html.twig).", + " */", + "", + "// any CSS you import will output into a single css file (app.css in this case)", + "import './styles/app.css';", + "" + ], + "executable": false + }, + "assets/styles/app.css": { + "contents": [ + "body {", + " background-color: lightgray;", + "}", + "" + ], + "executable": false + }, + "config/packages/webpack_encore.yaml": { + "contents": [ + "webpack_encore:", + " # The path where Encore is building the assets - i.e. Encore.setOutputPath()", + " output_path: '%kernel.project_dir%/public/build'", + " # If multiple builds are defined (as shown below), you can disable the default build:", + " # output_path: false", + "", + " # Set attributes that will be rendered on all script and link tags", + " script_attributes:", + " defer: true", + " # Uncomment (also under link_attributes) if using Turbo Drive", + " # https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change", + " # 'data-turbo-track': reload", + " # link_attributes:", + " # Uncomment if using Turbo Drive", + " # 'data-turbo-track': reload", + "", + " # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')", + " # crossorigin: 'anonymous'", + "", + " # Preload all rendered script and link tags automatically via the HTTP/2 Link header", + " # preload: true", + "", + " # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data", + " # strict_mode: false", + "", + " # If you have multiple builds:", + " # builds:", + " # frontend: '%kernel.project_dir%/public/frontend/build'", + "", + " # pass the build name as the 3rd argument to the Twig functions", + " # {{ encore_entry_script_tags('entry1', null, 'frontend') }}", + "", + "framework:", + " assets:", + " json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'", + "", + "#when@prod:", + "# webpack_encore:", + "# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)", + "# # Available in version 1.2", + "# cache: true", + "", + "#when@test:", + "# webpack_encore:", + "# strict_mode: false", + "" + ], + "executable": false + }, + "package.json": { + "contents": [ + "{", + " \"devDependencies\": {", + " \"@babel/core\": \"^7.17.0\",", + " \"@babel/preset-env\": \"^7.16.0\",", + " \"@symfony/webpack-encore\": \"^5.1.0\",", + " \"core-js\": \"^3.38.0\",", + " \"regenerator-runtime\": \"^0.13.9\",", + " \"webpack\": \"^5.74.0\",", + " \"webpack-cli\": \"^5.1.0\"", + " },", + " \"license\": \"UNLICENSED\",", + " \"private\": true,", + " \"scripts\": {", + " \"dev-server\": \"encore dev-server\",", + " \"dev\": \"encore dev\",", + " \"watch\": \"encore dev --watch\",", + " \"build\": \"encore production --progress\"", + " }", + "}", + "" + ], + "executable": false + }, + "webpack.config.js": { + "contents": [ + "const Encore = require('@symfony/webpack-encore');", + "", + "// Manually configure the runtime environment if not already configured yet by the \"encore\" command.", + "// It's useful when you use tools that rely on webpack.config.js file.", + "if (!Encore.isRuntimeEnvironmentConfigured()) {", + " Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');", + "}", + "", + "Encore", + " // directory where compiled assets will be stored", + " .setOutputPath('public/build/')", + " // public path used by the web server to access the output path", + " .setPublicPath('/build')", + " // only needed for CDN's or subdirectory deploy", + " //.setManifestKeyPrefix('build/')", + "", + " /*", + " * ENTRY CONFIG", + " *", + " * Each entry will result in one JavaScript file (e.g. app.js)", + " * and one CSS file (e.g. app.css) if your JavaScript imports CSS.", + " */", + " .addEntry('app', './assets/app.js')", + "", + " // When enabled, Webpack \"splits\" your files into smaller pieces for greater optimization.", + " .splitEntryChunks()", + "", + " // will require an extra script tag for runtime.js", + " // but, you probably want this, unless you're building a single-page app", + " .enableSingleRuntimeChunk()", + "", + " /*", + " * FEATURE CONFIG", + " *", + " * Enable & configure other features below. For a full", + " * list of features, see:", + " * https://symfony.com/doc/current/frontend.html#adding-more-features", + " */", + " .cleanupOutputBeforeBuild()", + "", + " // Displays build status system notifications to the user", + " // .enableBuildNotifications()", + "", + " .enableSourceMaps(!Encore.isProduction())", + " // enables hashed filenames (e.g. app.abc123.css)", + " .enableVersioning(Encore.isProduction())", + "", + " // configure Babel", + " // .configureBabel((config) => {", + " // config.plugins.push('@babel/a-babel-plugin');", + " // })", + "", + " // enables and configure @babel/preset-env polyfills", + " .configureBabelPresetEnv((config) => {", + " config.useBuiltIns = 'usage';", + " config.corejs = '3.38';", + " })", + "", + " // enables Sass/SCSS support", + " //.enableSassLoader()", + "", + " // uncomment if you use TypeScript", + " //.enableTypeScriptLoader()", + "", + " // uncomment if you use React", + " //.enableReactPreset()", + "", + " // uncomment to get integrity=\"...\" attributes on your script & link tags", + " // requires WebpackEncoreBundle 1.4 or higher", + " //.enableIntegrityHashes(Encore.isProduction())", + "", + " // uncomment if you're having problems with a jQuery plugin", + " //.autoProvidejQuery()", + ";", + "", + "module.exports = Encore.getWebpackConfig();", + "" + ], + "executable": false + } + }, + "ref": "719f6110345acb6495e496601fc1b4977d7102b3" + } + } +} diff --git a/symfony.webpack-encore-bundle.2.1.json b/symfony.webpack-encore-bundle.2.1.json new file mode 100644 index 00000000..fb3e5704 --- /dev/null +++ b/symfony.webpack-encore-bundle.2.1.json @@ -0,0 +1,241 @@ +{ + "manifests": { + "symfony/webpack-encore-bundle": { + "manifest": { + "bundles": { + "Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "assets/": "assets/", + "config/": "%CONFIG_DIR%/", + "package.json": "package.json", + "webpack.config.js": "webpack.config.js" + }, + "gitignore": [ + "/node_modules/", + "/%PUBLIC_DIR%/build/", + "npm-debug.log", + "yarn-error.log" + ], + "conflict": { + "symfony/framework-bundle": "<5.4", + "symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0" + }, + "add-lines": [ + { + "file": "templates/base.html.twig", + "content": " {{ encore_entry_script_tags('app') }}", + "position": "after_target", + "target": "{% block javascripts %}", + "warn_if_missing": true + }, + { + "file": "templates/base.html.twig", + "content": " {{ encore_entry_link_tags('app') }}", + "position": "after_target", + "target": "{% block stylesheets %}", + "warn_if_missing": true + } + ], + "post-install-output": [ + " * Install NPM and run npm install", + "", + " * Compile your assets for development: npm run dev", + " ", + " * Compile your assets for development and watch for any modifications: npm run watch", + " ", + " * Or start the development server: npm run dev-server", + " ", + " * Compile your assets for production: npm run build" + ] + }, + "files": { + "assets/app.js": { + "contents": [ + "/*", + " * Welcome to your app's main JavaScript file!", + " *", + " * We recommend including the built version of this JavaScript file", + " * (and its CSS file) in your base layout (base.html.twig).", + " */", + "", + "// any CSS you import will output into a single css file (app.css in this case)", + "import './styles/app.css';", + "" + ], + "executable": false + }, + "assets/styles/app.css": { + "contents": [ + "body {", + " background-color: lightgray;", + "}", + "" + ], + "executable": false + }, + "config/packages/webpack_encore.yaml": { + "contents": [ + "webpack_encore:", + " # The path where Encore is building the assets - i.e. Encore.setOutputPath()", + " output_path: '%kernel.project_dir%/public/build'", + " # If multiple builds are defined (as shown below), you can disable the default build:", + " # output_path: false", + "", + " # Set attributes that will be rendered on all script and link tags", + " script_attributes:", + " defer: true", + " # Uncomment (also under link_attributes) if using Turbo Drive", + " # https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change", + " # 'data-turbo-track': reload", + " # link_attributes:", + " # Uncomment if using Turbo Drive", + " # 'data-turbo-track': reload", + "", + " # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')", + " # crossorigin: 'anonymous'", + "", + " # Preload all rendered script and link tags automatically via the HTTP/2 Link header", + " # preload: true", + "", + " # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data", + " # strict_mode: false", + "", + " # If you have multiple builds:", + " # builds:", + " # frontend: '%kernel.project_dir%/public/frontend/build'", + "", + " # pass the build name as the 3rd argument to the Twig functions", + " # {{ encore_entry_script_tags('entry1', null, 'frontend') }}", + "", + "framework:", + " assets:", + " json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'", + "", + "#when@prod:", + "# webpack_encore:", + "# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)", + "# # Available in version 1.2", + "# cache: true", + "", + "#when@test:", + "# webpack_encore:", + "# strict_mode: false", + "" + ], + "executable": false + }, + "package.json": { + "contents": [ + "{", + " \"devDependencies\": {", + " \"@babel/core\": \"^7.17.0\",", + " \"@babel/preset-env\": \"^7.16.0\",", + " \"@symfony/webpack-encore\": \"^6.0.0\",", + " \"core-js\": \"^3.38.0\",", + " \"regenerator-runtime\": \"^0.13.9\",", + " \"webpack\": \"^5.72\",", + " \"webpack-cli\": \"^6.0.0\"", + " },", + " \"license\": \"UNLICENSED\",", + " \"private\": true,", + " \"scripts\": {", + " \"dev-server\": \"encore dev-server\",", + " \"dev\": \"encore dev\",", + " \"watch\": \"encore dev --watch\",", + " \"build\": \"encore production --progress\"", + " }", + "}", + "" + ], + "executable": false + }, + "webpack.config.js": { + "contents": [ + "const Encore = require('@symfony/webpack-encore');", + "", + "// Manually configure the runtime environment if not already configured yet by the \"encore\" command.", + "// It's useful when you use tools that rely on webpack.config.js file.", + "if (!Encore.isRuntimeEnvironmentConfigured()) {", + " Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');", + "}", + "", + "Encore", + " // directory where compiled assets will be stored", + " .setOutputPath('public/build/')", + " // public path used by the web server to access the output path", + " .setPublicPath('/build')", + " // only needed for CDN's or subdirectory deploy", + " //.setManifestKeyPrefix('build/')", + "", + " /*", + " * ENTRY CONFIG", + " *", + " * Each entry will result in one JavaScript file (e.g. app.js)", + " * and one CSS file (e.g. app.css) if your JavaScript imports CSS.", + " */", + " .addEntry('app', './assets/app.js')", + "", + " // When enabled, Webpack \"splits\" your files into smaller pieces for greater optimization.", + " .splitEntryChunks()", + "", + " // will require an extra script tag for runtime.js", + " // but, you probably want this, unless you're building a single-page app", + " .enableSingleRuntimeChunk()", + "", + " /*", + " * FEATURE CONFIG", + " *", + " * Enable & configure other features below. For a full", + " * list of features, see:", + " * https://symfony.com/doc/current/frontend.html#adding-more-features", + " */", + " .cleanupOutputBeforeBuild()", + "", + " // Displays build status system notifications to the user", + " // .enableBuildNotifications()", + "", + " .enableSourceMaps(!Encore.isProduction())", + " // enables hashed filenames (e.g. app.abc123.css)", + " .enableVersioning(Encore.isProduction())", + "", + " // configure Babel", + " // .configureBabel((config) => {", + " // config.plugins.push('@babel/a-babel-plugin');", + " // })", + "", + " // enables and configure @babel/preset-env polyfills", + " .configureBabelPresetEnv((config) => {", + " config.useBuiltIns = 'usage';", + " config.corejs = '3.38';", + " })", + "", + " // enables Sass/SCSS support", + " //.enableSassLoader()", + "", + " // uncomment if you use TypeScript", + " //.enableTypeScriptLoader()", + "", + " // uncomment if you use React", + " //.enableReactPreset()", + "", + " // uncomment to get integrity=\"...\" attributes on your script & link tags", + " // requires WebpackEncoreBundle 1.4 or higher", + " //.enableIntegrityHashes(Encore.isProduction())", + "", + " // uncomment if you're having problems with a jQuery plugin", + " //.autoProvidejQuery()", + ";", + "", + "module.exports = Encore.getWebpackConfig();", + "" + ], + "executable": false + } + }, + "ref": "d38b271482707f5209f7bb03884feb88e3bb4f45" + } + } +}