Tensorflow JS 개발환경 - penny4860/study-note GitHub Wiki

1. 다른 프로젝트를 가져와서 실행하기

  1. 설정파일 복사
    • .babelrc
    • package.json
  2. project-root> yarn
    • node_modules 디렉토리 생성
    • yarn.lock 생성
  3. 실행 : yarn watch
    • dist 디렉토리 생성
    • 로컬 서버에서 웹앱이 실행

2. vscode 설정

{
    "search.exclude": {
      "**/node_modules": true,
      "dist/": true,
      "**/yarn.lock": true
    },
    "files.trimTrailingWhitespace": true,
    "editor.tabSize": 4,
    "editor.insertSpaces": true,
    "[javascript]": {
      "editor.formatOnSave": true
    },
    "clang-format.style": "Google",
    "files.insertFinalNewline": true,
    "editor.detectIndentation": false,
    "editor.wrappingIndent": "none",
    "clang-format.executable": "node_modules/.bin/clang-format"
  }