@form8ion/javascript 13.0.0-beta.2 → 13.0.0-beta.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/README.md CHANGED
@@ -103,6 +103,12 @@ const {
103
103
  scripts: {},
104
104
  eslint: {configs: [], ignore: {directories: []}},
105
105
  packageManager: 'npm'
106
+ },
107
+ enhancers: {
108
+ PluginName: {
109
+ test: () => true,
110
+ lift: () => ({})
111
+ }
106
112
  }
107
113
  });
108
114
  }
package/example.js CHANGED
@@ -71,6 +71,12 @@ const {
71
71
  scripts: {},
72
72
  eslint: {configs: [], ignore: {directories: []}},
73
73
  packageManager: 'npm'
74
+ },
75
+ enhancers: {
76
+ PluginName: {
77
+ test: () => true,
78
+ lift: () => ({})
79
+ }
74
80
  }
75
81
  });
76
82
  }
package/lib/index.js CHANGED
@@ -620,6 +620,7 @@ async function scaffoldPackageType ({
620
620
  documentation: scaffoldPackageDocumentation({packageName, visibility, scope, packageManager, provideExample}),
621
621
  nextSteps: [
622
622
  {summary: 'Add the appropriate `save` flag to the installation instructions in the README'},
623
+ {summary: 'Define supported node.js versions as `engines.node` in the `package.json` file'},
623
624
  {summary: 'Publish pre-release versions to npm until package is stable enough to publish v1.0.0'}
624
625
  ]
625
626
  },
@@ -718,7 +719,7 @@ async function scaffoldCliType ({
718
719
  devDependencies: ['rimraf'],
719
720
  vcsIgnore: {files: [], directories: [`/${defaultBuildDirectory}/`]},
720
721
  buildDirectory: defaultBuildDirectory,
721
- nextSteps: []
722
+ nextSteps: [{summary: 'Define supported node.js versions as `engines.node` in the `package.json` file'}]
722
723
  }
723
724
  ]);
724
725
  }
@@ -1156,7 +1157,7 @@ var packageManagers = /*#__PURE__*/Object.freeze({
1156
1157
  defineLockfilePath: determineLockfilePathFor
1157
1158
  });
1158
1159
 
1159
- async function lift ({projectRoot, vcs, results, pathWithinParent}) {
1160
+ async function lift ({projectRoot, vcs, results, pathWithinParent, enhancers = {}}) {
1160
1161
  cliMessages.info('Lifting JavaScript-specific details');
1161
1162
 
1162
1163
  const {
@@ -1174,17 +1175,18 @@ async function lift ({projectRoot, vcs, results, pathWithinParent}) {
1174
1175
 
1175
1176
  const enhancerResults = await core.applyEnhancers({
1176
1177
  results,
1177
- enhancers: [
1178
- huskyPlugin__namespace,
1178
+ enhancers: {
1179
+ ...enhancers,
1180
+ huskyPlugin: huskyPlugin__namespace,
1179
1181
  enginesEnhancer,
1180
1182
  coveragePlugin,
1181
- commitConventionPlugin__namespace,
1183
+ commitConventionPlugin: commitConventionPlugin__namespace,
1182
1184
  dialects,
1183
1185
  codeStylePlugin,
1184
1186
  npmConfigPlugin,
1185
1187
  projectTypes,
1186
1188
  packageManagers
1187
- ],
1189
+ },
1188
1190
  options: {packageManager, projectRoot, vcs, packageDetails: JSON.parse(packageContents)}
1189
1191
  });
1190
1192