gdu 4.0.0 → 4.0.4

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,29 @@
1
1
  # gdu
2
2
 
3
+ ## 4.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - GDU: Passes on app and node envs to build command
8
+
9
+ ## 4.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - SSR apps: Get changes to their nextjs config defaults
14
+
15
+ ## 4.0.2
16
+
17
+ ### Patch Changes
18
+
19
+ - GDU: Fixes spa relay artifact resoluton
20
+
21
+ ## 4.0.1
22
+
23
+ ### Patch Changes
24
+
25
+ - GDU: Supports artifact directory for relay generated files
26
+
3
27
  ## 4.0.0
4
28
 
5
29
  ### Major Changes
@@ -17,6 +17,8 @@ const buildSSR = async (guruConfig) => {
17
17
  stdio: 'inherit',
18
18
  cwd: roots_1.PROJECT_ROOT,
19
19
  localDir: roots_1.GDU_ROOT,
20
+ extendEnv: true,
21
+ env: { NODE_ENV: process.env.NODE_ENV || 'production', APP_ENV: process.env.APP_ENV || 'prod' },
20
22
  })
21
23
  .then((result) => {
22
24
  console.log(`${kleur_1.dim('SUCCESS!')}`, `${kleur_1.dim('Listening')}: ${kleur_1.blue(result === null || result === void 0 ? void 0 : result.all)}`);
@@ -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: join(PROJECT_ROOT, '../../', 'packages', 'relay', '__generated__'),
43
45
  },
44
46
  ],
45
47
  require.resolve('babel-plugin-treat'),
@@ -2,13 +2,24 @@ 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
+ serverComponents: boolean;
9
+ };
10
+ i18n: {
11
+ locales: string[];
12
+ defaultLocale: string;
13
+ };
14
+ typescript: {
15
+ transpileOnly: boolean;
16
+ ignoreDevErrors: boolean;
17
+ ignoreBuildErrors: boolean;
8
18
  };
9
19
  images: {
10
20
  domains: string[];
11
21
  formats: string[];
22
+ imageSizes: number[];
12
23
  };
13
24
  webpack: (defaultConfig: any) => any;
14
25
  };
@@ -50,13 +50,30 @@ 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
+ serverComponents: false,
57
+ },
58
+ i18n: {
59
+ locales: ["en"],
60
+ defaultLocale: "en",
61
+ },
62
+ typescript: {
63
+ transpileOnly: true,
64
+ ignoreDevErrors: true,
65
+ ignoreBuildErrors: true,
56
66
  },
57
67
  images: {
58
- domains: ['cdn.autoguru.com.au'],
59
- formats: ['image/webp'],
68
+ domains: [
69
+ 'cdn.autoguru.com.au',
70
+ 'cdn-dev.autoguru.com.au',
71
+ 'cdn-test.autoguru.com.au',
72
+ 'cdn-uat.autoguru.com.au',
73
+ 'cdn-preprod.autoguru.com.au',
74
+ ],
75
+ formats: ['image/avif', 'image/webp'],
76
+ imageSizes: [16, 32, 48, 64, 96, 128, 256, 384, 512],
60
77
  },
61
78
  webpack: (defaultConfig) => {
62
79
  defaultConfig.plugins.push(new webpack_1.DefinePlugin({
@@ -81,5 +98,5 @@ const createNextJSConfig = (buildEnv) => {
81
98
  };
82
99
  };
83
100
  exports.createNextJSConfig = createNextJSConfig;
84
- const createNextJSTranspiledConfig = () => withVanillaExtract(exports.withTM(exports.createNextJSConfig('uat')));
101
+ const createNextJSTranspiledConfig = () => withVanillaExtract(exports.withTM(exports.createNextJSConfig('prod')));
85
102
  exports.createNextJSTranspiledConfig = createNextJSTranspiledConfig;
@@ -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.4",
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