Skip to content

Commit 798d6ce

Browse files
authored
Merge pull request #4 from secondstreet/typescript
♻️ Rewrite in TypeScript
2 parents 9e99450 + 1596de2 commit 798d6ce

39 files changed

+4682
-447
lines changed

.circleci/config.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/node:10.14.0
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/mongo:3.4.4
16+
17+
working_directory: ~/repo
18+
19+
steps:
20+
- checkout
21+
22+
# Download and cache dependencies
23+
- restore_cache:
24+
keys:
25+
- v1-dependencies-{{ checksum "yarn.lock" }}
26+
# fallback to using the latest cache if no exact match is found
27+
- v1-dependencies-
28+
29+
- run: yarn install
30+
31+
- save_cache:
32+
paths:
33+
- node_modules
34+
key: v1-dependencies-{{ checksum "yarn.lock" }}
35+
36+
# run tests!
37+
- run: yarn test

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v10.14.0

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 120,
4+
"trailingComma": "es5"
5+
}

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
talker.js
2-
=========
1+
# talker.js
32

4-
A tiny (<4kB minified, <1kB min+gzip), promise-based library for cross-origin communication between frames and windows.
3+
A small (<13kB minified, <6kB min+gzip), promise-based library for cross-origin communication between frames and windows.
54

6-
Documentation
7-
-------------
5+
## Documentation
86

97
Please see [drive.secondstreet.com/introducing-talker](http://drive.secondstreet.com/introducing-talker/) for instructions and examples for using Talker.js in your own projects.
108

11-
Building
12-
--------
9+
## Building
1310

1411
```
15-
npm install -g grunt-cli
16-
npm install
17-
grunt
12+
yarn install
13+
yarn run build
1814
```

bower.json

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,8 @@
55
"author": "Second Street <[email protected]>",
66
"description": "A tiny, promise-based library for cross-origin communication between frames and windows.",
77
"main": "./dist/talker.min.js",
8-
"moduleType": [
9-
"globals"
10-
],
11-
"keywords": [
12-
"iframe",
13-
"postMessage",
14-
"cross-domain",
15-
"cross-origin",
16-
"promise"
17-
],
8+
"moduleType": ["globals"],
9+
"keywords": ["iframe", "postMessage", "cross-domain", "cross-origin", "promise"],
1810
"license": "MIT",
19-
"ignore": [
20-
"**/.*",
21-
"node_modules",
22-
"bower_components",
23-
"test",
24-
"tests"
25-
]
11+
"ignore": ["**/.*", "node_modules", "bower_components", "test", "tests"]
2612
}

dist/amd/talker.min.js

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/amd/talker.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/common_js/talker.min.js

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/common_js/talker.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/constants.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export declare const TALKER_CONTENT_TYPE: string;
2+
export declare const TALKER_ERR_MSG_TIMEOUT: string;

0 commit comments

Comments
 (0)