Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec12c62

Browse files
committed
resolve build issue
1 parent90c054b commitec12c62

File tree

10 files changed

+101
-14
lines changed

10 files changed

+101
-14
lines changed

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"scripts": {
2727
"vscode:prepublish":"npm run build",
2828
"machine":"node ./out/state/index.js",
29-
"build":"concurrently\"npm run build:ext\"\"npm run build:web\"",
29+
"build":"rm -rf build &&concurrently\"npm run build:ext\"\"npm run build:web\"",
3030
"build:ext":"npm run compile",
3131
"build:web":"cd web-app && npm run build",
3232
"compile":"tsc -p ./",

‎src/editor/commands/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export const createCommands = ({ context, machine, storage, git, position }: Cre
8585
webview.postMessage({type:'SET_DATA', payload})
8686
},
8787
[COMMANDS.RECEIVE_ACTION]:(action:string|CR.Action)=>{
88-
console.log('onReceiveAction',action)
8988
machine.send(action)
9089
}
9190
})

‎src/services/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import*asCRfrom'typings'
22

33
// temporary tutorials
4-
importbasicTutorialfrom'tutorials/basic'
4+
importbasicTutorialfrom'../../tutorials/basic'
55

66
interfaceOptions{
77
resource:string

‎src/state/context/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
importbasicTutorialDatafrom'tutorials/basic'
1+
importbasicTutorialDatafrom'../../tutorials/basic'
22
import*asCRfrom'typings'
33

44
consttutorialContext:CR.MachineContext={
File renamed without changes.

‎tsconfig.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dom"
99
],
1010
"sourceMap":true,
11-
"rootDirs":["src","tutorials"],
11+
"rootDir":"src",
1212
"baseUrl":"src",
1313
"strict":true,/* enable all strict type-checking options*/
1414
/* Additional Checks*/
@@ -22,10 +22,7 @@
2222
"experimentalDecorators":true,
2323
"emitDecoratorMetadata":true,
2424
"paths": {
25-
"typings": ["../typings/index.d.ts"],
26-
"tutorials/basic": [
27-
"../tutorials/basic.ts"
28-
]
25+
"typings": ["../typings/index.d.ts"]
2926
},
3027
},
3128
"exclude": [

‎web-app/src/containers/New/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface Props {
1010

1111
exportconstNewPage=(props:Props)=>{
1212
const{ state}=React.useContext(DataContext)
13-
const[tutorialList,setTutorialList]=React.useState([{id:'1',title:'Demo',description:'A basic demo'}])
13+
const[tutorialList]=React.useState([{id:'1',title:'Demo',description:'A basic demo'}])
1414
// context
1515
return(
1616
<div>

‎web-app/src/services/api/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import*asCRfrom'typings'
22

33
// temporary tutorials
4-
importbasicTutorialfrom'tutorials/basic'
4+
importbasicTutorialfrom'../../tutorials/basic'
55

66
interfaceOptions{
77
resource:string

‎web-app/src/tutorials/basic.ts

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
import*asCRfrom'typings'
2+
3+
constbasic:CR.Tutorial={
4+
id:'tutorialId',
5+
meta:{
6+
version:'0.1.0',
7+
repo:'https://github.com/ShMcK/coderoad-tutorial-basic.git',
8+
createdBy:'shmck',
9+
createdAt:'Sat, 11 May 2019 18:25:24 GMT',
10+
updatedBy:'shmck',
11+
updatedAt:'Sat, 11 May 2019 18:25:24 GMT',
12+
contributors:['shmck'],
13+
languages:['javascript'],
14+
testRunner:'jest',
15+
},
16+
data:{
17+
summary:{
18+
title:'Basic Test',
19+
description:'A basic coding skills example',
20+
levelList:['level1Id'],
21+
},
22+
levels:{
23+
level1Id:{
24+
stageList:['stage1Id'],
25+
content:{
26+
title:'Sum Level',
27+
text:'A description of this stage',
28+
},
29+
},
30+
},
31+
stages:{
32+
stage1Id:{
33+
stepList:['step1Id','step2Id','step3Id'],
34+
content:{
35+
title:'Sum Stage',
36+
text:'A description of this stage',
37+
},
38+
},
39+
},
40+
steps:{
41+
step1Id:{
42+
content:{
43+
title:'Sum',
44+
text:'Write a function that adds two numbers together',
45+
},
46+
actions:{
47+
setup:{
48+
commits:['430500f','8383061'],
49+
commands:['npm install'],
50+
files:['src/sum.js'],
51+
},
52+
solution:{
53+
commits:['abbe136'],
54+
},
55+
},
56+
hints:[],
57+
},
58+
step2Id:{
59+
content:{
60+
title:'Multiply',
61+
text:'Write a function that multiplies two numbers together',
62+
},
63+
actions:{
64+
setup:{
65+
commits:['9cbb518'],
66+
files:['src/multiply.js'],
67+
},
68+
solution:{
69+
commits:['5ae011f'],
70+
},
71+
},
72+
hints:[],
73+
},
74+
step3Id:{
75+
content:{
76+
title:'Divide',
77+
text:'Write a function that divides',
78+
},
79+
actions:{
80+
setup:{
81+
commits:['70c774c'],
82+
files:['src/divide.js'],
83+
},
84+
solution:{
85+
commits:['3180bed'],
86+
},
87+
},
88+
hints:[],
89+
},
90+
},
91+
},
92+
}
93+
94+
exportdefaultbasic

‎web-app/tsconfig.paths.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
"paths": {
99
"typings": [
1010
"../../typings/index.d.ts"
11-
],
12-
"tutorials/basic": [
13-
"../../tutorials/basic.ts"
1411
]
1512
}
1613
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp