클로주레스크립트와 리액트를 사용하여 구축된 단일 페이지 앱의 프로젝트 레이아웃[닫힘]

StackOverflow https://stackoverflow.com//questions/22000616

문제

나는 클로 유레 스크립트를 사용하여 단일 페이지 웹 응용 프로그램을 빌드하고(옴을 통해)반응하고 그러한 프로젝트에 대한 디렉토리 구조를 어떻게 배치 할 수 있는지 궁금합니다.프로젝트에 백엔드 코드가 포함되어 있지 않습니다.지금까지 나는 다음과 같은 레이아웃을 구상했다:

/[app name]
           /assets
                  /css
                  /js
                  /cljs
                  /...
           /src
                  /[module 1]
                             /view1.cljs
                             /view2.cljs
           /templates
                     /layouts/
                              layout1.html
                     /[module 1]/
                                 view1.html
                                 view2.html
           /test
                /[module 1]
                           /test_view1.cljs
                           /test_view2.cljs
           /doc
               /src
                   /index.rst
               /build
           README.md

[잡담][1]표준 레이아웃"이러한 프로젝트의 경우,레일,장고 등과 같은 프레임 워크에 의해 부과 된 레이아웃에 필적?

도움이 되었습니까?

해결책

좋아 보이지만 리소스/공개 및 인덱스가 있어야합니다.기타이 라이브러리는 그러한 문제를 표준화된 프로그래밍 인터페이스를 제공함으로써 해결합니다.

편집: 예제를 추가

/[app name]
  src/
    cljs/
      [app_name]/
        core.cljs
    clj/
  test/
  doc/
    index.srt
  resources/
    css/
      index.less
    templates/
      layouts/
        default.jade
      index.jade
    Gruntfile.js
    public/ ; Here grunt and cljsbuild will compile all the resources ->
      index.html
      js/
      cljs/
      css/
        index.css

서버는 다음을 가리킬 것입니다 resources/public/ 파일을 제공하려면

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top