From 70f90dd45669c4d682db6e6514a7b166dfd0e857 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 10 Apr 2025 21:03:22 +0100 Subject: [PATCH] Remove un-needed config files --- .env.dusk.testing | 14 ------ .env.github | 70 ------------------------------ .gitattributes | 4 -- .gitignore | 1 - .phpactor.json | 5 --- .styleci.yml | 9 ---- postcss.config.js | 16 ------- psalm.xml | 18 -------- webpack.config.js | 108 ---------------------------------------------- 9 files changed, 245 deletions(-) delete mode 100644 .env.dusk.testing delete mode 100644 .env.github delete mode 100644 .phpactor.json delete mode 100644 .styleci.yml delete mode 100644 postcss.config.js delete mode 100644 psalm.xml delete mode 100644 webpack.config.js diff --git a/.env.dusk.testing b/.env.dusk.testing deleted file mode 100644 index 756f4074..00000000 --- a/.env.dusk.testing +++ /dev/null @@ -1,14 +0,0 @@ -APP_ENV=testing -APP_DEBUG=true -APP_KEY=base64:6DJhvZLVjE6dD4Cqrteh+6Z5vZlG+v/soCKcDHLOAH0= -APP_URL=http://localhost:8000 -APP_LONGURL=localhost -APP_SHORTURL=local - -DB_CONNECTION=travis - -CACHE_DRIVER=array -SESSION_DRIVER=file -QUEUE_DRIVER=sync - -SCOUT_DRIVER=pgsql diff --git a/.env.github b/.env.github deleted file mode 100644 index 0ef2b89b..00000000 --- a/.env.github +++ /dev/null @@ -1,70 +0,0 @@ -APP_NAME=Laravel -APP_ENV=testing -APP_KEY=SomeRandomString # Leave this -APP_DEBUG=false -APP_LOG_LEVEL=warning - -DB_CONNECTION=pgsql -DB_HOST=127.0.0.1 -DB_PORT=5432 -DB_DATABASE=jbukdev_testing -DB_USERNAME=postgres -DB_PASSWORD=postgres - -BROADCAST_DRIVER=log -CACHE_DRIVER=file -SESSION_DRIVER=file -QUEUE_DRIVER=sync - -REDIS_HOST=127.0.0.1 -REDIS_PASSWORD=null -REDIS_PORT=6379 - -MAIL_DRIVER=smtp -MAIL_HOST=smtp.mailtrap.io -MAIL_PORT=2525 -MAIL_USERNAME=null -MAIL_PASSWORD=null -MAIL_ENCRYPTION=null - -PUSHER_APP_ID= -PUSHER_APP_KEY= -PUSHER_APP_SECRET= - -AWS_S3_KEY=your-key -AWS_S3_SECRET=your-secret -AWS_S3_REGION=region -AWS_S3_BUCKET=your-bucket -AWS_S3_URL=https://xxxxxxx.s3-region.amazonaws.com - -APP_URL=https://example.com # This one is necessary -APP_LONGURL=example.com -APP_SHORTURL=examp.le - -ADMIN_USER=admin # pick something better, this is used for `/admin` -ADMIN_PASS=password -DISPLAY_NAME="Joe Bloggs" # This is used for example in the header and titles - -TWITTER_CONSUMER_KEY= -TWITTER_CONSUMER_SECRET= -TWITTER_ACCESS_TOKEN= -TWITTER_ACCESS_TOKEN_SECRET= - -SCOUT_DRIVER=database -SCOUT_QUEUE=false - -PIWIK=false - -FATHOM_ID= - -APP_TIMEZONE=UTC -APP_LANG=en -APP_LOG=daily -SECURE_SESSION_COOKIE=true - -LOG_SLACK_WEBHOOK_URL= -FLARE_KEY= - -FONT_LINK= - -BRIDGY_MASTODON_TOKEN= diff --git a/.gitattributes b/.gitattributes index fcb21d39..78f41d7a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,7 +5,3 @@ *.html diff=html *.md diff=markdown *.php diff=php - -/.github export-ignore -CHANGELOG.md export-ignore -.styleci.yml export-ignore diff --git a/.gitignore b/.gitignore index 5f786e27..a0c2459a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ /public/coverage /public/hot /public/files -/public/fonts /public/storage /storage/*.key /vendor diff --git a/.phpactor.json b/.phpactor.json deleted file mode 100644 index 028bb10a..00000000 --- a/.phpactor.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$schema": "/Users/jonny/git/phpactor/phpactor.schema.json", - "language_server_phpstan.enabled": false, - "language_server_psalm.enabled": true -} diff --git a/.styleci.yml b/.styleci.yml deleted file mode 100644 index 9daadf16..00000000 --- a/.styleci.yml +++ /dev/null @@ -1,9 +0,0 @@ -php: - preset: laravel - disabled: - - no_unused_imports - finder: - not-name: - - index.php -js: true -css: true diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 index f0ba5a6f..00000000 --- a/postcss.config.js +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = { - plugins: { - 'postcss-import': {}, - 'autoprefixer': {}, - '@csstools/postcss-oklab-function': { - preserve: true - }, - 'postcss-nesting': {}, - 'postcss-combine-media-query': {}, - 'postcss-combine-duplicated-selectors': { - removeDuplicatedProperties: true, - removeDuplicatedValues: true - }, - 'cssnano': { preset: 'default' }, - } -}; diff --git a/psalm.xml b/psalm.xml deleted file mode 100644 index da693b64..00000000 --- a/psalm.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index 3c7cc93c..00000000 --- a/webpack.config.js +++ /dev/null @@ -1,108 +0,0 @@ -const path = require('path'); -const StyleLintPlugin = require('stylelint-webpack-plugin'); -const CompressionPlugin = require('compression-webpack-plugin'); -const zlib = require('zlib'); -const EslintPlugin = require('eslint-webpack-plugin'); -const MiniCssExtractPlugin = require("mini-css-extract-plugin"); - -const config = { - entry: ['./resources/js/app.js'], - output: { - path: path.resolve('./public/assets'), - filename: 'app.js', - }, - module: { - rules: [{ - test: /\.js$/, - exclude: /node_modules/, - use: { - loader: 'babel-loader', - options: { - presets: [ - ['@babel/preset-env', { targets: "defaults" }] - ] - } - } - }] - }, - plugins: [ - new StyleLintPlugin({ - configFile: path.resolve(__dirname + '/.stylelintrc'), - context: path.resolve(__dirname + '/resources/css'), - files: '**/*.css', - }), - new EslintPlugin({ - context: path.resolve(__dirname + '/resources/js'), - files: '**/*.js', - }), - new CompressionPlugin({ - filename: "[path][base].br", - algorithm: "brotliCompress", - test: /\.js$|\.css$/, - exclude: /.map$/, - compressionOptions: { - params: { - [zlib.constants.BROTLI_PARAM_QUALITY]: 11, - }, - }, - }), - ] -}; - -module.exports = (env, argv) => { - if (argv.mode === 'development') { - config.devtool = 'eval-source-map'; - - config.module.rules.push({ - test: /\.css$/, - exclude: /node_modules/, - use: [ - { - loader: 'style-loader' - }, - { - loader: 'css-loader', - options: { - sourceMap: true - } - }, - { - loader: 'postcss-loader', - options: { - postcssOptions: { - config: path.resolve(__dirname, 'postcss.config.js'), - }, - sourceMap: true - } - } - ] - }); - } - - if (argv.mode === 'production') { - config.module.rules.push({ - test: /\.css$/, - exclude: /node_modules/, - use: [ - { - loader: MiniCssExtractPlugin.loader, - }, - { - loader: 'css-loader', - }, - { - loader: 'postcss-loader', - options: { - postcssOptions: { - config: path.resolve(__dirname, 'postcss.config.js'), - }, - } - } - ] - }); - - config.plugins.push(new MiniCssExtractPlugin({filename: 'app.css'})); - } - - return config; -}; -- 2.49.0