Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOISSUE - Bundle node module for browsers #3

Merged
merged 31 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b4306c4
Add things.js
Sep 5, 2023
c076262
add users.js file
Sep 6, 2023
7b3bb2e
update package.json file
Sep 7, 2023
551a327
add groups.js file
Sep 8, 2023
92248d2
add channels.js file
Sep 10, 2023
ba149c7
add missing policies
Sep 10, 2023
a8d467c
add errors.js file
Sep 11, 2023
e7a7091
add functionality to errors.js
Sep 12, 2023
322b0f6
add tests folder
Sep 13, 2023
fc86d37
update groups.js file
Sep 13, 2023
2a7b723
update test.js with babel config
Sep 14, 2023
0772331
add certs.js file
Sep 19, 2023
5f42acd
testing users.js
Sep 25, 2023
3dc66b1
add bootstrap.js file and messages.js file
Sep 28, 2023
7ef38b4
update messages.js file
Oct 2, 2023
40c71bb
add docstrings to Users.js and Groups.js files
Oct 2, 2023
70d2749
add docstrings to things.js and channels.js files
Oct 4, 2023
c884637
update docstrings and certs.tests.js file
Oct 4, 2023
47f4969
remove comments in examples.js file
Oct 9, 2023
2a0f7dd
add validation, fix tests and comment resolution
Oct 15, 2023
41bccdb
add workflow file1
Oct 15, 2023
8e7bb7e
add workflows2
Oct 15, 2023
f50a2bc
add worklows3
Oct 15, 2023
6d3c6fc
add worklows4
Oct 16, 2023
8e1288a
bundle node module
SammyOina Oct 9, 2023
d5e2474
prettier
SammyOina Oct 9, 2023
7fb821a
Add new index.html file and initialize SDK with default URLs and make…
SammyOina Oct 9, 2023
f1a4208
browserify
SammyOina Oct 9, 2023
a772fff
fix bundle, add commands and example
SammyOina Oct 11, 2023
b2f8201
Add getting started section to README.md
SammyOina Oct 11, 2023
114bcfe
Fix console.log statement in listThings.html
SammyOina Oct 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ the following locations:
6. Additional information you deem important:

**ENHANCEMENT**

1. Describe the enhancement you are requesting. Enhancements include:

- tests
- code refactor
- documentation
- research
- tooling

2. Indicate the importance of this enhancement to you (must-have, should-have, nice-to-have).
2. Indicate the importance of this enhancement to you (must-have, should-have, nice-to-have).
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Please review the [CONTRIBUTING.md](./CONTRIBUTING.md) file for detailed contrib
### What does this do?

### Which issue(s) does this PR fix/relate to?

Put here `Resolves #XXX` to auto-close the issue that your PR fixes (if such)

### List any changes that modify/break current functionality
Expand All @@ -12,4 +13,4 @@ Put here `Resolves #XXX` to auto-close the issue that your PR fixes (if such)

### Did you document any new/modified functionality?

### Notes
### Notes
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Testing

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Testing
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14

- name: Install dependencies
run: npm install

- name: Run Jest tests
run: npm test

- name: Lint with ESLint
run: npm run lint
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
dist/

# Runtime data
pids
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore artifacts:
node_modules
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
37 changes: 37 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"configurations": [
{
"name": "Launch via NPM",
"request": "launch",
"runtimeArgs": [
"run-script",
"debug"
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"type": "node",
"name": "vscode-jest-tests.v2",
"request": "launch",
"args": [
"test",
"--",
"--runInBand",
"--watchAll=false",
"--testNamePattern",
"${jest.testNamePattern}",
"--runTestsByPath",
"${jest.testFile}"
],
"cwd": "/mnt/c/Users/user/Desktop/ULTRAVIOLET/sdk-js",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"runtimeExecutable": "npm"
}
]
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Thank you for your interest in Mainflux and the desire to contribute!
2. Checkout the [contribution guide](CONTRIBUTING.md) to learn more about our style and conventions.
3. Make your changes compatible to our workflow.

## Getting Started
The node module can be used from `index.js` and examples are located in `examples` directory. To use on the browser use `bundle.js` and examples are in `example/client`.

## Community

- [Google group](https://groups.google.com/forum/#!forum/mainflux)
Expand Down
Loading