Skip to content

Commit 1ea3fab

Browse files
committed
chore: wip
1 parent bf47362 commit 1ea3fab

File tree

8 files changed

+148
-0
lines changed

8 files changed

+148
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Stacks Ecommerce
2+
3+
wip
4+
5+
## ☘️ Features
6+
7+
wip
8+
9+
- ⚡️
10+
11+
wip
12+
13+
## 🤖 Usage
14+
15+
wip
16+
17+
```bash
18+
bun install -d @stacksjs/ecommerce
19+
```
20+
21+
Now, you can use it in your project:
22+
23+
```js
24+
import * as ecommerce from '@stacksjs/ecommerce'
25+
26+
// wip
27+
```
28+
29+
Learn more in the docs.
30+
31+
## 🧪 Testing
32+
33+
```bash
34+
bun test
35+
```
36+
37+
## 📈 Changelog
38+
39+
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
40+
41+
## 🚜 Contributing
42+
43+
Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
44+
45+
## 🏝 Community
46+
47+
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
48+
49+
[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
50+
51+
For casual chit-chat with others using this package:
52+
53+
[Join the Stacks Discord Server](https://discord.gg/stacksjs)
54+
55+
## 📄 License
56+
57+
The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
58+
59+
Made with 💙
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { intro, outro } from '../build/src'
2+
3+
const { startTime } = await intro({
4+
dir: import.meta.dir,
5+
})
6+
7+
const result = await Bun.build({
8+
entrypoints: ['./src/index.ts'],
9+
outdir: './dist',
10+
format: 'esm',
11+
sourcemap: 'linked',
12+
minify: true,
13+
})
14+
15+
await outro({
16+
dir: import.meta.dir,
17+
startTime,
18+
result,
19+
})
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "@stacksjs/ecommerce",
3+
"type": "module",
4+
"version": "0.63.1",
5+
"description": "Stacks ecommerce utilities.",
6+
"author": "Chris Breuer",
7+
"license": "MIT",
8+
"funding": "https://github.com/sponsors/chrisbbreuer",
9+
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/ecommerce#readme",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/stacksjs/stacks.git",
13+
"directory": "./storage/framework/core/ecommerce"
14+
},
15+
"bugs": {
16+
"url": "https://github.com/stacksjs/stacks/issues"
17+
},
18+
"keywords": ["ecommerce", "utilities", "functions", "bun", "stacks"],
19+
"exports": {
20+
".": {
21+
"bun": "./src/index.ts",
22+
"import": "./dist/index.js"
23+
},
24+
"./*": {
25+
"bun": "./src/*",
26+
"import": "./dist/*"
27+
}
28+
},
29+
"module": "dist/index.js",
30+
"types": "dist/index.d.ts",
31+
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
32+
"files": ["README.md", "dist", "src"],
33+
"scripts": {
34+
"build": "bun --bun build.ts",
35+
"typecheck": "bun --bun tsc --noEmit",
36+
"prepublishOnly": "bun run build"
37+
},
38+
"devDependencies": {
39+
"@stacksjs/development": "workspace:*"
40+
}
41+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const ecommerce = {}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
type Receipt = {
2+
id: string
3+
name: string
4+
price: number
5+
quantity: number
6+
image: string
7+
}
8+
9+
const printer = {
10+
print(receipt: Receipt) {
11+
console.log(receipt)
12+
},
13+
14+
cleanUpPrintJob() {
15+
console.log('Cleaning up print job...')
16+
},
17+
18+
checkOnlineStatus() {
19+
console.log('Checking online status...')
20+
},
21+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../tsconfig.json"
3+
}

storage/framework/ide/dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ dotenv
9292
Doyon
9393
dprint
9494
Drasner
95+
ecommerce
9596
elasticloadbalancingv
9697
elbv
9798
encrypter

storage/framework/server/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ FROM base AS release
1616
COPY ./storage ./storage
1717
COPY ./config ./config
1818
COPY ./docs ./docs
19+
COPY ./dist ./dist
20+
COPY ./index.js ./
21+
COPY ./index.js.map ./
1922
COPY ./tsconfig.json ./
2023

2124
# Create log directory and set permissions

0 commit comments

Comments
 (0)