Skip to content

Commit

Permalink
Merge pull request #102 from 201flaviosilva-labs/96-test-all-function…
Browse files Browse the repository at this point in the history
…-and-the-code

Organize files and folders, test some vanilla functions
  • Loading branch information
201flaviosilva committed Dec 14, 2022
2 parents 5b67e16 + 4bda3e4 commit 1917a4d
Show file tree
Hide file tree
Showing 236 changed files with 53,264 additions and 13,224 deletions.
3 changes: 0 additions & 3 deletions .babelrc.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Export
name: Export Vanilla

on:
push:
Expand All @@ -15,12 +15,15 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [17.x]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Change Directory
run: cd ./lib/Vanilla

- name: Install Dependencies
run: npm ci

Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/DeployDoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,29 @@ name: Github Pages Deploy
on:
push:
branches:
- "main"
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
node-version: [17.x]

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Install and Build
- name: Change Directory
run: cd ./lib/Vanilla

- name: Install
run: npm install && npm run jsDoc

- name: Build
run: npm run jsDoc

- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/Test-Vanilla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test code

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [17.x]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Change Directory
run: cd ./lib/Vanilla

- name: Install
run: npm install

- name: Test
run: npm run test:all
20 changes: 0 additions & 20 deletions .gitlab-ci.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
1 change: 0 additions & 1 deletion build/utils.min.js

This file was deleted.

60 changes: 60 additions & 0 deletions lib/CSSFreeStyle/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 201flaviosilva-utils-css

## Description
Just some simple JavaScript Utils.

## Usage

### Using NPM (Recommend)
#### Install Package
```sh
npm i 201flaviosilva-utils
```

or
```sh
npm i https://github.com/201flaviosilva-labs/javascript-utils#v1.2.10
```

#### Import to the project
```js
import { randomNumber } from "201flaviosilva-utils";

console.log(randomNumber(1, 20));
```

### Using CDN (jsdelivr)
```html
<script src="https://cdn.jsdelivr.net/npm/201flaviosilva-utils@1.2.9/build/utils.min.js"></script>
<script src="./your-js-file.js"></script>
```

```js
// ./your-js-file.js
console.log(randomNumber(1, 20));
```

## Available Commands

| Command | Description |
| ----------------- | ----------------------------------------------------------------- |
| `npm install` | Install project dependencies |
| `npm run clear` | Delete the "build" and "types" and "docs" folder |
| `npm run jsDoc` | Build a docs page based in the jsdoc |
| `npm run types` | Build the types |
| `npm run compile` | Builds code bundle with production settings (minification, etc..) |
| `npm run build` | Bundle the code, create the types and teh docs folder |
| `npm run bump` | Update lib in the npm |

## Links
- [WebPage (Documentation)](https://201flaviosilva-labs.github.io/javascript-utils/);
- [Package](https://www.npmjs.com/package/201flaviosilva-utils);
- [GitHub](https://github.com/201flaviosilva-labs/javascript-utils);
- [Wiki](https://github.com/201flaviosilva-labs/javascript-utils/wiki);
- [Issues](https://github.com/201flaviosilva-labs/javascript-utils/issues);
- [Snippets (More Utils)](https://github.com/201flaviosilva-labs/javascript-utils/tree/main/snippets);
- [Releases](https://github.com/201flaviosilva-labs/javascript-utils/releases);

## Examples
- [Code Sandbox](https://codesandbox.io/examples/package/201flaviosilva-utils);
- [GitHub Repositories](https://github.com/201flaviosilva-labs/javascript-utils/network/dependents);
File renamed without changes.
File renamed without changes.

0 comments on commit 1917a4d

Please sign in to comment.