Skip to content

Commit

Permalink
refactor(move): move src/config/ to config/
Browse files Browse the repository at this point in the history
  • Loading branch information
yyc-git committed Mar 3, 2019
1 parent 9be2dee commit 721858d
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .cz-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ module.exports = {
{ name: "coverage" }
],
refactor: [
{ name: "move" },
{ name: "rename" },
{ name: "duplicate" },
{ name: "dead-code" },
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ var filesToCache = [
'./index.html',
'./manifest.json',
'./dist/index.min.js',
'./src/config/engine/render/shader/shader_libs.json',
'./src/config/engine/render/shader/shaders.json',
'./src/config/engine/no_worker/pipeline/loop_pipelines.json',
'./src/config/engine/no_worker/pipeline/init_pipelines.json',
'./src/config/engine/no_worker/job/loop_jobs.json',
'./src/config/engine/no_worker/job/init_jobs.json',
'./src/config/engine/setting.json',
'./src/config/editor/setting.json',
'./src/config/engine/no_worker/setting/setting.json',
'./config/engine/render/shader/shader_libs.json',
'./config/engine/render/shader/shaders.json',
'./config/engine/no_worker/pipeline/loop_pipelines.json',
'./config/engine/no_worker/pipeline/init_pipelines.json',
'./config/engine/no_worker/job/loop_jobs.json',
'./config/engine/no_worker/job/init_jobs.json',
'./config/engine/setting.json',
'./config/editor/setting.json',
'./config/engine/no_worker/setting/setting.json',
'./public/font/empty.png',
'./public/font/empty.fnt',
'./public/logo/favicon.ico',
Expand Down
6 changes: 3 additions & 3 deletions src/core/utils/engine/MainUtils.re
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
open Js.Promise;

let _getLoadData = () => {
let engineConfigDir = "./src/config/engine/";
let engineConfigDir = "./config/engine/";

AssetEngineService.loadConfig(
[|"./src/config/engine/setting.json", engineConfigDir|],
[|"./config/engine/setting.json", engineConfigDir|],
StateDataEngineService.getEngineStateData(),
);
};
Expand Down Expand Up @@ -114,7 +114,7 @@ let init = () =>
();
})
|> WonderBsMost.Most.flatMap(engineState =>
Fetch.fetch("./src/config/editor/setting.json")
Fetch.fetch("./config/editor/setting.json")
|> then_(response =>
response
|> Fetch.Response.json
Expand Down

0 comments on commit 721858d

Please sign in to comment.