Browse Source

.gitignore & Website README updated

Nikita Krupin 3 năm trước cách đây
mục cha
commit
0670730d86
2 tập tin đã thay đổi với 38 bổ sung5 xóa
  1. 22 5
      .gitignore
  2. 16 0
      Website/README.md

+ 22 - 5
.gitignore

@@ -1,12 +1,29 @@
-*.idea
-*Backend
 *cert
+*Backend
 .DS_Store
-StaticSite/.editorconfig
-StaticSite/package-lock.json
 
+# Website node modules and build output
+Website/package-lock.json
+Website/.editorconfig
 Website/node_modules
 Website/.nuxt
-Website/.editorconfig
 Website/dist/
 Website/_nuxt
+
+# local env files
+.env.local
+.env.*.local
+
+# Log files
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw*

+ 16 - 0
Website/README.md

@@ -9,6 +9,9 @@ $ npm install
 # serve with hot reload at localhost:3000
 $ npm run dev
 
+# lint your changes
+$ npm run lint
+
 # build for production and launch server
 $ npm run build
 $ npm run start
@@ -19,6 +22,19 @@ $ npm run generate
 
 For detailed explanation on how things work, check out the [documentation](https://nuxtjs.org).
 
+## Recommended VSCode Setup
+ - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) `ext install dbaeumer.vscode-eslint`
+ - [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) `ext install esbenp.prettier-vscode`
+ - [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur)
+
+>`Ctrl(Cmd)` + `Shift` + `P` > Open Settings (JSON)
+```
+"[vue]": {
+    "editor.defaultFormatter": "esbenp.prettier-vscode"
+},
+"editor.formatOnSave": true,
+```
+
 ## Special Directories
 
 You can create the following extra directories, some of which have special behaviors. Only `pages` is required; you can delete them if you don't want to use their functionality.