Skip to content

Commit

Permalink
✨ Add @ackee/antonio package
Browse files Browse the repository at this point in the history
  • Loading branch information
cermakjiri committed May 17, 2020
1 parent 05b3b3a commit 53bfabf
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 8 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
],
"scripts": {
"bootstrap": "lerna bootstrap --use-workspaces",
"build:lib": "lerna exec --parallel -- BABEL_ENV=lib babel src --out-dir lib --extensions \".ts\" --config-file=../../../babel.config.js --source-maps inline",
"build:es": "lerna exec --parallel -- BABEL_ENV=es babel src --out-dir es --extensions \".ts\" --config-file=../../../babel.config.js --source-maps inline",
"build:types": "lerna exec -- tsc --project ./tsconfig.types.json --emitDeclarationOnly",
"build:js": "yarn build:es",
"build:js": "yarn build:es & yarn build:lib",
"build": "yarn clean && yarn build:js && yarn build:types",
"clean": "lerna exec -- rm -rf lib es",
"lint": "tslint \"src/**/*.ts\"",
Expand Down
9 changes: 5 additions & 4 deletions packages/@ackee/antonio-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,21 @@
"ackee"
],
"author": "Jiří Čermák <jiri.cermak@ackee.cz>",
"homepage": "https://github.com/AckeeCZ/antonio#readme",
"license": "MIT",
"main": "es/index.js",
"main": "lib/index.js",
"module": "es/index.js",
"sideEffects": false,
"files": [
"es"
"es",
"lib"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/AckeeCZ/antonio.git"
"url": "git+https://github.com/AckeeCZ/antonio.git",
"directory": "packages/@ackee/antonio-core"
},
"scripts": {
"size": "package-size es --no-cache"
Expand Down
2 changes: 1 addition & 1 deletion packages/@ackee/antonio-core/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfig.types.json",
"compilerOptions": {
"outDir": "./es"
"outDir": "./lib"
},
"include": ["src"]
}
11 changes: 11 additions & 0 deletions packages/@ackee/antonio/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# `@ackee/antonio`

> TODO: description
## Usage

```
const antonio = require('@ackee/antonio');
// TODO: DEMONSTRATE API
```
40 changes: 40 additions & 0 deletions packages/@ackee/antonio/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "@ackee/antonio",
"version": "4.0.0-alpha.5",
"description": "> TODO: description",
"keywords": [
"ackee",
"http-client",
"javascript",
"fetch"
],
"author": "Jiří Čermák <jiri.cermak@ackee.cz>",
"homepage": "https://github.com/AckeeCZ/antonio#readme",
"license": "MIT",
"main": "lib/index.js",
"module": "es/index.js",
"files": [
"lib",
"es"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/AckeeCZ/antonio.git",
"directory": "packages/@ackee/antonio"
},
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
},
"bugs": {
"url": "https://github.com/AckeeCZ/antonio/issues"
},
"engines": {
"node": ">=10"
},
"dependencies": {
"@ackee/antonio-core": "^4.0.0-alpha.5"
}
}
1 change: 1 addition & 0 deletions packages/@ackee/antonio/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@ackee/antonio-core';
7 changes: 7 additions & 0 deletions packages/@ackee/antonio/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../../tsconfig.types.json",
"compilerOptions": {
"outDir": "./lib"
},
"include": ["src"]
}
3 changes: 1 addition & 2 deletions tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
// Enable strictest settings like strictNullChecks & noImplicitAny.
"strict": true,
// Import non-ES modules as default imports.
"esModuleInterop": true,
"jsx": "react"
"esModuleInterop": true
}
}

0 comments on commit 53bfabf

Please sign in to comment.