New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@featurevisor/cli

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@featurevisor/cli - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [0.8.0](https://github.com/fahad19/featurevisor/compare/v0.7.0...v0.8.0) (2023-04-09)
### Features
* Status site generator ([#31](https://github.com/fahad19/featurevisor/issues/31)) ([05749d4](https://github.com/fahad19/featurevisor/commit/05749d4ca2938a0ee7c7b52c7441b078d5f0dee9))
# [0.7.0](https://github.com/fahad19/featurevisor/compare/v0.6.0...v0.7.0) (2023-03-25)

@@ -8,0 +19,0 @@

@@ -131,2 +131,30 @@ "use strict";

/**
* Site
*/
.command({
command: "site [subcommand]",
handler: function (options) {
var projectConfig = requireAndGetProjectConfig(rootDirectoryPath);
var allowedSubcommands = ["export", "serve"];
if (!allowedSubcommands.includes(options.subcommand)) {
console.log("Please specify a subcommand: `export` or `serve`");
return;
}
// export
if (options.subcommand === "export") {
var hasError = (0, core_1.exportSite)(rootDirectoryPath, projectConfig);
if (hasError) {
process.exit(1);
}
}
// serve
if (options.subcommand === "serve") {
(0, core_1.serveSite)(rootDirectoryPath, projectConfig);
}
},
})
.example("$0 site export", "generate static site with project data")
.example("$0 site serve", "serve already exported site locally")
.example("$0 site serve -p 3000", "serve in a specific port")
/**
* Options

@@ -133,0 +161,0 @@ */

6

package.json
{
"name": "@featurevisor/cli",
"version": "0.7.0",
"version": "0.8.0",
"description": "CLI package of Featurevisor",

@@ -47,3 +47,3 @@ "main": "bin.js",

"dependencies": {
"@featurevisor/core": "^0.7.0",
"@featurevisor/core": "^0.8.0",
"yargs": "^17.6.2"

@@ -54,3 +54,3 @@ },

},
"gitHead": "d06517f562f831dc61eebc531b85fabccc06ec2e"
"gitHead": "fe803f91b34ee7aa98a384769ba1fc181fb9c64e"
}

@@ -13,2 +13,4 @@ import * as fs from "fs";

initProject,
exportSite,
serveSite,
} from "@featurevisor/core";

@@ -98,2 +100,36 @@

/**
* Site
*/
.command({
command: "site [subcommand]",
handler: function (options) {
const projectConfig = requireAndGetProjectConfig(rootDirectoryPath);
const allowedSubcommands = ["export", "serve"];
if (!allowedSubcommands.includes(options.subcommand)) {
console.log("Please specify a subcommand: `export` or `serve`");
return;
}
// export
if (options.subcommand === "export") {
const hasError = exportSite(rootDirectoryPath, projectConfig);
if (hasError) {
process.exit(1);
}
}
// serve
if (options.subcommand === "serve") {
serveSite(rootDirectoryPath, projectConfig);
}
},
})
.example("$0 site export", "generate static site with project data")
.example("$0 site serve", "serve already exported site locally")
.example("$0 site serve -p 3000", "serve in a specific port")
/**
* Options

@@ -100,0 +136,0 @@ */

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