
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
grunt-tcms-upload1
Advanced tools
用于CMS静态文件发布
项目来源https://github.com/tabspace/grunt-tcms-upload
如果还未使用过 Grunt, 请参考: Getting Started。 这里介绍了如何创建一个 Gruntfile 以及如何安装和使用 Grunt 插件。 熟悉这个流程后,用这个命令安装插件:
npm install grunt-tcms-upload --save-dev
grunt.loadNpmTasks('grunt-tcms-upload');
批量上传文件到TCMS。
Type: String
上传到TCMS需要指定的 cookie 。
Type: String
指定发布路径 。
参考 Grunt 文件配置
examples
grunt.initConfig({
tcmsUpload : {
options : {
cookie : grunt.file.read('test/static/cookie.md')
},
test : {
src : ['**/*'],
cwd : 'test/files/',
uploadTo : '2011/tabliang/test/tempdir/'
}
}
});
执行 grunt tcmsUpload:test
后,local://test/files 目录下的所有文件会上传到 online://2011/tabliang/test/tempdir/ 。
用 cwd 指定本地根路径,用 src 指定需要追加到线上路径之后的相对路径。
TCMS 线上路径会被自动创建,例如本地文件: local://test/files/js/entry/main.js 会上传到: online://2011/tabliang/test/tempdir/js/entry/main.js 。
FAQs
For CMS static files upload.
We found that grunt-tcms-upload1 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.