Skip to content

Commit c5242f1

Browse files
committed
Add shared TypeScript config, update icon package
1 parent a7ed079 commit c5242f1

10 files changed

+287
-33
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ lerna-*.log
1717
/coverage
1818

1919
# Production
20+
lib/
2021
dist/
2122
build/
2223

package-lock.json

+231-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/chonky-icon-fontawesome/lib/chonky-icon-fontawesome.js

-7
This file was deleted.

packages/chonky-icon-fontawesome/package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22
"name": "chonky-icon-fontawesome",
33
"version": "2.0.0-alpha.0",
44
"description": "FontAwesome icon component for Chonky file browser",
5-
"main": "lib/chonky-icon-fontawesome.js",
5+
"main": "lib/index.js",
66
"files": [
77
"lib"
88
],
99
"scripts": {
10-
"test": "echo \"Error: run tests from root\" && exit 1"
10+
"test": "jest",
11+
"lint": "eslint src/",
12+
"typecheck": "tsc -p ./tsconfig.json --noEmit",
13+
"build": "rm -r ./lib; tsc",
14+
"watch": "rm -r ./lib; tsc -w",
15+
"prepublishOnly": "npm run build"
1116
},
1217
"dependencies": {
1318
"chonky": "^2.0.0-alpha.0"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* @author Timur Kuzhagaliyev <[email protected]>
3+
* @copyright 2020
4+
* @license MIT
5+
*/
6+
7+
import { ChonkyIconProps } from 'chonky/lib/components/external/ChonkyIcon';
8+
import React from 'react';
9+
10+
export const ChonkyIconFA: React.FC<ChonkyIconProps> = (props) => {
11+
return <h1>ChonkyIconFA component.</h1>;
12+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { ChonkyIconFA } from './ChonkyIconFA';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../../react.tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "lib"
5+
},
6+
"include": ["src/**/*"]
7+
}

packages/chonky/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"lint": "eslint src/",
1414
"typecheck": "tsc -p ./tsconfig.json --noEmit",
1515
"build": "rm -r ./lib; tsc",
16-
"watch": "rm -r ./lib; tsc -w"
16+
"watch": "rm -r ./lib; tsc -w",
17+
"prepublishOnly": "npm run build"
1718
},
1819
"dependencies": {
1920
"@fortawesome/fontawesome-svg-core": "^1.2.29",

0 commit comments

Comments
 (0)