Skip to content

Commit

Permalink
Move data files to data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
alexesprit committed Feb 12, 2020
1 parent 81296ba commit 53a31c3
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function getExistingSamples(samplesDir) {
* @return {Object} Result data
*/
function getFlattenSampleFiles() {
const { fileNames, fileExtensions } = require('./items.json');
const { fileNames, fileExtensions } = require('./data/items.json');
const sampleFiles = {};

for (const type in fileNames) {
Expand Down
4 changes: 2 additions & 2 deletions src/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ function makeItemsForLightTheme(items) {
* @return {Object} Source data
*/
function getItems() {
const items = require('./items.json');
const configs = require('./configs.json');
const items = require('./data/items.json');
const configs = require('./data/configs.json');

for (const app of configs) {
const configNames = getConfigNames(app);
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const themeIdPrefix = 'vscode-unfancy-file-icons';

const colors = require('./colors.json');
const colors = require('./data/colors.json');

/**
* Exported functions.
Expand Down
2 changes: 1 addition & 1 deletion src/warnings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const items = require('./items.json');
const items = require('./data/items.json');

const skipUnusedIcons = ['file', 'folder'];

Expand Down
4 changes: 2 additions & 2 deletions tests/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import test from 'ava';

import { getThemeId } from './../src/utils';

import { iconDefinitions, fileExtensions, fileNames } from './../src/items.json';
import * as colors from './../src/colors.json';
import { iconDefinitions, fileExtensions, fileNames } from './../src/data/items.json';
import * as colors from './../src/data/colors.json';

runTests();

Expand Down

0 comments on commit 53a31c3

Please sign in to comment.