Skip to content

Commit

Permalink
feat: migrate empty component to Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudforaison committed Jul 16, 2020
1 parent 37d3e47 commit ac37f7b
Show file tree
Hide file tree
Showing 25 changed files with 35 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/highlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@axa-fr/react-toolkit-highlight",
"version": "1.3.14",
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"types": "dist/index.d.ts",
"private": false,
"scripts": {
"prepare": "node ../../scripts/prepare.js"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { shallow } from 'enzyme';

import Highlight from '.';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';

const Highlight = () => <div />;

Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions packages/highlight/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.dev.json",
"include": ["./src/index.ts"]
}
2 changes: 1 addition & 1 deletion packages/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@axa-fr/react-toolkit-link",
"version": "1.3.14",
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"types": "dist/index.d.ts",
"private": false,
"scripts": {
"prepare": "node ../../scripts/prepare.js"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { shallow } from 'enzyme';

import Link from '.';
Expand Down
2 changes: 1 addition & 1 deletion packages/link/src/Link.js → packages/link/src/Link.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';

const Link = () => <div />;

Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions packages/link/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.dev.json",
"include": ["./src/index.ts"]
}
2 changes: 1 addition & 1 deletion packages/list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@axa-fr/react-toolkit-list",
"version": "1.3.14",
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"types": "dist/index.d.ts",
"private": false,
"scripts": {
"prepare": "node ../../scripts/prepare.js"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { shallow } from 'enzyme';

import List from '.';
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/List.js → packages/list/src/List.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';

const List = () => <ul className="af-list af-list--check">
<li className="af-list__item"><span className="glyphicon glyphicon-ok"/> CSS et SASS</li>
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions packages/list/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.dev.json",
"include": ["./src/index.ts"]
}
2 changes: 1 addition & 1 deletion packages/panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@axa-fr/react-toolkit-panel",
"version": "1.3.14",
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"types": "dist/index.d.ts",
"private": false,
"scripts": {
"prepare": "node ../../scripts/prepare.js"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { shallow } from 'enzyme';

import Panel from '.';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';

const Panel = () => <div />;

Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions packages/panel/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.dev.json",
"include": ["./src/index.ts"]
}
2 changes: 1 addition & 1 deletion packages/status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@axa-fr/react-toolkit-status",
"version": "1.3.14",
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"types": "dist/index.d.ts",
"private": false,
"scripts": {
"prepare": "node ../../scripts/prepare.js"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { shallow } from 'enzyme';

import Status from '.';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';

const Status = () => <div />;

Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions packages/status/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.dev.json",
"include": ["./src/index.ts"]
}

0 comments on commit ac37f7b

Please sign in to comment.