Socket
Book a DemoInstallSign in
Socket

grunt-tcms-upload1

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-tcms-upload1

For CMS static files upload.

0.1.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

grunt-tcms-upload

用于CMS静态文件发布

项目来源https://github.com/tabspace/grunt-tcms-upload

Getting Started

  • 这是一个 Grunt 插件,需求最低版本号: ~0.4.0

如果还未使用过 Grunt, 请参考: Getting Started。 这里介绍了如何创建一个 Gruntfile 以及如何安装和使用 Grunt 插件。 熟悉这个流程后,用这个命令安装插件:

npm install grunt-tcms-upload --save-dev
  • 插件安装完成后,在 Gruntfile 里面加上:
grunt.loadNpmTasks('grunt-tcms-upload');
  • 参考示例来配置文件.

tcmsUpload multitask

批量上传文件到TCMS。

Type: String

上传到TCMS需要指定的 cookie 。

options.uploadTo / uploadTo

Type: String

指定发布路径 。

src, cwd

参考 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 。

Release History

  • 2015-12-22 v0.1.1 文件上传完毕之后的提示信息输出线上路径。
  • 2015-12-04 v0.1.0 发布第一个正式版。

FAQs

Package last updated on 14 Jan 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.