Skip to content

Commit

Permalink
Rename 'output-components-utils' package to 'utils'
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Sep 16, 2020
1 parent 84b9156 commit 76c00a3
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 32 deletions.
2 changes: 1 addition & 1 deletion packages/output-components-as-es6/README.md
Expand Up @@ -48,7 +48,7 @@ module.exports = {
`getVariableName`, `useBase64` and `useDataUrl` are **optional**.

```js
const { camelCase } = require('@figma-export/output-components-utils');
const { camelCase } = require('@figma-export/utils');

...

Expand Down
2 changes: 1 addition & 1 deletion packages/output-components-as-es6/package.json
Expand Up @@ -15,7 +15,7 @@
"access": "public"
},
"dependencies": {
"@figma-export/output-components-utils": "^3.0.0-alpha.0",
"@figma-export/utils": "^3.0.0-alpha.0",
"@figma-export/types": "^3.0.0-alpha.4",
"make-dir": "~3.1.0",
"mini-svg-data-uri": "~1.2.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/output-components-as-es6/src/index.test.ts
Expand Up @@ -3,7 +3,7 @@
import sinon from 'sinon';
import { expect } from 'chai';

import { camelCase } from '@figma-export/output-components-utils';
import { camelCase } from '@figma-export/utils';

import * as FigmaExport from '@figma-export/types';

Expand Down
2 changes: 1 addition & 1 deletion packages/output-components-as-es6/src/index.ts
@@ -1,5 +1,5 @@
import makeDir from 'make-dir';
import { camelCase } from '@figma-export/output-components-utils';
import { camelCase } from '@figma-export/utils';

import * as FigmaExport from '@figma-export/types';

Expand Down
2 changes: 1 addition & 1 deletion packages/output-components-as-es6/tsconfig.json
Expand Up @@ -6,6 +6,6 @@
},
"references": [
{"path": "../types"},
{"path": "../output-components-utils"},
{"path": "../utils"},
]
}
2 changes: 1 addition & 1 deletion packages/output-components-as-svgr/README.md
Expand Up @@ -61,7 +61,7 @@ module.exports = {

```js
const path = require('path');
const { pascalCase } = require('@figma-export/output-components-utils');
const { pascalCase } = require('@figma-export/utils');

...

Expand Down
2 changes: 1 addition & 1 deletion packages/output-components-as-svgr/package.json
Expand Up @@ -15,7 +15,7 @@
"access": "public"
},
"dependencies": {
"@figma-export/output-components-utils": "^3.0.0-alpha.0",
"@figma-export/utils": "^3.0.0-alpha.0",
"@figma-export/types": "^3.0.0-alpha.4",
"@svgr/core": "~5.4.0",
"make-dir": "~3.1.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/output-components-as-svgr/src/index.ts
@@ -1,5 +1,5 @@
import * as FigmaExport from '@figma-export/types';
import { pascalCase } from '@figma-export/output-components-utils';
import { pascalCase } from '@figma-export/utils';
import svgr from '@svgr/core';
import { Config, State } from './svgr';

Expand Down
2 changes: 1 addition & 1 deletion packages/output-components-as-svgr/tsconfig.json
Expand Up @@ -6,6 +6,6 @@
},
"references": [
{"path": "../types"},
{"path": "../output-components-utils"},
{"path": "../utils"},
]
}
17 changes: 0 additions & 17 deletions packages/output-components-utils/README.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/output-styles-as-sass/tsconfig.json
Expand Up @@ -6,6 +6,5 @@
},
"references": [
{"path": "../types"},
{"path": "../output-components-utils"},
]
}
File renamed without changes.
17 changes: 17 additions & 0 deletions packages/utils/README.md
@@ -0,0 +1,17 @@
# @figma-export/utils

> Utils for [@figma-export](https://github.com/marcomontalbano/figma-export).
## Install

Using npm:

```sh
npm install --save-dev @figma-export/utils
```

or using yarn:

```sh
yarn add @figma-export/utils --dev
```
@@ -1,13 +1,13 @@
{
"name": "@figma-export/output-components-utils",
"name": "@figma-export/utils",
"version": "3.0.0-alpha.0",
"description": "Utils for @figma-export outputters",
"description": "Utils for @figma-export",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/marcomontalbano/figma-exporter.git",
"directory": "packages/output-components-utils"
"directory": "packages/utils"
},
"author": "Marco Montalbano <me@marcomontalbano.com>",
"license": "MIT",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/website/.figmaexportrc.js
@@ -1,4 +1,4 @@
const { camelCase } = require('@figma-export/output-components-utils');
const { camelCase } = require('@figma-export/utils');

module.exports = {

Expand Down
2 changes: 1 addition & 1 deletion packages/website/package.json
Expand Up @@ -23,7 +23,7 @@
"@babel/core": "~7.11.1",
"@babel/plugin-transform-react-jsx": "~7.10.4",
"@figma-export/cli": "^3.0.0-alpha.4",
"@figma-export/output-components-utils": "^3.0.0-alpha.0",
"@figma-export/utils": "^3.0.0-alpha.0",
"babel-plugin-jsx-pragmatic": "~1.0.2",
"npm-run-all": "~4.1.5",
"parcel-bundler": "~1.12.4",
Expand Down

0 comments on commit 76c00a3

Please sign in to comment.