Skip to content

Commit 12a2751

Browse files
committed
Bumb to 0.0.4 and add script
1 parent 4d684d1 commit 12a2751

4 files changed

Lines changed: 26 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
- Type <code>npm run watch</code> in your terminal
1919
- Open your browser and visit <code>http://127.0.0.1</code>
2020

21+
#### Migrate from v0.0.3 to v0.0.4
22+
- Type <code>npm run migrate</code> in your terminal
23+
2124
#### To-Do List
2225
- [x] Implement Interactive mode
2326
- [x] Realtime Charts

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
<body id="app">
213213
<div id="content">
214214
<div class="header">
215-
<div class="title">wb.tracker <span>0.0.3</span></div>
215+
<div class="title">wb.tracker <span>0.0.4a</span></div>
216216
</div>
217217
<div class="selectors">
218218
<p class="inline">Артикулы:</p>

migrate.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import sqlite from 'aa-sqlite'
2+
3+
(async () => {
4+
5+
await sqlite.open('./main.db')
6+
console.log('Connect to DB')
7+
8+
await sqlite.push(`
9+
CREATE TABLE product_stats (
10+
product_id INTEGER,
11+
timestamp DATE DEFAULT (CURRENT_TIMESTAMP),
12+
data TEXT,
13+
image TEXT
14+
);`
15+
)
16+
console.log('Created table product_stats')
17+
18+
console.log('Migration [DONE]')
19+
})()

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "wbtracker",
33
"type": "module",
4-
"version": "0.0.3",
4+
"version": "0.0.4a",
55
"description": "Wildberries search positions tracker",
66
"main": "index.js",
77
"scripts": {
88
"postinstall": "node install.js",
99
"scan": "node --no-deprecation fetcher.js",
10-
"watch": "node --no-deprecation viewer.js"
10+
"watch": "node --no-deprecation viewer.js",
11+
"migrate": "node --no-deprecation migrate.js"
1112
},
1213
"repository": {
1314
"type": "git",

0 commit comments

Comments
 (0)