gpt4 book ai didi

javascript - Dojo 构建最终会出现警告,但为什么呢?

转载 作者:行者123 更新时间:2023-12-03 06:08:38 26 4
gpt4 key购买 nike

我是 dojo 的新手,我正在尝试学习如何使用 dojo 版本 1.11.2 中提供的实用程序构建应用程序。我推荐了这个教程Creating builds - Dojo Toolkit Tutorial然后自己尝试一下。

我有这样的结构: Structure of my project

我的 app.profile.js 如下所示:

var profile = (function(){
return {
basePath: "./src",
releaseDir: "../../app",
releaseName: "dev",
action: "release",
layerOptimize: "closure",
optimize: "closure",
cssOptimize: "comments",
mini: true,
stripConsole: "warn",
selectorEngine: "lite",

defaultConfig: {
hasCache:{
"dojo-built": 1,
"dojo-loader": 1,
"dom": 1,
"host-browser": 1,
"config-selectorEngine": "lite"
},
async: 1
},

staticHasFeatures: {
"config-deferredInstrumentation": 0,
"config-dojo-loader-catches": 0,
"config-tlmSiblingOfDojo": 0,
"dojo-amd-factory-scan": 0,
"dojo-combo-api": 0,
"dojo-config-api": 1,
"dojo-config-require": 0,
"dojo-debug-messages": 0,
"dojo-dom-ready-api": 1,
"dojo-firebug": 0,
"dojo-guarantee-console": 1,
"dojo-has-api": 1,
"dojo-inject-api": 1,
"dojo-loader": 1,
"dojo-log-api": 0,
"dojo-modulePaths": 0,
"dojo-moduleUrl": 0,
"dojo-publish-privates": 0,
"dojo-requirejs-api": 0,
"dojo-sniff": 1,
"dojo-sync-loader": 0,
"dojo-test-sniff": 0,
"dojo-timeout-api": 0,
"dojo-trace-api": 0,
"dojo-undef-api": 0,
"dojo-v1x-i18n-Api": 1,
"dom": 1,
"host-browser": 1,
"extend-dojo": 1
},

packages:[{
name: "dojo",
location: "dojo"
},{
name: "dijit",
location: "dijit"
},{
name: "dojox",
location: "dojox"
},{
name: "app",
location: "app"
}],

layers: {
"dojo/dojo": {
include: [ "dojo/dojo", "dojo/i18n", "dojo/domReady",
"app/main", "app/run" ],
customBase: true,
boot: true
},
"app/Dialog": {
include: [ "app/Dialog" ]
}
}
};
})();

我的 package.json 包含以下内容:

{
"name": "app",
"description": "carDealer",
"version": "1.0",
"keywords": ["JavaScript", "Dojo", "Toolkit", "DojoX"],
"maintainers": [{
"name": "XY"
}],
"contributors": [{
"name": "XY"
}],
"licenses": [{
"type": "AFLv2.1",
"url": "http://bugs.dojotoolkit.org/browser/dojox/trunk/LICENSE#L43"
},{
"type": "BSD",
"url": "http://bugs.dojotoolkit.org/browser/dojox/trunk/LICENSE#L13"
}],
"bugs": "https://github.com/example/issues",
"repositories": [{
"type": "git",
"url": "http://github.com/example.git",
"path": "packages/app"
}],
"dependencies": {
"dojo": "~1.10.4",
"dijit": "~1.10.4",
"dojox": "~1.10.4"
},
"main": "src",
"homepage": "http://not-set-yet.com/",
"dojoBuild": "app.profile.js"
}

我总是尝试在 Windows 操作系统的 Powershell 中使用给定的 build.bat 进行测试构建,但收到此失败消息和警告:

enter image description here

如果您有任何建议,请告诉我。我讨厌这种配置的东西。想要开始黑客攻击。提前致谢。

最诚挚的问候。

最佳答案

您的app.profile.js位于carDealerBackend/src。在配置文件中定义basePath: "./src"。因此它会在 carDealerBackend/src/src 中搜索。

尝试将 basePath 更改为 "."

关于javascript - Dojo 构建最终会出现警告,但为什么呢?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39423477/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com