@hubspot/local-dev-lib 0.0.4 → 0.0.5

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/lang/en.lyaml ADDED
@@ -0,0 +1,109 @@
1
+ en:
2
+ debug:
3
+ archive:
4
+ extractZip:
5
+ init: "Extracting project source..."
6
+ success: "Completed project source extraction."
7
+ copySourceToDest:
8
+ init: "Copying project source..."
9
+ sourceEmpty: "Project source is empty"
10
+ success: "Completed copying project source."
11
+ error: An error occured copying project source to {{ dest }}.
12
+ cleanupTempDir:
13
+ error: "Failed to clean up temp dir: {{ tmpDir }}"
14
+ github:
15
+ fetchJsonFromRepository: "Fetching {{ uri }}..."
16
+ downloadGithubRepoZip:
17
+ fetching: "Fetching {{ releaseType }} with name {{ repoName }}..."
18
+ fetchingName: "Fetching {{ name }}..."
19
+ completed: "Completed project fetch."
20
+ cloneGithubRepo:
21
+ success: "Your new {{ type }} has been created in {{ dest }}"
22
+ downloadGithubRepoContents:
23
+ downloading: "Downloading content piece: {{ contentPiecePath }} from {{ downloadUrl }} to {{ downloadPath }}"
24
+ modules:
25
+ createModule:
26
+ creatingModule: "Creating module at {{ path }}"
27
+ creatingPath: "Creating {{ path }}"
28
+ config:
29
+ cliConfiguration:
30
+ load:
31
+ configFromEnv: "Loaded config from environment variables for {{ accountId }}"
32
+ configFromFile: "Loaded config from configuration file."
33
+ empty: "The config file was empty. Initializing an empty config."
34
+ validate:
35
+ noConfig: "Valiation failed: No config was found."
36
+ noConfigAccounts: "Valiation failed: config.accounts[] is not defined."
37
+ emptyAccountConfig: "Valiation failed: config.accounts[] has an empty entry."
38
+ noAccountId: "Valiation failed: config.accounts[] has an entry missing accountId."
39
+ duplicateAccountIds: "Valiation failed: config.accounts[] has multiple entries with {{ accountId }}."
40
+ duplicateAccountNames: "Valiation failed: config.accounts[] has multiple entries with {{ accountName }}."
41
+ nameContainsSpaces: "Valiation failed: config.name {{ accountName }} cannot contain spaces."
42
+ updateAccount:
43
+ noConfigToUpdate: "No config to update."
44
+ updating: "Updating account config for {{ accountId }}"
45
+ addingConfigEntry: "Adding account config entry for {{ accountId }}"
46
+ removeAccountFromConfig: "Deleting config for {{ accountId }}"
47
+ configFile:
48
+ errorReading: "Config file could not be read: {{ configPath }}"
49
+ writeSuccess: "Successfully wrote updated config data to {{ configPath }}"
50
+ errorLoading: "A configuration file could not be found at {{ configPath }}."
51
+ configUtils:
52
+ unknownType: "Unknown auth type {{ type }}"
53
+ environment:
54
+ loadConfig:
55
+ missingAccountId: "Unable to load config from environment variables: Missing accountId"
56
+ missingEnv: "Unable to load config from environment variables: Missing env"
57
+ unknownAuthType: "Unable to load config from environment variables: Unknown auth type"
58
+ utils:
59
+ handleFieldsJs:
60
+ convertFieldsJs:
61
+ creating: "Creating child process with pid {{ pid }}"
62
+ terminating: "Child process with pid {{ pid }} has been terminated"
63
+ errors:
64
+ archive:
65
+ extractZip:
66
+ write: "An error occured writing temp project source."
67
+ extract: "An error occured extracting project source."
68
+ errorTypes:
69
+ fileSystem:
70
+ readAction: "reading from"
71
+ writeAction: "writing to"
72
+ otherAction: "accessing"
73
+ unknownFilepath: "a file or folder"
74
+ baseMessage: "An error occurred while {{ fileAction }} {{ filepath }}."
75
+ systemErrorMessage: "This is the result of a system error: {{ errorMessage }}"
76
+ cmsFields:
77
+ syntax: 'There was an error converting JS file "{{ path }}"'
78
+ notFunction: 'There was an error loading JS file "{{ path }}". Expected type "Function" but received type "{{ returned }}". Make sure that your default export is a function.'
79
+ notReturnArray: 'There was an error loading JS file "{{ path }}". Expected type "Array" but received type "{{ returned }}" . Make sure that your function returns an array'
80
+ invalidPath: 'The path "{{ path }}" is not a path to a file or folder'
81
+ generic: "A {{ name }} has occurred"
82
+ github:
83
+ downloadGithubRepoContents: "Failed to fetch contents: {{ errorMessage }}"
84
+ fetchJsonFromRepository: "An error occured fetching JSON file."
85
+ fetchReleaseData: "Failed fetching release data for {{ tag }} project."
86
+ downloadGithubRepoZip: "An error occured fetching the project source."
87
+ modules:
88
+ throwInvalidPathInput: "Expected PathInput"
89
+ writeModuleMeta: "The {{ path }} path already exists"
90
+ utils:
91
+ git:
92
+ configIgnore: "Unable to determine if config file is properly ignored by git."
93
+ handleFieldsJs:
94
+ convertFieldsJs: "There was an error converting '{{ filePath }}'"
95
+ saveOutput: "There was an error saving the json output of {{ path }}"
96
+ createTmpDirSync: "An error occured writing temporary project source."
97
+ cleanupTmpDirSync: "There was an error deleting the temporary project source"
98
+ config:
99
+ cliConfiguration:
100
+ noConfigLoaded: "No Config loaded."
101
+ updateAccount: "An accountId is required to update the config"
102
+ updateDefaultAccount: "A 'defaultAccount' with value of number or string is required to update the config."
103
+ renameAccount: "Cannot find account with identifier {{ currentName }}"
104
+ removeAccountFromConfig: "Unable to find account for {{ nameOrId }}."
105
+ updateDefaultMode: "The mode {{ defaultMode }} is invalid. Valid values are {{ validModes }}."
106
+ updateHttpTimeout: The value {{ timeout }} is invalid. The value must be a number greater than {{ minTimeout }}.
107
+ updateAllowUsageTracking: Unable to update allowUsageTracking. The value {{ isEnabled }} is invalid. The value must be a boolean.
108
+ configFile:
109
+ parsing: "Config file could not be parsed"
@@ -0,0 +1,109 @@
1
+ en:
2
+ debug:
3
+ archive:
4
+ extractZip:
5
+ init: "Extracting project source..."
6
+ success: "Completed project source extraction."
7
+ copySourceToDest:
8
+ init: "Copying project source..."
9
+ sourceEmpty: "Project source is empty"
10
+ success: "Completed copying project source."
11
+ error: An error occured copying project source to {{ dest }}.
12
+ cleanupTempDir:
13
+ error: "Failed to clean up temp dir: {{ tmpDir }}"
14
+ github:
15
+ fetchJsonFromRepository: "Fetching {{ uri }}..."
16
+ downloadGithubRepoZip:
17
+ fetching: "Fetching {{ releaseType }} with name {{ repoName }}..."
18
+ fetchingName: "Fetching {{ name }}..."
19
+ completed: "Completed project fetch."
20
+ cloneGithubRepo:
21
+ success: "Your new {{ type }} has been created in {{ dest }}"
22
+ downloadGithubRepoContents:
23
+ downloading: "Downloading content piece: {{ contentPiecePath }} from {{ downloadUrl }} to {{ downloadPath }}"
24
+ modules:
25
+ createModule:
26
+ creatingModule: "Creating module at {{ path }}"
27
+ creatingPath: "Creating {{ path }}"
28
+ config:
29
+ cliConfiguration:
30
+ load:
31
+ configFromEnv: "Loaded config from environment variables for {{ accountId }}"
32
+ configFromFile: "Loaded config from configuration file."
33
+ empty: "The config file was empty. Initializing an empty config."
34
+ validate:
35
+ noConfig: "Valiation failed: No config was found."
36
+ noConfigAccounts: "Valiation failed: config.accounts[] is not defined."
37
+ emptyAccountConfig: "Valiation failed: config.accounts[] has an empty entry."
38
+ noAccountId: "Valiation failed: config.accounts[] has an entry missing accountId."
39
+ duplicateAccountIds: "Valiation failed: config.accounts[] has multiple entries with {{ accountId }}."
40
+ duplicateAccountNames: "Valiation failed: config.accounts[] has multiple entries with {{ accountName }}."
41
+ nameContainsSpaces: "Valiation failed: config.name {{ accountName }} cannot contain spaces."
42
+ updateAccount:
43
+ noConfigToUpdate: "No config to update."
44
+ updating: "Updating account config for {{ accountId }}"
45
+ addingConfigEntry: "Adding account config entry for {{ accountId }}"
46
+ removeAccountFromConfig: "Deleting config for {{ accountId }}"
47
+ configFile:
48
+ errorReading: "Config file could not be read: {{ configPath }}"
49
+ writeSuccess: "Successfully wrote updated config data to {{ configPath }}"
50
+ errorLoading: "A configuration file could not be found at {{ configPath }}."
51
+ configUtils:
52
+ unknownType: "Unknown auth type {{ type }}"
53
+ environment:
54
+ loadConfig:
55
+ missingAccountId: "Unable to load config from environment variables: Missing accountId"
56
+ missingEnv: "Unable to load config from environment variables: Missing env"
57
+ unknownAuthType: "Unable to load config from environment variables: Unknown auth type"
58
+ utils:
59
+ handleFieldsJs:
60
+ convertFieldsJs:
61
+ creating: "Creating child process with pid {{ pid }}"
62
+ terminating: "Child process with pid {{ pid }} has been terminated"
63
+ errors:
64
+ archive:
65
+ extractZip:
66
+ write: "An error occured writing temp project source."
67
+ extract: "An error occured extracting project source."
68
+ errorTypes:
69
+ fileSystem:
70
+ readAction: "reading from"
71
+ writeAction: "writing to"
72
+ otherAction: "accessing"
73
+ unknownFilepath: "a file or folder"
74
+ baseMessage: "An error occurred while {{ fileAction }} {{ filepath }}."
75
+ systemErrorMessage: "This is the result of a system error: {{ errorMessage }}"
76
+ cmsFields:
77
+ syntax: 'There was an error converting JS file "{{ path }}"'
78
+ notFunction: 'There was an error loading JS file "{{ path }}". Expected type "Function" but received type "{{ returned }}". Make sure that your default export is a function.'
79
+ notReturnArray: 'There was an error loading JS file "{{ path }}". Expected type "Array" but received type "{{ returned }}" . Make sure that your function returns an array'
80
+ invalidPath: 'The path "{{ path }}" is not a path to a file or folder'
81
+ generic: "A {{ name }} has occurred"
82
+ github:
83
+ downloadGithubRepoContents: "Failed to fetch contents: {{ errorMessage }}"
84
+ fetchJsonFromRepository: "An error occured fetching JSON file."
85
+ fetchReleaseData: "Failed fetching release data for {{ tag }} project."
86
+ downloadGithubRepoZip: "An error occured fetching the project source."
87
+ modules:
88
+ throwInvalidPathInput: "Expected PathInput"
89
+ writeModuleMeta: "The {{ path }} path already exists"
90
+ utils:
91
+ git:
92
+ configIgnore: "Unable to determine if config file is properly ignored by git."
93
+ handleFieldsJs:
94
+ convertFieldsJs: "There was an error converting '{{ filePath }}'"
95
+ saveOutput: "There was an error saving the json output of {{ path }}"
96
+ createTmpDirSync: "An error occured writing temporary project source."
97
+ cleanupTmpDirSync: "There was an error deleting the temporary project source"
98
+ config:
99
+ cliConfiguration:
100
+ noConfigLoaded: "No Config loaded."
101
+ updateAccount: "An accountId is required to update the config"
102
+ updateDefaultAccount: "A 'defaultAccount' with value of number or string is required to update the config."
103
+ renameAccount: "Cannot find account with identifier {{ currentName }}"
104
+ removeAccountFromConfig: "Unable to find account for {{ nameOrId }}."
105
+ updateDefaultMode: "The mode {{ defaultMode }} is invalid. Valid values are {{ validModes }}."
106
+ updateHttpTimeout: The value {{ timeout }} is invalid. The value must be a number greater than {{ minTimeout }}.
107
+ updateAllowUsageTracking: Unable to update allowUsageTracking. The value {{ isEnabled }} is invalid. The value must be a boolean.
108
+ configFile:
109
+ parsing: "Config file could not be parsed"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/local-dev-lib",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -12,8 +12,9 @@
12
12
  "access": "public"
13
13
  },
14
14
  "scripts": {
15
- "build": "tsc --rootDir . --outdir dist",
15
+ "build": "tsc --rootDir . --outdir dist && yarn copy-files",
16
16
  "check-main": "branch=$(git rev-parse --abbrev-ref HEAD) && [ $branch = main ] || (echo 'Error: New release can only be published on main branch' && exit 1)",
17
+ "copy-files": "cp -r lang dist/lang",
17
18
  "lint": "eslint --max-warnings=0 . && prettier --check ./**/*.ts",
18
19
  "local-dev": "yarn build && cd dist && yarn link && cd .. && tsc --watch --rootDir . --outdir dist",
19
20
  "_postinstall": "husky install",