grunt-php:启动一个PHP服务器

时间:2024-05-03 03:36:00
【文件属性】:

文件名称:grunt-php:启动一个PHP服务器

文件大小:10KB

文件格式:ZIP

更新时间:2024-05-03 03:36:00

nodejs php grunt webserver npm-package

grunt-php 启动一个 对于开发PHP项目或在其上运行测试很有用。 除了middleware选项外,几乎可以替代 。 使用PHP内置服务器。 安装 $ npm install --save-dev grunt-php 用法 require ( 'load-grunt-tasks' ) ( grunt ) ; grunt . initConfig ( { php : { dist : { options : { port : 5000 } } } } ) ; grunt . registerTask ( 'default' , [ 'php' ] ) ; 例子 启动一个持久PHP服务器并在浏览器中打开 grunt . initConfig ( { php : { test : { options : { keepAlive :


【文件预览】:
grunt-php-main
----.gitignore(23B)
----gruntfile.js(2KB)
----package.json(756B)
----.npmrc(19B)
----.github()
--------workflows()
--------funding.yml(91B)
----license(1KB)
----readme.md(3KB)
----.gitattributes(19B)
----test()
--------200()
--------test.js(1KB)
--------env()
--------directives()
--------400()
--------404()
--------browsersync()
--------301()
--------500()
----tasks()
--------php.js(567B)
----.editorconfig(175B)

网友评论