@newskit-render/create-render-app 1.16.18 → 1.16.20-99c829b9f.0

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.
Files changed (56) hide show
  1. package/package.json +3 -3
  2. package/dist/add-infrastructure.d.ts +0 -6
  3. package/dist/add-infrastructure.js +0 -82
  4. package/dist/add-infrastructure.js.map +0 -1
  5. package/dist/copy-file-structure.d.ts +0 -2
  6. package/dist/copy-file-structure.js +0 -82
  7. package/dist/copy-file-structure.js.map +0 -1
  8. package/dist/create-app.d.ts +0 -2
  9. package/dist/create-app.js +0 -186
  10. package/dist/create-app.js.map +0 -1
  11. package/dist/helpers/clean-and-prepare.d.ts +0 -11
  12. package/dist/helpers/clean-and-prepare.js +0 -95
  13. package/dist/helpers/clean-and-prepare.js.map +0 -1
  14. package/dist/helpers/clear-npx-cache.d.ts +0 -2
  15. package/dist/helpers/clear-npx-cache.js +0 -70
  16. package/dist/helpers/clear-npx-cache.js.map +0 -1
  17. package/dist/helpers/consts.d.ts +0 -14
  18. package/dist/helpers/consts.js +0 -47
  19. package/dist/helpers/consts.js.map +0 -1
  20. package/dist/helpers/get-params.d.ts +0 -4
  21. package/dist/helpers/get-params.js +0 -33
  22. package/dist/helpers/get-params.js.map +0 -1
  23. package/dist/helpers/journey-questions.d.ts +0 -12
  24. package/dist/helpers/journey-questions.js +0 -83
  25. package/dist/helpers/journey-questions.js.map +0 -1
  26. package/dist/helpers/setupTests.d.ts +0 -0
  27. package/dist/helpers/setupTests.js +0 -13
  28. package/dist/helpers/setupTests.js.map +0 -1
  29. package/dist/helpers/types.d.ts +0 -71
  30. package/dist/helpers/types.js +0 -37
  31. package/dist/helpers/types.js.map +0 -1
  32. package/dist/helpers/utils.d.ts +0 -12
  33. package/dist/helpers/utils.js +0 -80
  34. package/dist/helpers/utils.js.map +0 -1
  35. package/dist/index.d.ts +0 -2
  36. package/dist/index.js +0 -9
  37. package/dist/index.js.map +0 -1
  38. package/dist/remove-code.d.ts +0 -5
  39. package/dist/remove-code.js +0 -111
  40. package/dist/remove-code.js.map +0 -1
  41. package/dist/tsconfig.build.tsbuildinfo +0 -1
  42. package/dist/write-app.d.ts +0 -9
  43. package/dist/write-app.js +0 -83
  44. package/dist/write-app.js.map +0 -1
  45. package/dist/write-circle-config.d.ts +0 -13
  46. package/dist/write-circle-config.js +0 -131
  47. package/dist/write-circle-config.js.map +0 -1
  48. package/dist/write-document.d.ts +0 -8
  49. package/dist/write-document.js +0 -118
  50. package/dist/write-document.js.map +0 -1
  51. package/dist/write-file.d.ts +0 -6
  52. package/dist/write-file.js +0 -68
  53. package/dist/write-file.js.map +0 -1
  54. package/dist/write-package-json.d.ts +0 -6
  55. package/dist/write-package-json.js +0 -91
  56. package/dist/write-package-json.js.map +0 -1
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.appModule = exports.multiTenancyModule = exports.coreApp = exports.multiTenancyApp = exports.constsCI = exports.coreDirSecondary = exports.coreDir = exports.ignoreFilesAndFolders = void 0;
7
- var path_1 = __importDefault(require("path"));
8
- var coreDir = path_1.default.join(__dirname, '..', '..', '..', 'core');
9
- exports.coreDir = coreDir;
10
- var coreDirSecondary = path_1.default.join(__dirname, '..', '..', '/node_modules', '@newskit-render', 'core');
11
- exports.coreDirSecondary = coreDirSecondary;
12
- var ignoreFilesAndFolders = function (isMultitenancy) {
13
- var fileNames = [
14
- '.next',
15
- 'build',
16
- 'helm',
17
- '.npmignore',
18
- 'coverage',
19
- 'node_modules',
20
- 'yarn.lock',
21
- 'package-lock.json',
22
- 'CHANGELOG.md',
23
- 'public/robots.txt',
24
- 'components/AccountDropdown',
25
- 'pages/api/account/get-session',
26
- ];
27
- if (!isMultitenancy) {
28
- fileNames.push('context/multi-tenancy', 'config/multiTenancy.ts');
29
- }
30
- return fileNames;
31
- };
32
- exports.ignoreFilesAndFolders = ignoreFilesAndFolders;
33
- var constsCI = {
34
- apiUrl: 'https://circleci.com/api/v2/context',
35
- ownerSlug: 'github/newscorp-ghfb',
36
- envs: ['DEV', 'STAGE', 'PROD'],
37
- };
38
- exports.constsCI = constsCI;
39
- var multiTenancyApp = "interface MyAppProps extends AppProps {\n tenant: Publisher\n}\n\nfunction MyApp({ Component, pageProps, tenant }: MyAppProps) {\nreturn (\n <MultiTenancyProvider tenant={tenant}>\n <AppContextProvider>\n <>\n <style jsx global>{`\n :root {\n --bitter: ${bitter.style.fontFamily};\n --poppins: ${poppins.style.fontFamily};\n --dm-sans: ${dmSans.style.fontFamily};\n }\n `}</style>\n <Head>\n <meta\n name=\"viewport\"\n content=\"initial-scale=1.0, width=device-width\"\n key=\"viewport\"\n />\n </Head>\n <AppContext.Consumer>\n {({ theme }) => (\n <ThemeProvider theme={theme}>\n <Global styles={GlobalStyling} />\n <PageContainer>\n <Component {...pageProps} />\n </PageContainer>\n </ThemeProvider>\n )}\n </AppContext.Consumer>\n </>\n </AppContextProvider>\n </MultiTenancyProvider>\n )\n}\n\nMyApp.getInitialProps = async ({ Component, ctx }: AppContextType) => {\n let pageProps = {}\n const tenant = getTenant(ctx.req?.headers?.host as string)\n if (Component.getInitialProps) {\n pageProps = await Component.getInitialProps(ctx)\n }\n return { pageProps, tenant }\n}";
40
- exports.multiTenancyApp = multiTenancyApp;
41
- var coreApp = "function MyApp({ Component, pageProps }: AppProps) {\n return (\n <>\n <style jsx global>{`\n :root {\n --bitter: ${bitter.style.fontFamily};\n --poppins: ${poppins.style.fontFamily};\n --dm-sans: ${dmSans.style.fontFamily};\n }\n `}</style>\n <Head>\n <meta\n key=\"viewport\"\n name=\"viewport\"\n content=\"width=device-width, initial-scale=1, maximum-scale=1\"\n />\n </Head>\n <ThemeProvider theme={Theme}>\n <Global styles={GlobalStyling} />\n <PageContainer>\n <Component {...pageProps} />\n </PageContainer>\n </ThemeProvider>\n </>\n )\n}";
42
- exports.coreApp = coreApp;
43
- var multiTenancyModule = "import { AppContext as AppContextType, AppProps } from 'next/app'\nimport MultiTenancyProvider from '../context/multi-tenancy'\nimport { AppContextProvider, AppContext } from '../context/app-context'\nimport { getTenant } from '../helpers/multiTenancy'\nimport { Publisher } from '@newskit-render/api'";
44
- exports.multiTenancyModule = multiTenancyModule;
45
- var appModule = function (theme) { return "import { AppProps } from 'next/app'\nimport {\n ".concat(theme, " as Theme,\n} from '@newskit-render/shared-components'"); };
46
- exports.appModule = appModule;
47
- //# sourceMappingURL=consts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/helpers/consts.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAuB;AAEvB,IAAM,OAAO,GAAW,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;AAiIpE,0BAAO;AA/HT,IAAM,gBAAgB,GAAW,cAAI,CAAC,IAAI,CACxC,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,eAAe,EACf,iBAAiB,EACjB,MAAM,CACP,CAAA;AAyHC,4CAAgB;AAvHX,IAAM,qBAAqB,GAAG,UACnC,cAAuB;IAEvB,IAAM,SAAS,GAAG;QAChB,OAAO;QACP,OAAO;QACP,MAAM;QACN,YAAY;QACZ,UAAU;QACV,cAAc;QACd,WAAW;QACX,mBAAmB;QACnB,cAAc;QACd,mBAAmB;QACnB,4BAA4B;QAC5B,+BAA+B;KAChC,CAAA;IACD,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,SAAS,CAAC,IAAI,CAAC,uBAAuB,EAAE,wBAAwB,CAAC,CAAA;IACnE,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA;AArBY,QAAA,qBAAqB,yBAqBjC;AAED,IAAM,QAAQ,GAAG;IACf,MAAM,EAAE,qCAAqC;IAC7C,SAAS,EAAE,sBAAsB;IACjC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;CAC/B,CAAA;AA6FC,4BAAQ;AA3FV,IAAM,eAAe,GAAG,g0CA8CtB,CAAA;AA8CA,0CAAe;AA5CjB,IAAM,OAAO,GAAG,2rBAyBd,CAAA;AAoBA,0BAAO;AAlBT,IAAM,kBAAkB,GAAG,+SAIqB,CAAA;AAe9C,gDAAkB;AAbpB,IAAM,SAAS,GAAG,UAChB,KAAgB,IACL,OAAA,2DAET,KAAK,2DACkC,EAH9B,CAG8B,CAAA;AASzC,8BAAS"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- import { Params, Journey } from './types';
3
- declare const getParams: (program: Command, journey: Journey) => Params;
4
- export default getParams;
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var utils_1 = require("./utils");
7
- var path_1 = __importDefault(require("path"));
8
- var types_1 = require("./types");
9
- var getParams = function (program, journey) { return ({
10
- projectName: (0, utils_1.getProjectName)(program.args[0]) || 'my-render-app',
11
- projectDir: path_1.default.join(process.cwd(), program.args[0]),
12
- packageManager: journey.pkgManager,
13
- packageInstaller: journey.pkgManager === 'npm'
14
- ? types_1.PackageInstallers.NPM
15
- : types_1.PackageInstallers.YARN,
16
- packageRunner: journey.pkgManager === 'npm' ? types_1.PackageRunners.NPM : types_1.PackageRunners.YARN,
17
- packageLockFile: journey.pkgManager === 'npm' ? types_1.PackageLockFiles.NPM : types_1.PackageLockFiles.YARN,
18
- isNpm: journey.pkgManager === 'npm',
19
- enableInfrastructure: journey.enableInfrastructure,
20
- configInfrastructureUri: path_1.default.join(process.cwd(), journey.configInfra || ''),
21
- circleToken: journey.circleToken || '',
22
- enableOptimizelyWeb: journey.optimizelyweb,
23
- enableSourcepoint: journey.sourcepoint,
24
- enableTealium: journey.tealium,
25
- enableAds: journey.ads,
26
- installDeps: program.install,
27
- force: program.force,
28
- theme: journey.theme,
29
- multiTenancy: journey.multiTenancy,
30
- prefix: journey.prefix,
31
- }); };
32
- exports.default = getParams;
33
- //# sourceMappingURL=get-params.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-params.js","sourceRoot":"","sources":["../../src/helpers/get-params.ts"],"names":[],"mappings":";;;;;AAAA,iCAAwC;AACxC,8CAAuB;AAEvB,iCAMgB;AAEhB,IAAM,SAAS,GAAG,UAAC,OAAgB,EAAE,OAAgB,IAAa,OAAA,CAAC;IACjE,WAAW,EAAE,IAAA,sBAAc,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,eAAe;IAC/D,UAAU,EAAE,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrD,cAAc,EAAE,OAAO,CAAC,UAAU;IAClC,gBAAgB,EACd,OAAO,CAAC,UAAU,KAAK,KAAK;QAC1B,CAAC,CAAC,yBAAiB,CAAC,GAAG;QACvB,CAAC,CAAC,yBAAiB,CAAC,IAAI;IAC5B,aAAa,EACX,OAAO,CAAC,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,sBAAc,CAAC,GAAG,CAAC,CAAC,CAAC,sBAAc,CAAC,IAAI;IACzE,eAAe,EACb,OAAO,CAAC,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,wBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,wBAAgB,CAAC,IAAI;IAC7E,KAAK,EAAE,OAAO,CAAC,UAAU,KAAK,KAAK;IACnC,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;IAClD,uBAAuB,EAAE,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC;IAC5E,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,EAAE;IACtC,mBAAmB,EAAE,OAAO,CAAC,aAAa;IAC1C,iBAAiB,EAAE,OAAO,CAAC,WAAW;IACtC,aAAa,EAAE,OAAO,CAAC,OAAO;IAC9B,SAAS,EAAE,OAAO,CAAC,GAAG;IACtB,WAAW,EAAE,OAAO,CAAC,OAAO;IAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;IACpB,KAAK,EAAE,OAAO,CAAC,KAAK;IACpB,YAAY,EAAE,OAAO,CAAC,YAAY;IAClC,MAAM,EAAE,OAAO,CAAC,MAAM;CACvB,CAAC,EAzBgE,CAyBhE,CAAA;AAEF,kBAAe,SAAS,CAAA"}
@@ -1,12 +0,0 @@
1
- import { Journey, JourneyChoices, JourneyType } from './types';
2
- declare const journeyQuestions: Array<{
3
- type: ((prev: boolean | number | string, values: Journey) => JourneyType | null) | JourneyType;
4
- name: string;
5
- message: string;
6
- active?: string | number;
7
- choices?: JourneyChoices[];
8
- inactive?: string | number;
9
- format?: (T: boolean) => string | number;
10
- initial?: boolean | number | string;
11
- }>;
12
- export default journeyQuestions;
@@ -1,83 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var types_1 = require("./types");
4
- var journeyQuestions = [
5
- {
6
- type: types_1.JourneyTypes.TOGGLE,
7
- name: 'pkgManager',
8
- message: 'Choose your package manager?',
9
- active: types_1.PackageManagers.NPM,
10
- inactive: types_1.PackageManagers.YARN,
11
- format: function (p) {
12
- return p ? types_1.PackageManagers.NPM : types_1.PackageManagers.YARN;
13
- },
14
- },
15
- {
16
- type: types_1.JourneyTypes.SELECT,
17
- name: 'theme',
18
- message: 'Choose your theme?',
19
- choices: [
20
- { title: 'NewsKit Light', value: types_1.ThemeNames.NEWSKITLIGHTTHEME },
21
- { title: 'NewsKit Dark', value: types_1.ThemeNames.NEWSKITDARKTHEME },
22
- ],
23
- },
24
- {
25
- type: types_1.JourneyTypes.CONFIRM,
26
- name: 'enableInfrastructure',
27
- message: 'Do you want to add Infrastructure and CI',
28
- initial: true,
29
- },
30
- {
31
- type: function (prev, values) {
32
- return values.enableInfrastructure ? types_1.JourneyTypes.TEXT : null;
33
- },
34
- name: 'configInfra',
35
- message: 'Please provide Infrastructure and CI config file path',
36
- initial: './config.json',
37
- },
38
- {
39
- type: function (prev, values) {
40
- return values.enableInfrastructure ? types_1.JourneyTypes.PASSWORD : null;
41
- },
42
- name: 'circleToken',
43
- message: 'Please provide CircleCI Token',
44
- },
45
- {
46
- type: types_1.JourneyTypes.CONFIRM,
47
- name: 'sourcepoint',
48
- message: 'Do you want to add SourcePoint integration?',
49
- initial: true,
50
- },
51
- {
52
- type: types_1.JourneyTypes.CONFIRM,
53
- name: 'optimizelyweb',
54
- message: 'Do you want to add OptimizelyWeb integration?',
55
- initial: true,
56
- },
57
- {
58
- type: types_1.JourneyTypes.CONFIRM,
59
- name: 'tealium',
60
- message: 'Do you want to add Tealium integration?',
61
- initial: true,
62
- },
63
- {
64
- type: types_1.JourneyTypes.CONFIRM,
65
- name: 'ads',
66
- message: 'Do you want to add Ads library integration?',
67
- initial: false,
68
- },
69
- {
70
- type: types_1.JourneyTypes.CONFIRM,
71
- name: 'multiTenancy',
72
- message: 'Do you want to add Multitenancy',
73
- initial: false,
74
- },
75
- {
76
- type: types_1.JourneyTypes.TEXT,
77
- name: 'prefix',
78
- message: 'Add a prefix used i.e NewsKit Render is NK:REN',
79
- initial: '',
80
- },
81
- ];
82
- exports.default = journeyQuestions;
83
- //# sourceMappingURL=journey-questions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"journey-questions.js","sourceRoot":"","sources":["../../src/helpers/journey-questions.ts"],"names":[],"mappings":";;AAAA,iCAOgB;AAEhB,IAAM,gBAAgB,GAWjB;IACH;QACE,IAAI,EAAE,oBAAY,CAAC,MAAM;QACzB,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,8BAA8B;QACvC,MAAM,EAAE,uBAAe,CAAC,GAAG;QAC3B,QAAQ,EAAE,uBAAe,CAAC,IAAI;QAC9B,MAAM,E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I,EAAE,oBAAY,CAAC,OAAO;QAC1B,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,yCAAyC;QAClD,OAAO,EAAE,IAAI;KACd;IACD;QACE,IAAI,EAAE,oBAAY,CAAC,OAAO;QAC1B,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,6CAA6C;QACtD,OAAO,EAAE,KAAK;KACf;IACD;QACE,IAAI,EAAE,oBAAY,CAAC,OAAO;QAC1B,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,iCAAiC;QAC1C,OAAO,EAAE,KAAK;KACf;IACD;QACE,IAAI,EAAE,oBAAY,CAAC,IAAI;QACvB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,gDAAgD;QACzD,OAAO,EAAE,EAAE;KACZ;CACF,CAAA;AAED,kBAAe,gBAAgB,CAAA"}
File without changes
@@ -1,13 +0,0 @@
1
- "use strict";
2
- jest.mock('./consts', function () {
3
- return {
4
- coreDir: 'core/path/to/core/directory',
5
- ignoreFilesAndFolders: function () { return ['']; },
6
- constsCI: {
7
- apiUrl: '',
8
- ownerSlug: '',
9
- envs: ['DEV', 'STAGE', 'PROD'],
10
- },
11
- };
12
- });
13
- //# sourceMappingURL=setupTests.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setupTests.js","sourceRoot":"","sources":["../../src/helpers/setupTests.ts"],"names":[],"mappings":";AAAA,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;IACpB,OAAO;QACL,OAAO,EAAE,6BAA6B;QACtC,qBAAqB,EAAE,cAAM,OAAA,CAAC,EAAE,CAAC,EAAJ,CAAI;QACjC,QAAQ,EAAE;YACR,MAAM,EAAE,EAAE;YACV,SAAS,EAAE,EAAE;YACb,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;SAC/B;KACF,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -1,71 +0,0 @@
1
- export declare enum PackageManagers {
2
- NPM = "npm",
3
- YARN = "yarn"
4
- }
5
- export declare enum PackageInstallers {
6
- NPM = "npm install",
7
- YARN = "yarn"
8
- }
9
- export declare enum PackageRunners {
10
- NPM = "npm run",
11
- YARN = "yarn"
12
- }
13
- export declare enum PackageLockFiles {
14
- NPM = "package-lock.json",
15
- YARN = "yarn.lock"
16
- }
17
- export declare enum JourneyTypes {
18
- TOGGLE = "toggle",
19
- CONFIRM = "confirm",
20
- TEXT = "text",
21
- SELECT = "select",
22
- PASSWORD = "password"
23
- }
24
- export declare enum ThemeNames {
25
- NEWSKITLIGHTTHEME = "sharedTheme",
26
- NEWSKITDARKTHEME = "sharedThemeDark"
27
- }
28
- export type PackageManager = PackageManagers.NPM | PackageManagers.YARN;
29
- export type PackageInstaller = PackageInstallers.NPM | PackageInstallers.YARN;
30
- export type PackageRunner = PackageRunners.NPM | PackageRunners.YARN;
31
- export type PackageLockFile = PackageLockFiles.NPM | PackageLockFiles.YARN;
32
- export type JourneyType = JourneyTypes.TOGGLE | JourneyTypes.CONFIRM | JourneyTypes.TEXT | JourneyTypes.SELECT | JourneyTypes.PASSWORD;
33
- export type ThemeName = ThemeNames.NEWSKITLIGHTTHEME | ThemeNames.NEWSKITDARKTHEME;
34
- export type JourneyChoices = {
35
- title: string;
36
- value: string;
37
- };
38
- export type Params = {
39
- projectName: string;
40
- projectDir: string;
41
- packageManager: PackageManager;
42
- packageInstaller: PackageInstaller;
43
- packageRunner: PackageRunner;
44
- packageLockFile: PackageLockFile;
45
- isNpm: boolean;
46
- enableInfrastructure: boolean;
47
- configInfrastructureUri: string;
48
- circleToken: string;
49
- enableOptimizelyWeb: boolean;
50
- enableSourcepoint: boolean;
51
- enableTealium: boolean;
52
- enableAds: boolean;
53
- installDeps: boolean;
54
- force: boolean;
55
- prefix: string;
56
- theme: ThemeName;
57
- multiTenancy: boolean;
58
- };
59
- export type Journey = {
60
- pkgManager: PackageManager;
61
- enableInfrastructure: boolean;
62
- configInfra: string;
63
- circleToken: string;
64
- sourcepoint: boolean;
65
- optimizelyweb: boolean;
66
- tealium: boolean;
67
- ads: boolean;
68
- prefix: string;
69
- theme: ThemeName;
70
- multiTenancy: boolean;
71
- };
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThemeNames = exports.JourneyTypes = exports.PackageLockFiles = exports.PackageRunners = exports.PackageInstallers = exports.PackageManagers = void 0;
4
- var PackageManagers;
5
- (function (PackageManagers) {
6
- PackageManagers["NPM"] = "npm";
7
- PackageManagers["YARN"] = "yarn";
8
- })(PackageManagers || (exports.PackageManagers = PackageManagers = {}));
9
- var PackageInstallers;
10
- (function (PackageInstallers) {
11
- PackageInstallers["NPM"] = "npm install";
12
- PackageInstallers["YARN"] = "yarn";
13
- })(PackageInstallers || (exports.PackageInstallers = PackageInstallers = {}));
14
- var PackageRunners;
15
- (function (PackageRunners) {
16
- PackageRunners["NPM"] = "npm run";
17
- PackageRunners["YARN"] = "yarn";
18
- })(PackageRunners || (exports.PackageRunners = PackageRunners = {}));
19
- var PackageLockFiles;
20
- (function (PackageLockFiles) {
21
- PackageLockFiles["NPM"] = "package-lock.json";
22
- PackageLockFiles["YARN"] = "yarn.lock";
23
- })(PackageLockFiles || (exports.PackageLockFiles = PackageLockFiles = {}));
24
- var JourneyTypes;
25
- (function (JourneyTypes) {
26
- JourneyTypes["TOGGLE"] = "toggle";
27
- JourneyTypes["CONFIRM"] = "confirm";
28
- JourneyTypes["TEXT"] = "text";
29
- JourneyTypes["SELECT"] = "select";
30
- JourneyTypes["PASSWORD"] = "password";
31
- })(JourneyTypes || (exports.JourneyTypes = JourneyTypes = {}));
32
- var ThemeNames;
33
- (function (ThemeNames) {
34
- ThemeNames["NEWSKITLIGHTTHEME"] = "sharedTheme";
35
- ThemeNames["NEWSKITDARKTHEME"] = "sharedThemeDark";
36
- })(ThemeNames || (exports.ThemeNames = ThemeNames = {}));
37
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/helpers/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,kCAAa,CAAA;AACf,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,6CAAyB,CAAA;IACzB,sCAAkB,CAAA;AACpB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+CAAiC,CAAA;IACjC,kDAAoC,CAAA;AACtC,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB"}
@@ -1,12 +0,0 @@
1
- export declare const copyFilter: (src: string, dest: string, isMultitenancy: boolean) => boolean;
2
- export declare const getProjectName: (src: string) => string;
3
- export declare const fetchCI: ({ method, token, url, body, }: {
4
- method?: string;
5
- token: string;
6
- url: string;
7
- body: {
8
- [key: string]: unknown;
9
- };
10
- }) => Promise<{
11
- [key: string]: unknown;
12
- }>;
@@ -1,80 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.fetchCI = exports.getProjectName = exports.copyFilter = void 0;
43
- var cross_fetch_1 = __importDefault(require("cross-fetch"));
44
- var consts_1 = require("./consts");
45
- var copyFilter = function (src, dest, isMultitenancy) {
46
- if (src === consts_1.coreDir || src === dest) {
47
- return true;
48
- }
49
- var fileName = src.replace(consts_1.coreDir, '').replace(/^\//, '');
50
- if (fileName.match(/__snapshots__/)) {
51
- return false;
52
- }
53
- return !((0, consts_1.ignoreFilesAndFolders)(isMultitenancy).indexOf(fileName) > -1);
54
- };
55
- exports.copyFilter = copyFilter;
56
- var getProjectName = function (src) {
57
- return src.split('/').pop();
58
- };
59
- exports.getProjectName = getProjectName;
60
- var fetchCI = function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
61
- var response;
62
- var _c = _b.method, method = _c === void 0 ? 'POST' : _c, token = _b.token, url = _b.url, body = _b.body;
63
- return __generator(this, function (_d) {
64
- switch (_d.label) {
65
- case 0: return [4 /*yield*/, (0, cross_fetch_1.default)(url, {
66
- method: method,
67
- headers: {
68
- 'Content-Type': 'application/json',
69
- 'Circle-Token': token,
70
- },
71
- body: JSON.stringify(body),
72
- })];
73
- case 1:
74
- response = _d.sent();
75
- return [2 /*return*/, response.json()];
76
- }
77
- });
78
- }); };
79
- exports.fetchCI = fetchCI;
80
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/helpers/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAA+B;AAC/B,mCAAyD;AAElD,IAAM,UAAU,GAAG,UACxB,GAAW,EACX,IAAY,EACZ,cAAuB;IAEvB,IAAI,GAAG,KAAK,gBAAO,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QACpC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,IAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,gBAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;IAC5D,IAAI,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC;QACpC,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,CAAC,CAAC,IAAA,8BAAqB,EAAC,cAAc,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;AACxE,CAAC,CAAA;AAdY,QAAA,UAAU,cActB;AAEM,IAAM,cAAc,GAAG,UAAC,GAAW;IACxC,OAAA,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAY;AAA9B,CAA8B,CAAA;AADnB,QAAA,cAAc,kBACK;AAEzB,IAAM,OAAO,GAAG,iEAAO,EAU7B;;QATC,cAAe,EAAf,MAAM,mBAAG,MAAM,KAAA,EACf,KAAK,WAAA,EACL,GAAG,SAAA,EACH,IAAI,UAAA;;;oBAOa,qBAAM,IAAA,qBAAK,EAAC,GAAG,EAAE;oBAChC,MAAM,QAAA;oBACN,OAAO,EAAE;wBACP,cAAc,EAAE,kBAAkB;wBAClC,cAAc,EAAE,KAAK;qBACtB;oBACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;iBAC3B,CAAC,EAAA;;gBAPI,QAAQ,GAAG,SAOf;gBAEF,sBAAO,QAAQ,CAAC,IAAI,EAAE,EAAA;;;KACvB,CAAA;AArBY,QAAA,OAAO,WAqBnB"}
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
package/dist/index.js DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var create_app_1 = __importDefault(require("./create-app"));
8
- (0, create_app_1.default)();
9
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AACA,4DAAwC;AAExC,IAAA,oBAAa,GAAE,CAAA"}
@@ -1,5 +0,0 @@
1
- declare const removeCode: ({ projectDir, enableOptimizelyWeb, }: {
2
- projectDir: string;
3
- enableOptimizelyWeb: boolean;
4
- }) => Promise<void>;
5
- export default removeCode;
@@ -1,111 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- var path_1 = __importDefault(require("path"));
43
- var fs_extra_1 = __importDefault(require("fs-extra"));
44
- var error = console.error;
45
- var getFilePaths = function (dir) {
46
- var resultArray = [];
47
- var list = fs_extra_1.default.readdirSync(dir);
48
- list.forEach(function (file) {
49
- var subfile = "".concat(dir, "/").concat(file);
50
- var stat = fs_extra_1.default.statSync(subfile);
51
- if (stat && stat.isDirectory()) {
52
- resultArray = resultArray.concat(getFilePaths(subfile));
53
- }
54
- else {
55
- resultArray.push("".concat(dir, "/").concat(file));
56
- }
57
- });
58
- return resultArray;
59
- };
60
- var removeCode = function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
61
- var pagesFiles, testFiles, allPageFiles;
62
- var projectDir = _b.projectDir, enableOptimizelyWeb = _b.enableOptimizelyWeb;
63
- return __generator(this, function (_c) {
64
- try {
65
- pagesFiles = getFilePaths(path_1.default.join(projectDir, 'pages'))
66
- .filter(function (filePath) { return filePath.match(/.tsx/); })
67
- .filter(function (filePath) { return !filePath.includes('/api/'); });
68
- testFiles = getFilePaths(path_1.default.join(projectDir, '__tests__/pages'))
69
- .filter(function (filePath) { return filePath.match(/.tsx/); })
70
- .filter(function (filePath) { return !filePath.includes('/__snapshots__/'); });
71
- allPageFiles = pagesFiles.concat(testFiles);
72
- allPageFiles.forEach(function (filePath) { return __awaiter(void 0, void 0, void 0, function () {
73
- var data, document;
74
- return __generator(this, function (_a) {
75
- switch (_a.label) {
76
- case 0:
77
- data = fs_extra_1.default.readFileSync(filePath, 'utf8');
78
- document = data;
79
- if (!enableOptimizelyWeb) {
80
- // removes line with comment at end or wrapped in comment
81
- document = document
82
- .replace(/^(.*?) \/\* cra-effected \*\/,?/gm, '')
83
- .replace(/\/\* start cra-effected([\s\S]*?)\/\* end cra-effected \*\//gm, '');
84
- }
85
- else {
86
- // removes comment only
87
- document = document
88
- .replace(/\/\* cra-effected \*\/,?/g, '')
89
- .replace(/\/\* start cra-effected \*\//g, '')
90
- .replace(/\/\* end cra-effected \*\//g, '');
91
- }
92
- // always removes line with comment at end or wrapped in comment
93
- document = document
94
- .replace(/^(.*?) \/\* cra-disabled \*\/,?/gm, '')
95
- .replace(/\/\* start cra-disabled([\s\S]*?)\/\* end cra-disabled \*\//gm, '');
96
- return [4 /*yield*/, fs_extra_1.default.writeFile(filePath, document, 'utf8')];
97
- case 1:
98
- _a.sent();
99
- return [2 /*return*/];
100
- }
101
- });
102
- }); });
103
- }
104
- catch (err) {
105
- error(err, enableOptimizelyWeb);
106
- }
107
- return [2 /*return*/];
108
- });
109
- }); };
110
- exports.default = removeCode;
111
- //# sourceMappingURL=remove-code.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-code.js","sourceRoot":"","sources":["../src/remove-code.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAuB;AACvB,sDAAyB;AAEjB,IAAA,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/create-app.ts","../src/index.ts","../src/remove-code.ts","../src/write-app.ts","../src/write-circle-config.ts","../src/write-document.ts","../src/write-file.ts","../src/write-package-json.ts","../src/helpers/clean-and-prepare.ts","../src/helpers/clear-npx-cache.ts","../src/helpers/consts.ts","../src/helpers/get-params.ts","../src/helpers/journey-questions.ts","../src/helpers/setupTests.ts","../src/helpers/types.ts","../src/helpers/utils.ts"],"version":"5.6.3"}
@@ -1,9 +0,0 @@
1
- import { ThemeName } from './helpers/types';
2
- export declare const getModule: (multiTenancy: boolean, theme: ThemeName) => string;
3
- export declare const getApp: (multiTenancy: boolean) => string;
4
- declare const writeApp: ({ projectDir, theme, multiTenancy, }: {
5
- projectDir: string;
6
- theme: ThemeName;
7
- multiTenancy: boolean;
8
- }) => Promise<void>;
9
- export default writeApp;