Arco CLI
A command-line interface tool for creating, developing and managing Arco materials.
How to start
npm run init
to set up environment.
lerna run dev
to enter dev mode.
Category: Node.js / Command-line utilities |
Watchers: 3 |
Star: 45 |
Fork: 11 |
Last update: Oct 31, 2021 |
A command-line interface tool for creating, developing and managing Arco materials.
npm run init
to set up environment.
lerna run dev
to enter dev mode.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
正常创建
看图
$ tsc && cp -rf src/scripts/changelog/template/ lib/scripts/changelog/template
Done in 14.02s.
lerna info run Ran npm script 'build' in '@arco-design/arco-cli-block' in 8.8s:
yarn run v1.22.10
$ tsc
Done in 8.33s.
lerna ERR! yarn run build exited 127 in '@arco-design/arco-components'
lerna ERR! yarn run build stdout:
yarn run v1.22.10
$ arco-scripts build:component:es && arco-scripts build:component:css
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run build stderr:
/bin/sh: arco-scripts: command not found
error Command failed with exit code 127.
lerna ERR! yarn run build exited 127 in '@arco-design/arco-components'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! @arco-design/[email protected] preRelease: `lerna run clean && lerna run build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the @arco-design/[email protected] preRelease script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/lambert/.npm/_logs/2021-10-28T14_13_21_057Z-debug.log
能够本地构建成功,并在本地debug
node -v: v12.22.1 yarn -v: 1.22.10
git clone npm run init npm run preRelease
Is your feature request related to a problem? Please describe. No.
Describe the solution you'd like
To support an existed storybook site quick convert to standard arco-material-doc-site
as a team site.
Describe alternatives you've considered No.
Additional context No.
这个不需要提供 Reproduction Link
我就瞎写了一个。
.gitignore 中有dist,package.json中有build脚本
| Changelog(CN) | Changelog(EN) | Related issues | | ------------- | ------------- | -------------- |
feature
branch and others should be submitted to master
branch)Describe the bug 新建vue 组件库物料项目安装后报如下错误 DeprecationWarning: Default PostCSS plugins are deprecated. When switching to '@storybook/addon-postcss', you will need to add your own plugins, such as 'postcss-flexbugs-fixes' and 'autoprefixer'.
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-default-postcss-plugins for details.
(Use node --trace-deprecation ...
to show where the warning was created)
0% compilingERR! TypeError: Cannot read properties of undefined (reading 'get')
To Reproduce Steps to reproduce the behavior:
Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Describe the bug PS C:\Users***\Desktop\study_vue\hello-arco-pro> arco init hello-arco-pro
___ ____ _
/ | ______________ / __ \___ _____(_)___ _____
/ /| | / ___/ ___/ __ \/ / / / _ \/ ___/ / __ `/ __ \
/ ___ |/ / / /__/ /_/ / /_/ / __(__ ) / /_/ / / / /
/_/ |_/_/ \___/\____/_____/\___/____/_/\__, /_/ /_/
/____/
v1.26.1
? 请选择你希望使用的技术栈 Vue ? 请选择所要创建项目的类型 Arco Pro 项目 ? 请选择 Arco Pro 模板 完整版(包含所有页面)
正在初始化项目于 C:\Users***\Desktop\study_vue\hello-arco-pro\hello-arco-pro
√ 获取项目模板成功
× 模板内容拷贝失败
Error: Failed to copy project content.
npm WARN config global --global
, --local
are deprecated. Use --location=global
instead.
at module.exports (C:\Users\***\.arco_template_cache\1655866434222\node_modules\arco-design-pro-vue\.arco-cli\init.js:25:13)
at C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\arco-cli-create-project\lib\index.js:129:23
at Generator.next (<anonymous>)
at fulfilled (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\arco-cli-create-project\lib\index.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: EBUSY: resource busy or locked, rmdir 'C:\Users***.arco_template_cache\1655866434222\node_modules\arco-design-pro-vue' node:fs:1180 return handleErrorFromBinding(ctx); ^
Error: EBUSY: resource busy or locked, rmdir 'C:\Users*.arco_template_cache\1655866434222\node_modules\arco-design-pro-vue'
at Object.rmdirSync (node:fs:1180:10)
at rmdirSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:264:13)
at rimrafSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:243:7)
at C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:279:39
at Array.forEach (
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
Describe the bug 如标题
To Reproduce
Steps to reproduce the behavior:
安装npm i arco-cli -g
初始化arco init yourProjectName
Expected behavior 能成功执行
Screenshots
Desktop (please complete the following information):
Other Content
虽然提示初始化完成,可以启动,但是执行npm run dev
也是报错
[email protected]
已经和 [email protected]~8
存在不兼容的情况,只能将两者的版本写死;less
版本无法平稳升级到 ~4
;arco-scripts
的大版本。--
这样就不用有个临时目录了,看着难受
see https://github.com/webpack/webpack/issues/6437#issuecomment-874358637
https://github.com/arco-design/arco-cli/blob/main/packages/arco-cli-auth/src/login.ts#L66
N/A
When arco login
or arco env --switch
on a remote machine, the post-login redirection to http://localhost:3333/login_result is impossible to succeed since arco login
is listening on a remote devbox instead of localhost.
Suggested solution: Grab all IP addresses of the os and prompt user with selection or manual input
ts-loader
.arco publish
fails to execute due to the failure to fetch the Git remote repository.arco group --link
command to link accounts to a specified group.category
alternatives when initing project, and allow custom inputs.arco generate
, if arco Meta.json
exists, the check of arcoMeta
field in package.json
should be skipped.styleConfig.hook.beforeCompile/afterCompile
not specify.config.hook.beforeCompile/afterCompile
configuration for style build to customize the behavior before/after style files compilation.include
field through tsconfig.json
.child_process.spawnSync
on Windows platform.child_process.spawn
to replace spawnSync/execSync
methods to avoid UI blocking caused by sync methods.