提交 a12813c3 编写于 作者: 6 62e00738167f7e3ed361db3c

preview.yml 更新

上级 6706bee2
.sass-cache/
node_modules
package-lock.json
.cache
......@@ -4,6 +4,7 @@
"description": "JavaScript Snake<br/> By Patrick Gillespie<br/> License: MIT<br/> http://patorjk.com/games/snake",
"main": "index.html",
"scripts": {
"dev": "live-server .",
"start": "parcel index.html --open",
"build": "parcel build index.html",
"test": "echo \"Error: no test specified\" && exit 1"
......@@ -20,6 +21,7 @@
"homepage": "https://github.com/patorjk/JavaScript-Snake#readme",
"dependencies": {},
"devDependencies": {
"parcel-bundler": "^1.6.1"
"parcel-bundler": "^1.6.1",
"live-server": "^1.2.2"
}
}
......@@ -2,9 +2,10 @@
autoOpen: false # 打开工作空间时是否自动开启所有应用的预览
apps:
- port: 5500 # 应用的端口
# run: npm i && npm run dev # 应用的启动命
run: npm i && npm run dev # 应用的启动命
command: # 使用此命令启动服务,且不执行run
root: ./ # 应用的启动目录
name: 2048 # 应用名称
root: ./JavaScript-Snake # 应用的启动目录
name: Snake # 应用名称
description: 我的第一个 App。 # 应用描述
autoOpen: true # 打开工作空间时是否自动开启预览(优先级高于根级 autoOpen
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册