Repository Access Links:

This URL has Read-Only access.
Statistics
| Branch: | Revision:

dolibarr-module-template / composer.json @ ef37f43f

History | View | Annotate | Download (2.8 kB)

1
{
2
  "name": "gpcsolutions/mymodule",
3
  "type": "dolibarr-module",
4
  "description": "A Dolibarr module template",
5
  "keywords": [
6
    "dolibarr",
7
    "template"
8
  ],
9
  "homepage": "https://github.com/gpcsolutions/dolibarr-module-template",
10
  "license": "GPL-3.0+",
11
  "support": {
12
    "issues": "https://github.com/gpcsolutions/dolibarr-module-template/issues"
13
  },
14
  "config": {
15
    "process-timeout": 3600,
16
    "bin-dir": "dev/bin"
17
  },
18
  "require": {
19
    "php": ">=5.3.0",
20
    "composer/installers": "^1",
21
    "erusev/parsedown": "^1",
22
    "enrise/urihelper": "^1"
23
  },
24
  "require-dev": {
25
    "jakub-onderka/php-parallel-lint": "^0",
26
    "jakub-onderka/php-console-highlighter": "^0",
27
    "phpunit/phpunit": "^4",
28
    "squizlabs/php_codesniffer": "^2",
29
    "phpunit/phpunit-selenium": "^2",
30
    "wimg/php-compatibility": "^7",
31
    "phpdocumentor/phpdocumentor": "^2"
32
  },
33
  "scripts": {
34
    "post-update-cmd": "@compat_workaround",
35
    "post-install-cmd": "@compat_workaround",
36
    "compat_workaround": "if [ -d \"vendor/wimg/php-compatibility\" ]; then\n rm -fr \"vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PHPCompatibility\"\n cp -a \"vendor/wimg/php-compatibility\" \"vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PHPCompatibility\"\n fi",
37
    "check": [
38
      "@check_lint",
39
      "@check_compat",
40
      "@check_style"
41
    ],
42
    "check_lint": "parallel-lint --exclude build --exclude doc --exclude vendor --blame .",
43
    "check_compat": "TRAVIS_PHP_VERSION=\"${TRAVIS_PHP_VERSION:=5.3-7.0}\"; phpcs -n -p -d memory_limit=-1 -d max_execution_time=-1 --colors --standard=PHPCompatibility --runtime-set testVersion $TRAVIS_PHP_VERSION --ignore=build/\\*,doc/\\*,vendor/\\* .",
44
    "check_style": "phpcs -s -n -p -d memory_limit=-1 -d max_execution_time=-1 --colors --tab-width=4 --encoding=utf-8 --standard=dev/codesniffer/DolibarrPSR2.xml  --ignore=build/\\*,doc/\\*,vendor/\\* .",
45
    "test": [
46
      "@test_unit",
47
      "@test_functional"
48
    ],
49
    "test_unit": "phpunit test/unit",
50
    "test_functional": "phpunit test/functional",
51
    "release": [
52
      "@check",
53
      "@test",
54
      "@tx_pull",
55
      "@composer update --no-dev",
56
      "@build",
57
      "@composer update"
58
    ],
59
    "build": "cd build; ./makepack-dolibarrmodule.pl",
60
    "tx_push": "tx push -s",
61
    "tx_pull": "tx pull -a",
62
    "git_hooks_install": "git config --add core.hooksPath dev/git-hooks",
63
    "git_hooks_remove": "git config --unset core.hooksPath",
64
    "git_pre_commit": "@check",
65
    "git_post_commit": "",
66
    "git_pre_push": [
67
      "@test",
68
      "@tx_push"
69
    ],
70
    "doc": [
71
      "@doc_dev",
72
      "@doc_user"
73
    ],
74
    "doc_dev" : [
75
      "@doc_dev_doxygen",
76
      "@doc_dev_phpdoc"
77
    ],
78
    "doc_dev_doxygen": "cd build/doxygen; doxygen mymodule.doxyfile",
79
    "doc_dev_phpdoc": "phpdoc",
80
    "doc_user": ""
81
  }
82
}