open-index/open-npm huggingface dataset:
npm package: @jdplc/jd-components
Description: Common Vue components used across JD facias
Author: JD MC Fred
Latest version: 2.30.5

# JD Components

## Installing / Setup
### Adding to Project

```powershell
npm install @jdplc/jd-components
```

### Importing Components

Use the following import pattern to load in the required component:

```js
import Component from '@jdplc/jd-components/sfc/ComponentName.vue';
```

### Using with Jest

Add the following to the Jest config to allow for the components to be loaded and transformed in tests:

```js
"transformIgnorePatterns": [
  "/node_modules/(?!@jdplc/jd-components)"
],
```

### Parsing Components (for vue-cli projects)
Add the following into the **vue.config.js** file to allow the components to be transpiled correctly when your project is built:

```js
transpileDependencies: ['@jdplc/jd-components'],
```

## Creating a Component
When creating a component, please follow these guidelines so the component can be integrated correclty into the Content Editor.

### General Component Setup
Use this basic component template as a base for the component:

```vue
<template>
  <div :class="className">
    <!-- HTML for component here... -->
  </div>
</template>

<script>
export default {
  name: 'ComponentName',

  data: () => ({
    className: 'component-class-name'
  });
};
</script>

<style lang="scss">
.component-class-name {
  // styles for component go in here...
}
</style>
```

> [NOTE]: Each component needs to have a **name** property.
> Styles should be nested inside the main component class.
(i.e. .main-banner)
> (Helps keep them scoped without having to explicity add the **scoped** attribute to the style tag).


## Tests
`npm run test`
`npm run test:coverage`
npm package: @jdrf/dxf-converter-server
Description: ## Usage This app runs on https and is intended to run on docker, which will have a mongodb container called `database`.
Latest version: 0.0.0

# DXF Converter App

## Usage
This app runs on https and is intended to run on docker, which will have a mongodb container called `database`. 

### Running the App Locally
You must run this app with `NODE_ENV` of `dev` because we are not expecting the `database` containerized mongodb instance:
```
NODE_ENV=dev npm run server
```

### Running withing Docker
Docker must set `NODE_ENV` to `prod` so that the app connnects to Mongo properly.
```
NODE_ENV=prod npm run server
```