Skip to content

Commit ed6b5d3

Browse files
committed
switching to typescript; tag 0.0.3
1 parent 5b22ab7 commit ed6b5d3

File tree

11 files changed

+707
-947
lines changed

11 files changed

+707
-947
lines changed

.github/workflows/npm-publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v2
1313
with:
14-
node-version: 12
14+
node-version: 14
1515
registry-url: https://registry.npmjs.org/
1616

1717
- run: yarn && yarn compile

.github/workflows/upload.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
restore-keys: |
2828
${{ runner.os }}-yarn-
2929
30-
- run: yarn && yarn release
30+
- run: yarn && yarn vite build --base=./
3131
name: Build web assets
3232

3333
- name: Deploy to server

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<textarea id="paper" placeholder="start coding"></textarea>
1717
</div>
1818

19-
<script type="module" src="./lib/main.js" ></script>
19+
<script type="module" src="./src/main" ></script>
2020

2121
</body>
2222

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "@mvc-works/codearea",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "Web app scaffold based on Webpack",
55
"main": "lib/codearea.js",
66
"scripts": {
7-
"watch": "coffee -bcw -o lib src/*",
8-
"compile": "coffee -bc -o lib src/*",
7+
"compile": "yarn tsc --outDir lib/",
98
"release": "yarn compile && vite build --base=./"
109
},
1110
"author": "jiyinyiyong",
@@ -14,10 +13,8 @@
1413
"workflow"
1514
],
1615
"devDependencies": {
17-
"coffeescript": "^2.5.1",
18-
"rollup-plugin-coffee-script": "^2.0.0",
19-
"vite": "^2.5.8",
20-
"vite-plugin-coffee": "^2.2.1"
16+
"typescript": "^4.4.3",
17+
"vite": "^2.5.8"
2118
},
2219
"dependencies": {},
2320
"repository": {

0 commit comments

Comments
 (0)