Skip to content

Commit 4c40d4e

Browse files
committed
chore: trigger ci
2 parents 0096290 + 9968fea commit 4c40d4e

20 files changed

+1251
-858
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ workflows:
7878
branches:
7979
only:
8080
- master
81+
- canary
8182

8283
# run in master every hour, 0:40, 1:40...
8384
schedule:

README.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,50 @@ information needs to be discussed, then the conversation should be handled via o
2727

2828
## Development
2929

30-
### publish
30+
### Publishing
3131

3232
A new package version is automatically published to npm using [semantic-release](https://github.com/semantic-release/semantic-release).
3333

34-
To manually publish the package, run `node ./scripts/publish.js`.
34+
To manually publish the package, run `npm run publish-all`.
3535

3636
This repository is published as two packages with identical data. We recommend using `@contentful/app-sdk`.
3737

3838
- `@contentful/app-sdk`
3939
- `contentful-ui-extensions-sdk`
40+
41+
#### Canary releases
42+
43+
This package has two main development streams: `latest` and `canary`.
44+
45+
The default and stable releases are always published under the `latest` tag (as per npm convention).
46+
The release under the `canary` tag is to be considered unstable and potentially breaking.
47+
You should not rely on it in production.
48+
49+
### File Structure
50+
51+
#### `docs`
52+
53+
Former home of the documentation and reference for this library. This is now deprecated and you should use links above.
54+
55+
#### `lib`
56+
57+
Includes the files constituting the SDK and the associated types.
58+
59+
Top level files are split by feature. Most of them map 1-to-1 to an API (keep reading for the outliers). When APIs are
60+
considered too small to be in a separate file, they are part of the [`api`](./lib/api.ts) file.
61+
62+
- [`channel`](./lib/channel.ts) and [`signal`](./lib/signal.ts) abstract the communication between an App and the host;
63+
- [`locations`](./lib/locations.ts) exports available location where you can run App;
64+
- [`initialize`](./lib/initialize.ts) creates an initializer to start an App within Contentful's App Framework.
65+
66+
All the typings are in the [`types`](./lib/types) folder and they map 1-to-1 APIs, when they make sense.
67+
The [`entities`](./lib/types/entities.ts) file maps Contentful entities in TypeScript.
68+
[`utils`](./lib/types/utils.ts) includes utility types, meant to save on characters to type.
69+
70+
#### `scripts`
71+
72+
Includes utility tools for maintainers.
73+
74+
#### `test`
75+
76+
Includes integration tests (run by [Cypress](https://www.cypress.io/)) and unit tests (run by [mocha](https://mochajs.org/))

0 commit comments

Comments
 (0)