Socket
Socket
Sign inDemoInstall

@faststore/cli

Package Overview
Dependencies
Maintainers
10
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@faststore/cli - npm Package Compare versions

Comparing version 2.0.104-alpha.0 to 2.0.155-alpha.0

2

dist/utils/directory.d.ts

@@ -14,3 +14,3 @@ export declare const getRoot: () => string;

export declare const tmpThemesCustomizationsFileDir: string;
export declare const cmsFolderName = "cms/faststore";
export declare const cmsFolderName: string;
export declare const tmpCMSDir: string;

@@ -17,0 +17,0 @@ export declare const coreCMSDir: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tmpNodeModulesDir = exports.userNodeModulesDir = exports.tmpStoreConfigFileDir = exports.coreStoreConfigFileDir = exports.userStoreConfigFileDir = exports.configFileName = exports.userCMSDir = exports.coreCMSDir = exports.tmpCMSDir = exports.cmsFolderName = exports.tmpThemesCustomizationsFileDir = exports.userThemesFileDir = exports.tmpCustomizationsDir = exports.customizationsFolderName = exports.userSrcDir = exports.srcFolderName = exports.coreDir = exports.coreFolderName = exports.tmpDir = exports.tmpFolderName = exports.faststoreDir = exports.userDir = exports.getRoot = void 0;
const tslib_1 = require("tslib");
const path_1 = tslib_1.__importDefault(require("path"));
const getRoot = () => {

@@ -12,23 +14,23 @@ if (process.env.OCLIF_COMPILATION) {

exports.userDir = (0, exports.getRoot)();
exports.faststoreDir = `${exports.userDir}/node_modules/@faststore`;
exports.faststoreDir = path_1.default.join(exports.userDir, 'node_modules', '@faststore');
exports.tmpFolderName = '.faststore';
exports.tmpDir = `${exports.userDir}/${exports.tmpFolderName}`;
exports.tmpDir = path_1.default.join(exports.userDir, exports.tmpFolderName);
exports.coreFolderName = 'core';
exports.coreDir = `${exports.faststoreDir}/${exports.coreFolderName}`;
exports.coreDir = path_1.default.join(exports.faststoreDir, exports.coreFolderName);
exports.srcFolderName = 'src';
exports.userSrcDir = `${exports.userDir}/${exports.srcFolderName}`;
exports.userSrcDir = path_1.default.join(exports.userDir, exports.srcFolderName);
exports.customizationsFolderName = 'customizations';
exports.tmpCustomizationsDir = `${exports.tmpDir}/src/${exports.customizationsFolderName}`;
exports.userThemesFileDir = `${exports.userSrcDir}/themes`;
exports.tmpThemesCustomizationsFileDir = `${exports.tmpCustomizationsDir}/themes/index.scss`;
exports.cmsFolderName = 'cms/faststore';
exports.tmpCMSDir = `${exports.tmpDir}/${exports.cmsFolderName}`;
exports.coreCMSDir = `${exports.coreDir}/${exports.cmsFolderName}`;
exports.userCMSDir = `${exports.userDir}/${exports.cmsFolderName}`;
exports.tmpCustomizationsDir = path_1.default.join(exports.tmpDir, 'src', exports.customizationsFolderName);
exports.userThemesFileDir = path_1.default.join(exports.userSrcDir, 'themes');
exports.tmpThemesCustomizationsFileDir = path_1.default.join(exports.tmpCustomizationsDir, 'themes', 'index.scss');
exports.cmsFolderName = path_1.default.join('cms', 'faststore');
exports.tmpCMSDir = path_1.default.join(exports.tmpDir, exports.cmsFolderName);
exports.coreCMSDir = path_1.default.join(exports.coreDir, exports.cmsFolderName);
exports.userCMSDir = path_1.default.join(exports.userDir, exports.cmsFolderName);
exports.configFileName = 'faststore.config.js';
exports.userStoreConfigFileDir = `${exports.userDir}/${exports.configFileName}`;
exports.coreStoreConfigFileDir = `${exports.coreDir}/${exports.configFileName}`;
exports.tmpStoreConfigFileDir = `${exports.tmpDir}/${exports.configFileName}`;
exports.userNodeModulesDir = `${exports.userDir}/node_modules`;
exports.tmpNodeModulesDir = `${exports.tmpDir}/node_modules`;
exports.userStoreConfigFileDir = path_1.default.join(exports.userDir, exports.configFileName);
exports.coreStoreConfigFileDir = path_1.default.join(exports.coreDir, exports.configFileName);
exports.tmpStoreConfigFileDir = path_1.default.join(exports.tmpDir, exports.configFileName);
exports.userNodeModulesDir = path_1.default.join(exports.userDir, 'node_modules');
exports.tmpNodeModulesDir = path_1.default.join(exports.tmpDir, 'node_modules');
//# sourceMappingURL=directory.js.map

@@ -7,2 +7,3 @@ "use strict";

const fs_extra_1 = require("fs-extra");
const path_1 = tslib_1.__importDefault(require("path"));
const directory_1 = require("./directory");

@@ -28,3 +29,3 @@ const chalk_1 = tslib_1.__importDefault(require("chalk"));

filter(src) {
const fileOrDirName = src.split('/').pop();
const fileOrDirName = path_1.default.basename(src);
const shouldCopy = fileOrDirName

@@ -57,3 +58,3 @@ ? !ignorePaths.includes(fileOrDirName)

if (storeConfig.theme) {
const customTheme = `${directory_1.userThemesFileDir}/${storeConfig.theme}.scss`;
const customTheme = path_1.default.join(directory_1.userThemesFileDir, `${storeConfig.theme}.scss`);
if ((0, fs_extra_1.existsSync)(customTheme)) {

@@ -80,4 +81,4 @@ try {

function mergeCMSFile(fileName) {
const customFilePath = `${directory_1.userCMSDir}/${fileName}`;
const coreFilePath = `${directory_1.coreCMSDir}/${fileName}`;
const customFilePath = path_1.default.join(directory_1.userCMSDir, fileName);
const coreFilePath = path_1.default.join(directory_1.coreCMSDir, fileName);
const coreFile = (0, fs_extra_1.readFileSync)(coreFilePath, 'utf8');

@@ -101,3 +102,3 @@ const output = [...JSON.parse(coreFile)];

try {
(0, fs_extra_1.writeFileSync)(`${directory_1.tmpCMSDir}/${fileName}`, JSON.stringify(output));
(0, fs_extra_1.writeFileSync)(path_1.default.join(directory_1.tmpCMSDir, fileName), JSON.stringify(output));
console.log(`${chalk_1.default.green('success')} - CMS file ${chalk_1.default.dim(fileName)} created`);

@@ -104,0 +105,0 @@ }

{
"name": "@faststore/cli",
"version": "2.0.104-alpha.0",
"version": "2.0.155-alpha.0",
"description": "FastStore CLI",

@@ -72,3 +72,3 @@ "author": "Emerson Laurentino @emersonlaurentino",

"types": "dist/index.d.ts",
"gitHead": "0db7f06c36c7c41ecec51f247b21866469977618"
"gitHead": "5c5f8de932f7b48205ca5520175308985433bd81"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc