Skip to content

Commit

Permalink
feat(project): setup lib
Browse files Browse the repository at this point in the history
  • Loading branch information
paztek committed Dec 8, 2023
1 parent 18df7c7 commit 2b76927
Show file tree
Hide file tree
Showing 35 changed files with 6,570 additions and 5,853 deletions.
12 changes: 6 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ root = true

# Settings for any file.
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ pnpmfile.js
# Log files.
*.log
*.log.*

# env files
.env
!.env.example
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/llobotomy-azure.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/build.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/doc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/lint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/lint_fix.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/prepublishOnly.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) [year] [authorFullName]
Copyright (c) 2023 Matthieu Balmes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# [libraryNameWithSpacesAndUpperCases]
# LLobotoMy for Azure

[![Continuous Integrations](https://github.com/[repositoryOwner]/[repositoryName]/actions/workflows/continuous-integrations.yaml/badge.svg?branch=main)](https://github.com/[repositoryOwner]/[repositoryName]/actions/workflows/continuous-integrations.yaml)
[![License](https://badgen.net/github/license/[repositoryOwner]/[repositoryName])](./LICENSE)
[![Package tree-shaking](https://badgen.net/bundlephobia/tree-shaking/[libraryName])](https://bundlephobia.com/package/[libraryName])
[![Package minified & gzipped size](https://badgen.net/bundlephobia/minzip/[libraryName])](https://bundlephobia.com/package/[libraryName])
[![Package dependency count](https://badgen.net/bundlephobia/dependency-count/react[libraryName])](https://bundlephobia.com/package/[libraryName])
[![Continuous Integrations](https://github.com/paztek/llobotomy-azure/actions/workflows/continuous-integrations.yaml/badge.svg?branch=main)](https://github.com/paztek/llobotomy-azure/actions/workflows/continuous-integrations.yaml)
[![License](https://badgen.net/github/license/paztek/llobotomy-azure)](./LICENSE)
[![Package tree-shaking](https://badgen.net/bundlephobia/tree-shaking/llobotomy-azure)](https://bundlephobia.com/package/llobotomy-azure)
[![Package minified & gzipped size](https://badgen.net/bundlephobia/minzip/llobotomy-azure)](https://bundlephobia.com/package/llobotomy-azure)
[![Package dependency count](https://badgen.net/bundlephobia/dependency-count/reactllobotomy-azure)](https://bundlephobia.com/package/llobotomy-azure)

## Installation

This library is published in the NPM registry and can be installed using any compatible package manager.

```sh
npm install [libraryName] --save
npm install llobotomy-azure --save

# For Yarn, use the command below.
yarn add [libraryName]
yarn add llobotomy-azure
```

### Installation from CDN
Expand All @@ -23,14 +23,14 @@ This module has an UMD bundle available through JSDelivr and Unpkg CDNs.

```html
<!-- For UNPKG use the code below. -->
<script src="https://unpkg.com/[libraryName]"></script>
<script src="https://unpkg.com/llobotomy-azure"></script>

<!-- For JSDelivr use the code below. -->
<script src="https://cdn.jsdelivr.net/npm/[libraryName]"></script>
<script src="https://cdn.jsdelivr.net/npm/llobotomy-azure"></script>

<script>
// UMD module is exposed through the "[libraryCamelCaseName]" global variable.
console.log([libraryCamelCaseName]);
// UMD module is exposed through the "llobotomy-azure" global variable.
console.log(llobotomy-azure);
</script>
```

Expand Down
4 changes: 2 additions & 2 deletions dist/index.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* [libraryName] v0.0.0
* (c) [authorFullName]
* llobotomy-azure v0.0.0
* (c) Matthieu Balmes
* Released under the MIT License.
*/

Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/index.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.esm.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/index.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* [libraryName] v0.0.0
* (c) [authorFullName]
* llobotomy-azure v0.0.0
* (c) Matthieu Balmes
* Released under the MIT License.
*/

Expand Down
2 changes: 1 addition & 1 deletion dist/index.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/index.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/index.umd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[libraryNameWithSpacesAndUpperCases]
LLobotoMy for Azure

# [libraryNameWithSpacesAndUpperCases]
# LLobotoMy for Azure

## Table of contents

Expand All @@ -22,7 +22,7 @@ A Branded Type for values parseable to number.

#### Defined in

[index.ts:4](https://github.com/VitorLuizC/typescript-library-boilerplate/blob/c48c9c1/src/index.ts#L4)
[index.ts:4](https://github.com/paztek/llobotomy-azure/blob/18df7c7/src/index.ts#L4)

## Functions

Expand Down Expand Up @@ -58,4 +58,4 @@ return Number(value);

#### Defined in

[index.ts:24](https://github.com/VitorLuizC/typescript-library-boilerplate/blob/c48c9c1/src/index.ts#L24)
[index.ts:24](https://github.com/paztek/llobotomy-azure/blob/18df7c7/src/index.ts#L24)
20 changes: 10 additions & 10 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
* @type {import('ts-jest').JestConfigWithTsJest}
*/
const options = {
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
isolatedModules: true,
useESM: true
},
],
},
resolver: 'ts-jest-resolver'
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
isolatedModules: true,
useESM: true
},
],
},
resolver: 'ts-jest-resolver'
};

module.exports = options;
Loading

0 comments on commit 2b76927

Please sign in to comment.