gdu 4.0.0 → 4.0.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # gdu
2
2
 
3
+ ## 4.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - GDU: Supports artifact directory for relay generated files
8
+
3
9
  ## 4.0.0
4
10
 
5
11
  ### Major Changes
@@ -11,6 +11,7 @@ declare function _exports(guruConfig: any): {
11
11
  haste: boolean;
12
12
  isDevVariable: string;
13
13
  eagerESModules: boolean;
14
+ artifactDirectory: string;
14
15
  })[])[];
15
16
  };
16
17
  export = _exports;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  const { join } = require('path');
3
3
  const browsers = require('browserslist-config-autoguru');
4
+ const { PROJECT_ROOT } = require('../lib/roots');
4
5
  module.exports = (guruConfig) => {
5
6
  let hasRelay = false;
6
7
  try {
@@ -40,6 +41,7 @@ module.exports = (guruConfig) => {
40
41
  haste: false,
41
42
  isDevVariable: '__DEV__',
42
43
  eagerESModules: true,
44
+ artifactDirectory: `./../../packages/relay/__generated__`,
43
45
  },
44
46
  ],
45
47
  require.resolve('babel-plugin-treat'),
@@ -2,13 +2,14 @@ export declare const withTM: (nextConfig?: {}) => {};
2
2
  export declare const createNextJSConfig: (buildEnv: any) => {
3
3
  distDir: string;
4
4
  reactStrictMode: boolean;
5
+ swcMinify: boolean;
5
6
  experimental: {
6
- esmExternals: boolean;
7
- externalDir: boolean;
7
+ concurrentFeatures: boolean;
8
8
  };
9
9
  images: {
10
10
  domains: string[];
11
11
  formats: string[];
12
+ imageSizes: number[];
12
13
  };
13
14
  webpack: (defaultConfig: any) => any;
14
15
  };
@@ -50,13 +50,20 @@ const createNextJSConfig = (buildEnv) => {
50
50
  return {
51
51
  distDir: `dist/${env}`,
52
52
  reactStrictMode: true,
53
+ swcMinify: true,
53
54
  experimental: {
54
- esmExternals: false,
55
- externalDir: false,
55
+ concurrentFeatures: false,
56
56
  },
57
57
  images: {
58
- domains: ['cdn.autoguru.com.au'],
59
- formats: ['image/webp'],
58
+ domains: [
59
+ 'cdn.autoguru.com.au',
60
+ 'cdn-dev.autoguru.com.au',
61
+ 'cdn-test.autoguru.com.au',
62
+ 'cdn-uat.autoguru.com.au',
63
+ 'cdn-preprod.autoguru.com.au',
64
+ ],
65
+ formats: ['image/avif', 'image/webp'],
66
+ imageSizes: [16, 32, 48, 64, 96, 128, 256, 384, 512],
60
67
  },
61
68
  webpack: (defaultConfig) => {
62
69
  defaultConfig.plugins.push(new webpack_1.DefinePlugin({
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.run = void 0;
7
+ const utilities_1 = require("@autoguru/utilities");
7
8
  const execa_1 = __importDefault(require("execa"));
8
9
  const kleur_1 = require("kleur");
9
10
  const misc_1 = require("../../lib/misc");
10
11
  const roots_1 = require("../../lib/roots");
11
- const utilities_1 = require("@autoguru/utilities");
12
12
  const logger = utilities_1.createLogger('server');
13
13
  const run = async (port) => {
14
14
  const start = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdu",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "private": false,
5
5
  "description": "AutoGuru's development toolkit",
6
6
  "homepage": "https://github.com/autoguru-au/octane/tree/master/packages/gdu#readme",
package/entry/.DS_Store DELETED
Binary file
@@ -1,11 +0,0 @@
1
- /* eslint-disable */
2
-
3
- try {
4
- const { publicPathBase } = require('gdu/config');
5
-
6
- if (typeof publicPathBase !== undefined) {
7
- __webpack_require__.p = publicPathBase + __webpack_require__.p;
8
- }
9
- } catch (error) {
10
- // We dont care.
11
- }