to-spreadsheet 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/DEVELOPMENT.md ADDED
@@ -0,0 +1,24 @@
1
+ # Hi
2
+ I appreciate, that you want to help us grow. I think we can help you get started.
3
+
4
+ # No TS?
5
+ If you are only familiar with JS, I, Maifee Ul Asad, personally will help you learn TS. TS is awesome. We don't have to maintain another repo for typing or that `.d.ts` file separately.
6
+ We are trying to make the quality of the code higher.
7
+
8
+ # Files
9
+ ## Current organization
10
+ There is a few simple set of rules:
11
+ - If the file name is `index.ts` or `generate*ts`, maybe it contains some function that will be exported. And is responsible for generating at least more than one part of the spreadsheet.
12
+ - Else, it is already assigned to generate a specific part(to be a more specific file) of that spreadsheet.
13
+ ## Why we did do it?
14
+ So how/why these parts were defined? We simply took a simple excel(.xlsx) file and extracted it. And kept that file structure. Read more here: https://github.com/maifeeulasad/to-spreadsheet/discussions/1
15
+ ## How are we going to maintain it?
16
+ -
17
+
18
+ # Why it's a long way to go?
19
+ - Let's take a look at something, which is working (almost): https://github.com/maifeeulasad/to-spreadsheet/blob/7295c884dfbbc20ac9ec0c456a14535adb63928c/src/xl/worksheets/sheet1.xml.ts#L37-L50. Now this works, this generates sheet seamlessly. But the issue is it doesn't support any style, color, alignment, etc. There are many arguments for that, and we have to implement those.
20
+ - The other thing, they are completely missing. Say we have made, this line static: https://github.com/maifeeulasad/to-spreadsheet/blob/7295c884dfbbc20ac9ec0c456a14535adb63928c/src/generate-excel.ts#L21. But there can and will be more than one sheet, so we have to take care of these too.
21
+
22
+
23
+ **We are way too noob, in this, but we can achieve something great for sure.**
24
+ Thanks.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "to-spreadsheet",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "npm to package to create spreadsheet in node environment",
5
5
  "scripts": {
6
6
  "build": "npx tsc",
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {generateExcel} from "./generate-excel";
1
+ import { generateExcel } from "./generate-excel";
2
2
 
3
3
  let data = [
4
4
  [
@@ -39,4 +39,6 @@ let data = [
39
39
  ],
40
40
  ];
41
41
 
42
- generateExcel(data);
42
+ generateExcel(data);
43
+
44
+ export { generateExcel };