alibaba / dawn Goto Github PK
View Code? Open in Web Editor NEW:sunrise: Dawn is a lightweight task management and build tool for front-end and nodejs.
Home Page: https://alibaba.github.io/dawn/
License: MIT License
:sunrise: Dawn is a lightweight task management and build tool for front-end and nodejs.
Home Page: https://alibaba.github.io/dawn/
License: MIT License
我更新了自己远端的Web Server . 添加了新的 template, 并提交了代码
但是使用 dn template 时依旧是老的配置. 如何主动触发更新? dn u 貌似不行
reademe里面的文档链接异常
文档的链接挂掉了,点击之后404
点击readme里面的文档相关链接
OS & version | Node version | Dawn version |
---|---|---|
your-version | your-version | your-version |
Describe your problems in as much detail as possible
The steps of problem recurrence
OS & version | Node version | Dawn version |
---|---|---|
your-version | your-version | your-version |
Describe your problems in as much detail as possible
The steps of problem recurrence
Docz middleware and Dawn document framework @xdlrt
dawn的自动更新用的是browserSync,为什么不用HMR呢?
[email protected], [email protected]
执行rm,一直在load依赖关系,没法删除。
能否将Node8的特性编译到Node4环境?
OS & version | Node version | Dawn version |
---|---|---|
mac 10.13 | 9.3.0 | 0.9.2 |
DeprecationWarning: Calling an asynchronous function without callback is deprecated
UI: http://localhost:5001
[Browsersync] Watching files...
(node:84861) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.
我想通过dll把打包共用模块,并且用npm包管理起来相应的版本,这时候cnpm安装的把不知道为什么在dll引入依赖的时候无法找到正确的依赖,但是npm和yarn就不存在这样的问题?
没搞明白怎么运行这个项目后就能看所有的封装后的对应的例子吗
OS & version | Node version | Dawn version |
---|---|---|
your-version | your-version | your-version |
Describe your problems in as much detail as possible
The steps of problem recurrence
OS & version | Node version | Dawn version |
---|---|---|
macOS 10.13.5 | v8.11.1 | 0.12.1 |
https://alibaba.github.io/dawn/docs/#!/zh/middleware/dev-server
配置代理部分
请求到 /api/xxx 现在会被代理到请求 https://www.aliyun.com/api/xxx
应该改为
请求到 /api/xxx 现在会被代理到请求 https://www.aliyun.com/xxx
参照 https://github.com/nokitjs/nokit-filter-proxy/blob/master/README.md
无
我本地装的node是v6.11.x,即LTS的版本。。
然后要跑这个工具,必须用nvm。。
想了解的是,只是生成模板代码用到了v7,跑代码(即服务启动,打包)不需要v7,还是说都要v7?
OS & version | Node version | Dawn version |
---|---|---|
your-version | your-version | your-version |
Describe your problems in as much detail as possible
The steps of problem recurrence
OS & version | Node version | Dawn version |
---|---|---|
your-version | your-version | your-version |
0.12.0 |
Describe your problems in as much detail as possible
我在开发环境写的一行css代码 -webkit-box-orient:vertical;
在build后,这行代码没了,这算是bug吗?
The steps of problem recurrence
OS & version | Node version | Dawn version |
---|---|---|
macOS 10.13.5 | v8.11.1 | 0.12.1 |
if (!opts.watch) {
if (opts.env) {
wpConfig.plugins.push(new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify(opts.env)//production
}
}));
}
目前配置env的时候,就不能设置watch为true,开发过程就无法热重载了
无
1.8.5
Babel version is old, how to upgrade it
OS & version | Node version | Dawn version |
---|---|---|
your-version | your-version | your-version |
Describe your problems in as much detail as possible
The steps of problem recurrence
Describe your problems in as much detail as possible
我尝试使用在项目里自定义middleware
,参考文档如下:
执行 dn run demo,控制台将会执次打印 1 2 3,每个中间件的配置选项有两个「保留的名称」
name: 用于指定中间件 package 名称,可以是完整的名称 dn-middleware-xxx 也可以是省略前缀的 xxx
location: 用于指定中间件入口文件的位置,一般用于本地调试,或内置在模板中不想独立发布的中间件
于是我写出如下配置
demo:
- location: ./middleware/webpack-ssr
执行后提示报错
[18:43:34] Invalid pipeline config
后来我尝试将location
改成name
demo:
- name: ./middleware/webpack-ssr
随后便可以了
这里的文档描述可以再详细一点,具体讲解下自定义middleware
的过程 :)
目前有基础架构都很成熟了,但是我从本github中看不出这个项目的特色,或者说优势在哪?
dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用dn 0.15 是不是和0.12 不兼容,我把dn 升级到0.15后,我的项目dn无法使用
OS & version | Node version | Dawn version |
---|---|---|
your-version | your-version | your-version |
Describe your problems in as much detail as possible
The steps of problem recurrence
when i build execute the command dn init
, i get the error response as blow :
/usr/local/lib/node_modules/dawn/node_modules/[email protected]@console3/lib/index.js:39
let self = this;
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:413:25)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/usr/local/lib/node_modules/dawn/bin/cli.js:8:17)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
配置中心服务出错
我配置了自己的 tmplate.yml .在之行 tmplate 是出错了. 如上图, 请问什么问题?
tmplate 路径:
https://github.com/ofo-hooper/ofo-dawn/blob/master/template.yml
使用copy中间件:
- name: copy
files:
./build/lib/(0).js: ./lib/*.js
结果如下:
copy: D:\tests\three\lib\three.min.js -> D:\tests\three\build\lib\three.js
其中min不见了?
如果已经打算后期支持,那我就不准备着手开发了
if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\...
.\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp: deps\winpty\winpty.gyp not found (cwd: C:\Users\Administrator\AppData\Roaming\npm\node_modules\dawn\node_modules\pty.js) while loading dependencies of binding.gyp while trying to lo
ad binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Administrator\AppData\Roaming\npm\node_modules\dawn\node_modules\pty.js
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\dawn\node_modules\pty.js):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
OS & version | Node version | Dawn version |
---|---|---|
win10 | v14.8.0 | 1.9.0 |
when i run dn init
, and then it was wrong.
运行dn init
,然后就报错了。
The steps of problem recurrence
> npm install dawn -g
> mkdir demo-dn
> cd demo-dn
> dn init
[19:01:43] The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.
Received type number (1605870103558)
OS & version | Node version | Dawn version |
---|---|---|
your-version | your-version | your-version |
0.12.0
Describe your problems in as much detail as possible
请问dawn运行的时候 很卡怎么处理?我的代码直接卡的不能写了,用dva是正常的,不会卡,可顺了.
可以做哪些方面的优化
The steps of problem recurrence
直接运行 dn dev
Redesign CI/CD usage, convert travis
to github actions
.
OS & version | Node version | Dawn version |
---|---|---|
your-version | your-version | your-version |
Describe your problems in as much detail as possible
The steps of problem recurrence
OS & version | Node version | Dawn version |
---|---|---|
your-version | your-version | your-version |
Describe your problems in as much detail as possible
The steps of problem recurrence
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.