@nstudio/xplat-utils
Advanced tools
Comparing version 13.0.1 to 13.4.0
{ | ||
"name": "@nstudio/xplat-utils", | ||
"version": "13.0.1", | ||
"version": "13.4.0", | ||
"description": "Utilities for xplat tooling.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://nstudio.io/xplat", |
@@ -31,5 +31,5 @@ <h1 align="center">Cross-platform (xplat) tools for Nx workspaces</h1> | ||
> provide a name | ||
> What to create in the new workspace | ||
> choose `empty` | ||
> choose `apps` | ||
@@ -36,0 +36,0 @@ ``` |
@@ -26,1 +26,2 @@ import type { FrameworkTypes, PlatformNxExtraTypes, PlatformTypes, PlatformWithNxTypes } from './types'; | ||
export declare function parseProjectNameFromPath(input: string): string; | ||
export declare function toFileName(s: string): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseProjectNameFromPath = exports.sanitizeCommaDelimitedArg = exports.prerun = exports.getAppPaths = exports.getRootTsConfigPath = exports.copy = exports.getNxWorkspaceConfig = exports.updateFile = exports.updateJsonFile = exports.getJsonFromFile = exports.jsonParse = exports.isTesting = exports.setTest = exports.isXplatWorkspace = exports.getAppName = exports.getGroupByName = exports.getFrontendFramework = exports.getPrefix = exports.getNpmScope = exports.supportedFrameworks = exports.supportedPlatformsWithNx = exports.supportedNxExtraPlatforms = exports.supportedPlatforms = void 0; | ||
exports.toFileName = exports.parseProjectNameFromPath = exports.sanitizeCommaDelimitedArg = exports.prerun = exports.getAppPaths = exports.getRootTsConfigPath = exports.copy = exports.getNxWorkspaceConfig = exports.updateFile = exports.updateJsonFile = exports.getJsonFromFile = exports.jsonParse = exports.isTesting = exports.setTest = exports.isXplatWorkspace = exports.getAppName = exports.getGroupByName = exports.getFrontendFramework = exports.getPrefix = exports.getNpmScope = exports.supportedFrameworks = exports.supportedPlatformsWithNx = exports.supportedNxExtraPlatforms = exports.supportedPlatforms = void 0; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const devkit_1 = require("@nrwl/devkit"); | ||
const workspace_1 = require("@nrwl/workspace"); | ||
exports.supportedPlatforms = [ | ||
@@ -67,3 +66,3 @@ 'web', | ||
// ensure comments are stripped when parsing (otherwise will fail) | ||
return devkit_1.parseJson(content); | ||
return (0, devkit_1.parseJson)(content); | ||
} | ||
@@ -81,3 +80,3 @@ return {}; | ||
// if (tree.exists(path)) { | ||
tree.overwrite(path, workspace_1.serializeJson(jsonData)); | ||
tree.overwrite(path, (0, devkit_1.serializeJson)(jsonData)); | ||
// } | ||
@@ -299,1 +298,8 @@ return tree; | ||
exports.parseProjectNameFromPath = parseProjectNameFromPath; | ||
function toFileName(s) { | ||
return s | ||
.replace(/([a-z\d])([A-Z])/g, '$1_$2') | ||
.toLowerCase() | ||
.replace(/[ _]/g, '-'); | ||
} | ||
exports.toFileName = toFileName; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27471
373