Socket
Socket
Sign inDemoInstall

webpack-to-ardoq

Package Overview
Dependencies
11
Maintainers
12
Versions
3
Alerts
File Explorer

Advanced tools

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


Version published
Maintainers
12
Install size
2.94 MB
Created

Readme

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

Last updated on 23 Sep 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc