Skip to content

Commit

Permalink
Merge pull request #19 from fleetbase/dev-v1.2.11
Browse files Browse the repository at this point in the history
v1.2.11 ~ πŸŽ„πŸŽ…πŸΎ
  • Loading branch information
roncodes authored Dec 25, 2024
2 parents 5a71ba5 + 56a35a5 commit 360fee1
Show file tree
Hide file tree
Showing 69 changed files with 5,604 additions and 5,349 deletions.
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
- name: Install Dependencies
run: pnpm install

- name: Test
run: pnpm test
env:
FLEETBASE_KEY: ${{ secrets.FLEETBASE_KEY }}
FLEETBASE_HOST: ${{ secrets.FLEETBASE_HOST }}

- name: Build
run: pnpm run bundle

Expand Down
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 190,
"tabWidth": 4,
"jsxSingleQuote": true
}
9 changes: 0 additions & 9 deletions .prettierrc.js

This file was deleted.

13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"java.configuration.updateBuildConfiguration": "automatic",
"prettier.prettierPath": "./node_modules/prettier",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.formatOnType": false,
"prettier.configPath": ".prettierrc",
"prettier.ignorePath": ".prettierignore"
}
654 changes: 648 additions & 6 deletions LICENSE.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
presets: ['@babel/preset-env'],
plugins: [['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }]],
};
2 changes: 1 addition & 1 deletion dist/@fleetbase/sdk.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/@fleetbase/sdk.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/fleetbase.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/fleetbase.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/fleetbase.min.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import globals from 'globals';
import pluginJs from '@eslint/js';

/** @type {import('eslint').Linter.Config[]} */
export default [{ languageOptions: { globals: { ...globals.browser, ...globals.node } } }, pluginJs.configs.recommended];
104 changes: 37 additions & 67 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,86 +1,56 @@
{
"name": "@fleetbase/sdk",
"version": "1.2.10",
"version": "1.2.11",
"description": "Fleetbase JS & Node SDK",
"repository": "https://github.com/fleetbase/fleetbase-js",
"license": "AGPL-3.0-or-later",
"author": "Ronald A. Richardson <[email protected]> (https://ron.dev)",
"type": "module",
"keywords": [
"logistics",
"delivery",
"fleet"
],
"main": "dist/cjs/fleetbase.js",
"module": "dist/esm/fleetbase.js",
"types": "types/fleetbase.d.ts",
"files": [
"dist",
"src",
"types"
],
"exports": {
".": {
"import": "./dist/esm/fleetbase.js",
"require": "./dist/cjs/fleetbase.js"
}
},
"scripts": {
"prebuild": "npm run lint",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"lint:tests": "eslint tests",
"bundle": "rollup -c",
"dev": "rollup -c -w",
"test": "mocha --require @babel/polyfill --require @babel/register --require source-map-support/register tests/*.test.js",
"prepare": "husky install",
"test": "mocha -r @babel/register -r dotenv/config 'tests/*.test.js' --timeout 10000",
"format": "prettier . --write"
},
"author": "Ronald A. Richardson <[email protected]> (https://ron.dev)",
"license": "BSD-3-Clause",
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
},
"dependencies": {
"@babel/runtime": "^7.23.6",
"axios": "^1.7.9",
"cross-fetch": "^4.1.0",
"global": "^4.4.0",
"rollup": "^4.9.0"
"@babel/runtime": "^7.26.0",
"axios": "^1.7.0"
},
"devDependencies": {
"@babel/core": "^7.23.6",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.23.6",
"@babel/plugin-transform-spread": "^7.23.3",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.23.6",
"@babel/register": "^7.22.15",
"@babel/core": "^7.26.0",
"@babel/node": "^7.26.0",
"@babel/plugin-proposal-decorators": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/register": "^7.25.9",
"@eslint/js": "^9.17.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"chai": "^4.3.10",
"eslint": "^8.55.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.29.0",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"mocha": "^10.2.0",
"prettier": "3.1.1",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-terser": "^7.0.2",
"source-map-support": "^0.5.21",
"typescript": "^5.3.3"
},
"directories": {
"lib": "src",
"test": "tests"
},
"repository": {
"type": "git",
"url": "git+https://github.com/fleetbase/fleetbase-js.git"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"logistics",
"ondemand",
"delivery",
"operations",
"logistics",
"api",
"fleet",
"management",
"fleet",
"api"
],
"bugs": {
"url": "https://github.com/fleetbase/fleetbase-js/issues"
},
"homepage": "https://github.com/fleetbase/fleetbase-js#readme"
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-eslint": "^9.0.5",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-terser": "^0.4.4",
"chai": "^5.1.2",
"dotenv": "^16.4.7",
"eslint": "^9.17.0",
"globals": "^15.14.0",
"mocha": "^11.0.1",
"prettier": "3.4.2",
"rollup": "^4.29.1"
}
}
Loading

0 comments on commit 360fee1

Please sign in to comment.