Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codecharta-visualization

Package Overview
Dependencies
Maintainers
6
Versions
209
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codecharta-visualization

MaibornWolff CodeCharta

  • 1.109.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
166
decreased by-49.24%
Maintainers
6
Weekly downloads
 
Created
Source

CodeCharta Visualization

Build Status

CodeCharta by MaibornWolff

Jump to Section

Installation

You can start with Codecharta Visualization on multiple ways:

NPM Package

Make sure you have Node.js (version >=16) installed
For reference: Codecharta-Visualization on NPM

# Install the package globally via npm
$ npm i -g codecharta-visualization
# Run it anywhere (you might need administrative rights/sudo)
# You might need to restart your terminal
$ codecharta-visualization

Run a standalone

  • Download the correct standalone version for your OS from the latest release page under 'Assets'
  • Extract & run the application

If you get an error on MacOS because of a missing license, try this apple support article
You may be required to give the application executable rights

Build it yourself

To clone and run this application, you'll need Git and Node.js (version >=16) installed

# Clone the CodeCharta repo
$ git clone https://github.com/MaibornWolff/codecharta.git
# Navigate to Visualization
$ cd codecharta/visualization
# Installation. If you're on Apple Silicon, you have to do `npm_config_nwjs_process_arch=x64 npm install` instead (see https://github.com/nwjs/npm-installer/issues/83).
$ npm install
# Run the development server
$ npm run dev
# Upload any .cc.json!

Tasks

After cloning the repository and running the installation as described above, you can use the other available commands and tasks inside the visualization project:

Build

Build the project in dist/. The produced files are required if you want to package the application or start the standalone version.

# Make sure you are still inside the visualization project
$ cd visualization
# Build the webpack without serving it
$ npm run build
# The webpack is inside the dist/webpack/ folder, which you can serve as a web application
Package

Package the nwjs application to produce the standalone versions for Windows (32bit/64bit), Linux (32bit/64bit) and MacOS (64bit) for distribution and testing. Creates .zip files for every OS and the webpack in the dist/packages/ folder.

Make sure to run the build task beforehand
This process might require administrative rights/sudo depending on the OS
For UNIX-based systems you need to install Wine to package the Windows application
Currently the MacOS version can't be packaged while using Windows (see sript/build-nwjs.js)

# You might need to edit the build script before you start
$ npm run package
Dev
# Build the weebpack and serve it under localhost:3000
$ npm run dev
# This server listens to file changes
Start

Make sure to run build beforehand

# Start the nwjs application
$ npm run start

Testing

To run tests check out the following tasks:

Unit

Run unit tests in app/ and generate a coverage report in dist/coverage/.

$ npm run test
# To run the tests in watch mode, use
$ npm run test:auto
E2E

Run end-to-end tests

# Make sure to stop the dev-webserver before continuing
# Create an up-to-date build
$ npm run build
# Start the e2e tests
$ npm run e2e
# To run the tests in watch mode, use
$ npm run e2e:auto

To follow/watch the steps the e2e test is performing, deactivate headless mode in jest-puppeteer.config.js (and maybe set the slowMo parameter)

JSON structure

Example Data

JSON Schema

FAQs

Package last updated on 12 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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