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

webpack-to-ardoq

Package Overview
Dependencies
Maintainers
12
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-to-ardoq

1. `npm install` 2. Copy `config-sample.json` to `config.json` 3. Choose an org to use, and create a folder for the new workspaces 4. Generate an API token for the script, and configure the `connection.token` property in the config file 5. Create two empt

  • 0.2.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
154
increased by29.41%
Maintainers
12
Weekly downloads
 
Created
Source

Setup

  1. npm install
  2. Copy config-sample.json to config.json
  3. Choose an org to use, and create a folder for the new workspaces
  4. Generate an API token for the script, and configure the connection.token property in the config file
  5. Create two empty, flexible workspaces. One for sources and one for libraries
  6. In the libraries workspace create this type hierarchy:
  • Library folder
  • Library
  1. In the sources workspace, create the following component types:
  • Folder
  • Javascript
  • Typescript
  • Style
  • Template
  • Graphic
  • Font
  • Other
  1. Also create the following reference types in both workspaces
  • imports
  • requires
  1. Set the organization and workspace ids in the config
  • Find your organization label
  • Find the workspace ids by setting each workspace as your context, and look at the url
  1. After opening the workspaces, run the following script in your browser console to get the component type ids:
ARDOQ.context.workspaces().reduce((a,w)=>a+'\n'+Object.values(w.getModel().getAllTypes()).reduce((b,t)=>`${b}\n  ${t.name} - ${t.id}`,w.name()),'')
  1. Run the following for the reference types
ARDOQ.context.workspaces().reduce((a,w)=>a+'\n'+Object.values(w.getModel().getReferenceTypes()).reduce((b,t)=>`${b}\n  ${t.name} - ${t.id}`,w.name()),'')
  1. Punch the ids into the config

USAGE

  • npm start /path-to/ardoq-front/ ./config.json [...options]
  • Options:
    • dryRun (skips import): npm start /path-to/ardoq-front/ ./config.json dryRun
    • clearCache (clears the webpack stats cache): npm start /path-to/ardoq-front/ ./config.json clearCache

Build

Run npm run build to transpile files in /src to ES6 in /dist.

FAQs

Package last updated on 23 Sep 2020

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