Skip to content

Commit

Permalink
Merge pull request #7 from fleetbase/dev-v1.1.11
Browse files Browse the repository at this point in the history
v1.1.11 ~ πŸŽ„πŸŽ…πŸΎ
  • Loading branch information
roncodes authored Dec 25, 2024
2 parents 137c84e + 6a7c988 commit 8ebe0b5
Show file tree
Hide file tree
Showing 70 changed files with 4,950 additions and 5,314 deletions.
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

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

This file was deleted.

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

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

- name: Build
run: pnpm run bundle

Expand Down
5 changes: 0 additions & 5 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: 2 additions & 0 deletions dist/$storefront.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/@fleetbase/storefront/resolver.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

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

2 changes: 0 additions & 2 deletions dist/cjs/store-1208b91a.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/cjs/store-1208b91a.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions dist/cjs/store-B5J1gYSv.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/cjs/store-B5J1gYSv.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/cjs/store-C9rG6_hX.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/cjs/store-C9rG6_hX.js.map

This file was deleted.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

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

2 changes: 0 additions & 2 deletions dist/esm/store-DTqxvCQ3.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/esm/store-DTqxvCQ3.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions dist/esm/store-DfOhXl38.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/esm/store-DfOhXl38.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/esm/store-a1153df9.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/esm/store-a1153df9.js.map

This file was deleted.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/storefront.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];
90 changes: 34 additions & 56 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,56 @@
{
"name": "@fleetbase/storefront",
"version": "1.1.10",
"version": "1.1.11",
"description": "Fleetbase Storefront JS & Node SDK",
"license": "AGPL-3.0-or-later",
"author": "Ronald A. Richardson <ron@fleetbase.io> (https://ron.dev)",
"license": "BSD-3-Clause",
"type": "module",
"keywords": [
"fleetbase",
"ecommerce",
"api",
"ondemand",
"ecommerce",
"last",
"mile",
"delivery",
"logistics",
"ecommerce",
"app"
"headless ecommerce"
],
"main": "dist/cjs/storefront.js",
"module": "dist/esm/storefront.js",
"exports": {
".": {
"import": "./dist/esm/storefront.js",
"require": "./dist/cjs/storefront.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"
},
"main": "dist/cjs/storefront.js",
"module": "dist/esm/storefront.js",
"files": [
"dist",
"src"
],
"exports": {
".": {
"import": "./dist/esm/storefront.js",
"require": "./dist/cjs/storefront.js"
},
"./resolver": {
"import": "./dist/esm/resolver.js",
"require": "./dist/cjs/resolver.js"
}
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
"dependencies": {
"@fleetbase/sdk": "^1.2.11",
"countries-list": "^3.1.1",
"date-fns": "^4.1.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.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"mocha": "^10.2.0",
"prettier": "3.1.1",
"rollup": "^4.9.1",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-terser": "^7.0.2",
"source-map-support": "^0.5.21",
"typescript": "^5.3.3"
},
"dependencies": {
"@fleetbase/sdk": "1.2.10",
"date-fns": "^3.0.5"
"@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 8ebe0b5

Please sign in to comment.