@abcnews/aunty 13.1.0 → 13.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abcnews/aunty",
3
- "version": "13.1.0",
3
+ "version": "13.1.2",
4
4
  "description": "A toolkit for working with ABC News projects",
5
5
  "repository": "abcnews/aunty",
6
6
  "license": "MIT",
@@ -51,12 +51,10 @@
51
51
  "deepmerge": "^4.0.0",
52
52
  "del": "^6.0.0",
53
53
  "execa": "^5.0.0",
54
- "file-loader": "^6.2.0",
55
54
  "fork-ts-checker-webpack-plugin": "^6.2.1",
56
55
  "ftp-deploy": "^2.3.8",
57
56
  "get-all-paths": "^1.0.1",
58
57
  "guess-root-path": "^1.0.0",
59
- "html-loader": "^2.1.2",
60
58
  "i": "^0.3.6",
61
59
  "import-lazy": "^4.0.0",
62
60
  "import-local": "^3.0.2",
@@ -85,7 +83,6 @@
85
83
  "tcp-ping-sync": "^1.0.0",
86
84
  "typescript": "^4.0.2",
87
85
  "update-notifier": "^6.0.2",
88
- "url-loader": "^4.1.1",
89
86
  "webpack": "^5.33.2",
90
87
  "webpack-bundle-analyzer": "^4.5.0",
91
88
  "webpack-dev-server": "^4.6.0",
@@ -19,8 +19,7 @@ const { dry, info, spin, warn, log, error } = require('../../utils/logging');
19
19
  const { ftp, rsync } = require('../../utils/remote');
20
20
  const { combine } = require('../../utils/structures');
21
21
  const { DEFAULTS, MESSAGES, VALID_TYPES } = require('./constants');
22
- const { dim, opt } = require('../../utils/color');
23
- const { check } = require('prettier');
22
+ const { dim, opt, hvy, req } = require('../../utils/color');
24
23
 
25
24
  module.exports = command(
26
25
  {
@@ -103,7 +102,8 @@ module.exports = command(
103
102
  error('An FTP error ocurred');
104
103
  }
105
104
  } else {
106
- warn('Destination directory exists? OK to overwrite?');
105
+ warn('Destination directory exists. OK to overwrite?');
106
+ log(` ┗ ${hvy('dir')}: ${req(to)}`);
107
107
 
108
108
  const overwriteSelection = (
109
109
  await cliSelect({
@@ -9,7 +9,6 @@ const CopyPlugin = importLazy('copy-webpack-plugin');
9
9
  const ForkTsCheckerWebpackPlugin = importLazy('fork-ts-checker-webpack-plugin');
10
10
  const MiniCssExtractPlugin = importLazy('mini-css-extract-plugin');
11
11
  const sveltePreprocess = importLazy('svelte-preprocess');
12
- const TerserPlugin = importLazy('terser-webpack-plugin');
13
12
  const EnvironmentPlugin = importLazy('webpack/lib/EnvironmentPlugin');
14
13
 
15
14
  // Ours
@@ -18,7 +17,6 @@ const { getBabelConfig } = require('./babel');
18
17
  const { getBuildConfig } = require('./build');
19
18
  const { getProjectConfig } = require('./project');
20
19
 
21
- const URL_LOADER_LIMIT = 10000;
22
20
  const JSX_RESOLVE_EXTENSIONS = ['.jsx', '.tsx'];
23
21
  const PROJECT_TYPES_CONFIG = {
24
22
  preact: {
@@ -213,43 +211,21 @@ function createWebpackConfig({ isModernJS } = {}) {
213
211
  }
214
212
  },
215
213
  {
216
- test: /\.(jpg|png|gif|mp4|m4v|flv|mp3|wav|m4a)$/,
217
- loader: require.resolve('file-loader'),
218
- options: {
219
- name: '[name]-[contenthash].[ext]'
220
- }
221
- },
222
- {
223
- test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/,
224
- loader: require.resolve('url-loader'),
225
- options: {
226
- limit: URL_LOADER_LIMIT,
227
- mimetype: 'application/font-woff'
228
- }
214
+ test: /\.(jpg|png|gif|mp4|m4v|flv|mp3|wav|m4a|eot|ttf|woff|woff2)$/,
215
+ type: 'asset'
229
216
  },
230
217
  {
231
- test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
232
- loader: require.resolve('url-loader'),
233
- options: {
234
- limit: URL_LOADER_LIMIT,
235
- mimetype: 'application/octet-stream'
236
- }
237
- },
238
- {
239
- test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
240
- loader: require.resolve('file-loader')
218
+ test: /\.svg$/,
219
+ resourceQuery: { not: [/raw/] },
220
+ type: 'asset'
241
221
  },
242
222
  {
243
- test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
244
- loader: require.resolve('url-loader'),
245
- options: {
246
- limit: URL_LOADER_LIMIT,
247
- mimetype: 'image/svg+xml'
248
- }
223
+ resourceQuery: /raw/,
224
+ type: 'asset/source'
249
225
  },
250
226
  {
251
227
  test: /\.html$/,
252
- loader: require.resolve('html-loader')
228
+ type: 'asset/source'
253
229
  }
254
230
  ]
255
231
  },