Skip to content

Commit 08bf2e2

Browse files
committed
Merge branch '02-languages/update-playgrounds'
2 parents 0cb8af8 + b50fb89 commit 08bf2e2

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

02-languages/04-playgrounds/01-playground-javascript/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@
2525
"url": "git+https://github.com/Lemoncode/master-frontend-lemoncode.git"
2626
},
2727
"scripts": {
28-
"start": "lite-server -c bs-config.json"
28+
"start": "browser-sync start -c bs-config.json"
2929
},
3030
"dependencies": {
31-
"lite-server": "^2.x"
32-
},
33-
"peerDependencies": {},
34-
"devDependencies": {}
35-
}
31+
"browser-sync": "^2.29.3"
32+
}
33+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
console.log("This is your playground, experiment with JS code and check the console");
1+
console.log("This is your playground, experiment with JS code and check the console");

02-languages/04-playgrounds/02-playground-typescript/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ package-lock.json
1515
# Output artifacts
1616
build/
1717
transpiled/
18+
.tsbuildinfo

02-languages/04-playgrounds/02-playground-typescript/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@
2525
"url": "git+https://github.com/Lemoncode/master-frontend-lemoncode.git"
2626
},
2727
"scripts": {
28-
"start": "npm run copy && run-p transpile devserver",
28+
"prestart": "npm run transpile && npm run copy",
29+
"start": "concurrently \"npm:transpile -- -w\" npm:devserver",
2930
"copy": "copyfiles --flat src/**/*.{html,css} transpiled",
30-
"transpile": "tsc --watch",
31-
"devserver": "lite-server -c bs-config.json"
31+
"transpile": "tsc",
32+
"devserver": "browser-sync start -c bs-config.json"
3233
},
3334
"dependencies": {
34-
"lite-server": "^2.x"
35+
"browser-sync": "^2.29.3"
3536
},
36-
"peerDependencies": {},
3737
"devDependencies": {
38+
"concurrently": "latest",
3839
"copyfiles": "^2.x",
39-
"npm-run-all": "^4.x",
4040
"typescript": "latest"
4141
}
42-
}
42+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
console.log("This is your playground, experiment with TS code and check the console");
1+
console.log("This is your playground, experiment with TS code and check the console");

02-languages/04-playgrounds/02-playground-typescript/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
"compileOnSave": true,
1010
"exclude": ["node_modules"],
1111
"include": ["src"]
12-
}
12+
}

02-languages/04-playgrounds/03-playground-ejercicios/bs-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"port": 3001,
33
"files": ["./transpiled/**/*.{html,htm,css,js}"],
44
"server": { "baseDir": "./transpiled" }
5-
}
5+
}

02-languages/04-playgrounds/03-playground-ejercicios/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,19 @@
2525
"url": "git+https://github.com/Lemoncode/master-frontend-lemoncode.git"
2626
},
2727
"scripts": {
28-
"start": "npm run copy && run-p transpile devserver",
28+
"prestart": "npm run transpile && npm run copy",
29+
"start": "concurrently \"npm:transpile -- -w\" npm:devserver",
2930
"copy": "copyfiles --flat src/**/*.{html,css} transpiled",
30-
"transpile": "tsc -w",
31-
"devserver": "lite-server -c bs-config.json"
31+
"transpile": "tsc",
32+
"devserver": "browser-sync start -c bs-config.json"
3233
},
3334
"dependencies": {
34-
"lite-server": "^2.x"
35+
"browser-sync": "^2.29.3"
3536
},
3637
"peerDependencies": {},
3738
"devDependencies": {
39+
"concurrently": "latest",
3840
"copyfiles": "^2.x",
39-
"npm-run-all": "^4.x",
4041
"typescript": "latest"
4142
}
42-
}
43+
}

0 commit comments

Comments
 (0)