Skip to content

Commit 53bfabf

Browse files
committed
✨ Add @ackee/antonio package
1 parent 05b3b3a commit 53bfabf

File tree

8 files changed

+68
-8
lines changed

8 files changed

+68
-8
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
],
66
"scripts": {
77
"bootstrap": "lerna bootstrap --use-workspaces",
8+
"build:lib": "lerna exec --parallel -- BABEL_ENV=lib babel src --out-dir lib --extensions \".ts\" --config-file=../../../babel.config.js --source-maps inline",
89
"build:es": "lerna exec --parallel -- BABEL_ENV=es babel src --out-dir es --extensions \".ts\" --config-file=../../../babel.config.js --source-maps inline",
910
"build:types": "lerna exec -- tsc --project ./tsconfig.types.json --emitDeclarationOnly",
10-
"build:js": "yarn build:es",
11+
"build:js": "yarn build:es & yarn build:lib",
1112
"build": "yarn clean && yarn build:js && yarn build:types",
1213
"clean": "lerna exec -- rm -rf lib es",
1314
"lint": "tslint \"src/**/*.ts\"",

packages/@ackee/antonio-core/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@
99
"ackee"
1010
],
1111
"author": "Jiří Čermák <[email protected]>",
12-
"homepage": "https://github.com/AckeeCZ/antonio#readme",
1312
"license": "MIT",
14-
"main": "es/index.js",
13+
"main": "lib/index.js",
1514
"module": "es/index.js",
1615
"sideEffects": false,
1716
"files": [
18-
"es"
17+
"es",
18+
"lib"
1919
],
2020
"publishConfig": {
2121
"access": "public"
2222
},
2323
"repository": {
2424
"type": "git",
25-
"url": "git+https://github.com/AckeeCZ/antonio.git"
25+
"url": "git+https://github.com/AckeeCZ/antonio.git",
26+
"directory": "packages/@ackee/antonio-core"
2627
},
2728
"scripts": {
2829
"size": "package-size es --no-cache"
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "../../../tsconfig.types.json",
33
"compilerOptions": {
4-
"outDir": "./es"
4+
"outDir": "./lib"
55
},
66
"include": ["src"]
77
}

packages/@ackee/antonio/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# `@ackee/antonio`
2+
3+
> TODO: description
4+
5+
## Usage
6+
7+
```
8+
const antonio = require('@ackee/antonio');
9+
10+
// TODO: DEMONSTRATE API
11+
```

packages/@ackee/antonio/package.json

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "@ackee/antonio",
3+
"version": "4.0.0-alpha.5",
4+
"description": "> TODO: description",
5+
"keywords": [
6+
"ackee",
7+
"http-client",
8+
"javascript",
9+
"fetch"
10+
],
11+
"author": "Jiří Čermák <[email protected]>",
12+
"homepage": "https://github.com/AckeeCZ/antonio#readme",
13+
"license": "MIT",
14+
"main": "lib/index.js",
15+
"module": "es/index.js",
16+
"files": [
17+
"lib",
18+
"es"
19+
],
20+
"publishConfig": {
21+
"access": "public"
22+
},
23+
"repository": {
24+
"type": "git",
25+
"url": "git+https://github.com/AckeeCZ/antonio.git",
26+
"directory": "packages/@ackee/antonio"
27+
},
28+
"scripts": {
29+
"test": "echo \"Error: run tests from root\" && exit 1"
30+
},
31+
"bugs": {
32+
"url": "https://github.com/AckeeCZ/antonio/issues"
33+
},
34+
"engines": {
35+
"node": ">=10"
36+
},
37+
"dependencies": {
38+
"@ackee/antonio-core": "^4.0.0-alpha.5"
39+
}
40+
}

packages/@ackee/antonio/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '@ackee/antonio-core';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../../../tsconfig.types.json",
3+
"compilerOptions": {
4+
"outDir": "./lib"
5+
},
6+
"include": ["src"]
7+
}

tsconfig.types.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
// Enable strictest settings like strictNullChecks & noImplicitAny.
1111
"strict": true,
1212
// Import non-ES modules as default imports.
13-
"esModuleInterop": true,
14-
"jsx": "react"
13+
"esModuleInterop": true
1514
}
1615
}

0 commit comments

Comments
 (0)