Skip to content

Commit

Permalink
feat: deep scan improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroerta committed Sep 23, 2021
1 parent f676ecb commit 014aed3
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/benchmarks/src/core/componentStyle.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Benchmark = require('benchmark');
const { parsers } = require('@morfeo/core');
const { onCycle, onComplete, onStart, appendInMd } = require('./utils');
const { onCycle, onComplete, onStart } = require('./utils');

const suite = new Benchmark.Suite();

Expand Down
2 changes: 1 addition & 1 deletion apps/benchmarks/src/core/singleComplexProperty.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Benchmark = require('benchmark');
const { parsers } = require('@morfeo/core');
const { onCycle, onComplete, onStart, appendInMd } = require('./utils');
const { onCycle, onComplete, onStart } = require('./utils');

const suite = new Benchmark.Suite();

Expand Down
4 changes: 2 additions & 2 deletions apps/benchmarks/src/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ function writeInMd(text) {
}

function appendInMd(text) {
appendInMd(mdPath, `\n\n${text}`);
_appendInMd(mdPath, `\n\n${text}`);
}

function writeMdTitle(title) {
_writeInMd(mdPath, `${title}`);
_writeMdTitle(mdPath, `${title}`);
}

function onStart(title, style) {
Expand Down
4 changes: 2 additions & 2 deletions apps/benchmarks/src/jss/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ function writeInMd(text) {
}

function appendInMd(text) {
appendInMd(mdPath, `\n\n${text}`);
_appendInMd(mdPath, `\n\n${text}`);
}

function writeMdTitle(title) {
_writeInMd(mdPath, `${title}`);
_writeMdTitle(mdPath, `${title}`);
}

function onStart(title, style) {
Expand Down
1 change: 0 additions & 1 deletion apps/native-sandbox/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/
const fs = require('fs');
const getDevPaths = require('get-dev-paths');
const path = require('path');
const projectRoot = __dirname;

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/parseSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function parseSlice<Key extends ThemeKey>(sliceName: Key) {
};

css.push(`\t${variableName}: ${cssValue};`);
}, object);
});

return { css: css.join('\n') + '\n', object };
}
1 change: 0 additions & 1 deletion packages/hooks/tests/useProps.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { renderHook } from '@testing-library/react-hooks';
import { theme } from '@morfeo/core';
import { useProps } from '../src';
import { act } from 'react-test-renderer';

const THEME = {
colors: {
Expand Down
1 change: 0 additions & 1 deletion packages/preset-default/src/base/baseTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { borderStyles } from './borderStyles';
import { borderWidths } from './borderWidths';
import { borders } from './borders';
import { breakpoints } from './breakpoints';
import { baseColors } from './colors';
import { fontSizes } from './fontSizes';
import { fontWeights } from './fontWeights';
import { gradients } from './gradients';
Expand Down

0 comments on commit 014aed3

Please sign in to comment.