Skip to content

Commit 78810a4

Browse files
committed
dist -> root
1 parent 86cd33c commit 78810a4

File tree

6 files changed

+13
-15
lines changed

6 files changed

+13
-15
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
/test/ export-ignore
7+
webpack.config.js export-ignore
78

89

910
.editorconfig export-ignore

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ yarn-debug.log*
66
yarn-error.log*
77

88
/asset/*.js
9-
#package-lock.json
109
/dist/
11-
lib.js
10+
*.js
11+
!webpack.config.js
1212

1313

1414
# Runtime data

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
> web
1111
1212
```html
13-
<script src="https://unpkg.com/myanmar-notation@latest/lib.js"></script>
13+
<script src="https://unpkg.com/myanmar-notation@latest/min.js"></script>
1414
```
1515

1616
> Node.js
@@ -20,15 +20,15 @@ Install `npm i myanmar-notation` then require...
2020
```js
2121
let notation = require('myanmar-notation');
2222
```
23-
... and get the result returned as Object if there is a sense in get query, otherwise Boolean (`false`) return.
23+
... and get the result returned as Object if there is a sense in get query, otherwise empty Object (`{}`) return.
2424

2525
- [x] Return formatted Numeric
2626
- [x] Decimals are rounded (floor)
2727
- [x] Query `get(2700)`, `get('၂၇၀၀')`, `get('27,000,000.00')` is flexible
2828
- [x] Convert into Typescript
2929
- [x] mocha
3030
- [x] Auto-load
31-
- [x] webpack: `https://unpkg.com/myanmar-notation@latest/lib.js`
31+
- [x] webpack: `https://unpkg.com/myanmar-notation@latest/min.js`
3232

3333
```js
3434
notation.get('2700');
@@ -71,7 +71,6 @@ notation.get('27,000,000.00');
7171
}
7272
```
7373

74-
> Note
7574
[![License: MIT][license]][license-url]
7675

7776
[test-mocha]: https://img.shields.io/badge/test-mocha-green.svg?longCache=true

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"name": "myanmar-notation",
3-
"version": "1.3.2",
3+
"version": "1.3.3",
44
"description": "get Myanmar digital and notation",
5-
"main": "dist/index.js",
6-
"types": "dist/index.d.ts",
5+
"main": "index.js",
76
"scripts": {
87
"test": "mocha -r ts-node/register test/index.spec.ts",
98
"test:js": "node test/test",
109
"build:node": "tsc",
11-
"build:lib": "webpack",
12-
"build": "npm run build:lib && npm run build:node"
10+
"build:web": "webpack",
11+
"build": "npm run build:web && npm run build:node"
1312
},
1413
"repository": {
1514
"type": "git",
@@ -26,8 +25,7 @@
2625
"url": "https://github.com/khensolomon/myanmar-notation/issues"
2726
},
2827
"files":[
29-
"dist/*",
30-
"lib.js"
28+
"*.js"
3129
],
3230
"author": "Khen Solomon Lethil",
3331
"license": "MIT",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "es5",
44
"module": "commonjs",
5-
"outDir": "dist",
5+
"outDir": "./",
66
"strict": true,
77
"esModuleInterop": true,
88
"declaration": false

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const clientConfig = {
2020
},
2121
output: {
2222
// filename: 'myanmar-[name].min.js',
23-
filename: 'lib.js',
23+
filename: 'min.js',
2424
path: path.resolve(__dirname),
2525
library: 'myanmarNotation',
2626
libraryTarget: 'window'

0 commit comments

Comments
 (0)