@form8ion/javascript 8.0.1 → 8.0.2
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 +1 -1
- package/example.js +1 -1
- package/lib/index.js +20 -28
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +20 -28
- package/lib/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
package/example.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -320,7 +320,6 @@ function predicate ({projectRoot}) {
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
async function scaffoldTypescript ({config, projectType, projectRoot, testFilenamePattern}) {
|
|
323
|
-
const eslintConfigs = ['typescript'];
|
|
324
323
|
const shareableTsConfigPackage = `${config.scope}/tsconfig`;
|
|
325
324
|
|
|
326
325
|
await core.writeConfigFile({
|
|
@@ -343,8 +342,7 @@ async function scaffoldTypescript ({config, projectType, projectRoot, testFilena
|
|
|
343
342
|
});
|
|
344
343
|
|
|
345
344
|
return {
|
|
346
|
-
eslint: {configs:
|
|
347
|
-
eslintConfigs,
|
|
345
|
+
eslint: {configs: ['typescript']},
|
|
348
346
|
devDependencies: ['typescript', shareableTsConfigPackage],
|
|
349
347
|
vcsIgnore: {files: ['tsconfig.tsbuildinfo']}
|
|
350
348
|
};
|
|
@@ -1161,7 +1159,6 @@ async function scaffoldPackageType ({
|
|
|
1161
1159
|
return deepmerge__default["default"].all([
|
|
1162
1160
|
{
|
|
1163
1161
|
documentation: scaffoldPackageDocumentation({packageName, visibility, scope, packageManager}),
|
|
1164
|
-
eslintConfigs: [],
|
|
1165
1162
|
nextSteps: [
|
|
1166
1163
|
{summary: 'Add the appropriate `save` flag to the installation instructions in the README'},
|
|
1167
1164
|
{summary: 'Publish pre-release versions to npm until package is stable enough to publish v1.0.0'}
|
|
@@ -1192,7 +1189,6 @@ async function scaffoldApplicationType ({projectRoot}) {
|
|
|
1192
1189
|
devDependencies: ['rimraf'],
|
|
1193
1190
|
vcsIgnore: {files: ['.env'], directories: [`/${buildDirectory}/`]},
|
|
1194
1191
|
buildDirectory,
|
|
1195
|
-
eslintConfigs: [],
|
|
1196
1192
|
nextSteps: []
|
|
1197
1193
|
};
|
|
1198
1194
|
}
|
|
@@ -1203,7 +1199,6 @@ async function scaffoldMonorepoType ({projectRoot}) {
|
|
|
1203
1199
|
await javascriptCore.mergeIntoExistingPackageJson({projectRoot, config: {private: true}});
|
|
1204
1200
|
|
|
1205
1201
|
return {
|
|
1206
|
-
eslintConfigs: [],
|
|
1207
1202
|
nextSteps: [{
|
|
1208
1203
|
summary: 'Add packages to your new monorepo',
|
|
1209
1204
|
description: 'Leverage [@form8ion/add-package-to-monorepo](https://npm.im/@form8ion/add-package-to-monorepo)'
|
|
@@ -1244,7 +1239,6 @@ async function scaffoldCliType ({packageName, visibility, projectRoot, dialect,
|
|
|
1244
1239
|
vcsIgnore: {files: [], directories: [`/${defaultBuildDirectory}/`]},
|
|
1245
1240
|
buildDirectory: defaultBuildDirectory,
|
|
1246
1241
|
badges: defineBadges(packageName, visibility),
|
|
1247
|
-
eslintConfigs: [],
|
|
1248
1242
|
nextSteps: []
|
|
1249
1243
|
}
|
|
1250
1244
|
);
|
|
@@ -1286,9 +1280,7 @@ async function scaffoldProjectType ({
|
|
|
1286
1280
|
case javascriptCore.projectTypes.MONOREPO:
|
|
1287
1281
|
return scaffoldMonorepoType({projectRoot});
|
|
1288
1282
|
case 'Other':
|
|
1289
|
-
return {
|
|
1290
|
-
eslintConfigs: []
|
|
1291
|
-
};
|
|
1283
|
+
return {};
|
|
1292
1284
|
default:
|
|
1293
1285
|
throw new Error(`The project-type of ${projectType} is invalid`);
|
|
1294
1286
|
}
|
|
@@ -1529,7 +1521,7 @@ async function scaffolder (options) {
|
|
|
1529
1521
|
decisions,
|
|
1530
1522
|
pathWithinParent
|
|
1531
1523
|
});
|
|
1532
|
-
const [nodeVersion, npmResults, dialectResults, codeStyleResults
|
|
1524
|
+
const [nodeVersion, npmResults, dialectResults, codeStyleResults] = await Promise.all([
|
|
1533
1525
|
scaffoldNodeVersion({projectRoot, nodeVersionCategory}),
|
|
1534
1526
|
scaffoldNpmConfig({projectType, projectRoot, registries}),
|
|
1535
1527
|
scaffoldDialect({
|
|
@@ -1539,24 +1531,24 @@ async function scaffolder (options) {
|
|
|
1539
1531
|
projectType,
|
|
1540
1532
|
testFilenamePattern: verificationResults.testFilenamePattern
|
|
1541
1533
|
}),
|
|
1542
|
-
scaffoldCodeStyle({projectRoot, projectType, dialect, configs, vcs, configureLinting})
|
|
1543
|
-
scaffoldProjectTypePlugin({
|
|
1544
|
-
projectRoot,
|
|
1545
|
-
projectType,
|
|
1546
|
-
projectName,
|
|
1547
|
-
packageName,
|
|
1548
|
-
packageManager,
|
|
1549
|
-
scope,
|
|
1550
|
-
dialect,
|
|
1551
|
-
tests,
|
|
1552
|
-
decisions,
|
|
1553
|
-
plugins: {
|
|
1554
|
-
[javascriptCore.projectTypes.PACKAGE]: packageTypes,
|
|
1555
|
-
[javascriptCore.projectTypes.APPLICATION]: applicationTypes,
|
|
1556
|
-
[javascriptCore.projectTypes.MONOREPO]: monorepoTypes
|
|
1557
|
-
}
|
|
1558
|
-
})
|
|
1534
|
+
scaffoldCodeStyle({projectRoot, projectType, dialect, configs, vcs, configureLinting})
|
|
1559
1535
|
]);
|
|
1536
|
+
const projectTypePluginResults = await scaffoldProjectTypePlugin({
|
|
1537
|
+
projectRoot,
|
|
1538
|
+
projectType,
|
|
1539
|
+
projectName,
|
|
1540
|
+
packageName,
|
|
1541
|
+
packageManager,
|
|
1542
|
+
scope,
|
|
1543
|
+
dialect,
|
|
1544
|
+
tests,
|
|
1545
|
+
decisions,
|
|
1546
|
+
plugins: {
|
|
1547
|
+
[javascriptCore.projectTypes.PACKAGE]: packageTypes,
|
|
1548
|
+
[javascriptCore.projectTypes.APPLICATION]: applicationTypes,
|
|
1549
|
+
[javascriptCore.projectTypes.MONOREPO]: monorepoTypes
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1560
1552
|
const mergedContributions = deepmerge__default["default"].all([
|
|
1561
1553
|
...(await Promise.all([
|
|
1562
1554
|
javascriptCore.scaffoldChoice(
|