Skip to content

Commit

Permalink
wip: path resolution issue because of parcel
Browse files Browse the repository at this point in the history
  • Loading branch information
aalavandhaann committed Aug 15, 2020
1 parent afd8de9 commit 4a2d1f1
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 13 deletions.
13 changes: 12 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
"browser": true,
"es6": true
},
"settings": {
"import/resolver": {
"parcel": {
"rootDir": "./src/scripts/"
}
}
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
Expand Down Expand Up @@ -36,5 +43,9 @@
"no-unused-vars": [
"warn"
]
}
},
"overrides": [{
"files": ["./scripts/styles/*.css"],
"excludedFiles": "*.css"
}]
}
7 changes: 4 additions & 3 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<head>
<meta charset="UTF-8">
<title>Blueprint JS - Floorplan</title>
<script src="main.d2070829.js"></script></head>
<script src="app/main.d2070829.js"></script>
</head>

<body>
<div id="bp3d-js-app">
Expand All @@ -16,8 +17,8 @@
<div id="bp3djs-viewer2d"></div>
<div id="bp3djs-viewer3d"></div>
</div>
<link href="main.d2070829.css" rel="stylesheet">
<script src="src.e31bb0bc.js"></script>
<link href="app/main.d2070829.css" rel="stylesheet">
<script src="app/src.e31bb0bc.js"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion app/main.d2070829.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/main.d2070829.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/src.e31bb0bc.js
Original file line number Diff line number Diff line change
Expand Up @@ -107297,7 +107297,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "37799" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "45199" + '/');

ws.onmessage = function (event) {
checkedAssets = {};
Expand Down Expand Up @@ -107474,4 +107474,4 @@ function hmrAcceptRun(bundle, id) {
}
}
},{}]},{},["../node_modules/parcel-bundler/src/builtins/hmr-runtime.js","index.js"], null)
//# sourceMappingURL=src.e31bb0bc.js.map
//# sourceMappingURL=app/src.e31bb0bc.js.map
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "This is the core framework of Blueprint-js for creating floorplans in 2d and 3d",
"main": "src/scripts/blueprint.js",
"scripts": {
"app-dev": "parcel src/index.html -d app/ --no-cache --public-url ./",
"app-production": "parcel build src/index.html -d app/ --no-source-maps --no-cache --public-url ./",
"frameworkonly-dev": "parcel build src/scripts/blueprint.js --global BP3DJS --no-source-maps -d bin/ --target browser --out-file bp3djs.js --no-minify --no-cache",
"frameworkonly-production": "parcel build src/scripts/blueprint.js --global BP3DJS --no-source-maps -d bin/ --target browser --out-file bp3djs.js --no-cache",
"app-dev": "parcel src/index.html -d app/ --public-url app/",
"app-production": "parcel build src/index.html -d app/ --no-source-maps --public-url ./",
"frameworkonly-dev": "parcel build src/scripts/blueprint.js --global BP3DJS --no-source-maps -d bin/ --target browser --out-file bp3djs.js --no-minify",
"frameworkonly-production": "parcel build src/scripts/blueprint.js --global BP3DJS --no-source-maps -d bin/ --target browser --out-file bp3djs.js",
"docs": "esdoc"
},
"repository": {
Expand Down

0 comments on commit 4a2d1f1

Please sign in to comment.