Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 1a3d662

Browse files
Use tsc (#262)
* rename files to .ts, update to use es6 imports/exports, and build and watch scripts * add babel submodule, use .ts for test files, update jest configuration * install babel deps * get playground working again * upgrade jest and fix coverage reporting * add 'prepublishOnly' script and 'files' section to package.json * build cli as well as convert * update 'dev quick start' in README
1 parent ea69a99 commit 1a3d662

File tree

158 files changed

+5755
-71100
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+5755
-71100
lines changed

.circleci/config.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/node.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ jobs:
1212
uses: actions/setup-node@v1
1313
with:
1414
node-version: 12.x
15-
- name: yarn install
15+
- name: checkout babel submodule
16+
run: git submodule update --depth 1 --init -- babel
17+
- name: install babel deps
18+
working-directory: ./babel
19+
run: yarn install
20+
- name: install flow-to-ts deps
1621
run: yarn install
1722
- name: yarn coverage
1823
run: yarn coverage
@@ -34,7 +39,12 @@ jobs:
3439
uses: actions/setup-node@v1
3540
with:
3641
node-version: ${{ matrix.node-version }}
37-
- name: yarn install
42+
- name: checkout babel submodule
43+
run: git submodule update --depth 1 --init -- babel
44+
- name: install babel deps
45+
working-directory: ./babel
46+
run: yarn install
47+
- name: install flow-to-ts deps
3848
run: yarn install
3949
- name: yarn test
4050
run: yarn test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
coverage
33
docs
4+
dist

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "babel"]
2+
path = babel
3+
url = https://github.com/kevinbarabash/babel

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ test cases and should have 100% diff coverage.
6161
```bash
6262
git clone [email protected]:Khan/flow-to-ts.git
6363
cd flow-to-ts
64+
git submodule update --depth 1 --init -- babel
65+
cd babel
66+
yarn
67+
cd ..
6468
yarn
6569
yarn test
6670
```

babel

Submodule babel added at c5333ae

babel-traverse/LICENSE

Lines changed: 0 additions & 22 deletions
This file was deleted.

babel-traverse/README.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

babel-traverse/lib/cache.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

babel-traverse/lib/context.js

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)