Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
Added composer
Browse files Browse the repository at this point in the history
Fixes #49
  • Loading branch information
rdoursenaud committed Feb 19, 2015
1 parent 55e1eff commit 2e8e8ad
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ docs/

### Compiled translations
*.mo

### CI target
dev/
47 changes: 35 additions & 12 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ module.exports = function (grunt) {
}
},
phpdocumentor: {
dist: {
options: {
ignore: 'node_modules'
}
main: {
// TODO: ignore dev, node_modules, release and vendor directories.
// Needs https://github.com/gomoob/grunt-phpdocumentor/pull/10 merged
}
},
clean: {
Expand All @@ -59,17 +58,23 @@ module.exports = function (grunt) {
main: {
src: [
'**',
'!node_modules/**',
'!release/**',
'!assets/**',
'!composer.json',
'!composer.lock',
'!CONTRIBUTING.md',
'!docs/**',
'!.git/**',
'!Gruntfile.js',
'!package.json',
'!.gitignore',
'!.gitmodules',
'!Gruntfile.js',
'!node_modules/**',
'!package.json',
'!README.md',
'!CONTRIBUTING.md',
'!docs/**',
'!assets/**'
'!release/**',
'!.sensiolabs.yml',
'!.travis.yml',
'!.tx',
'!vendor'
],
dest: 'release/<%= pkg.version %>/'
},
Expand Down Expand Up @@ -116,10 +121,28 @@ module.exports = function (grunt) {
version2: '<%= pkg.version %>',
compare: '=='
}
},
"sync-json": {
options: {
indent: 2,
include: [
'version',
'description',
'keywords',
'homepage',
'license',
]
},
composer: {
files: {
'composer.json': 'package.json'
}
}
}
});

grunt.registerTask('default', [
'sync-json',
'potupdate',
'test',
'wp_readme_to_markdown'
Expand All @@ -145,7 +168,7 @@ module.exports = function (grunt) {
]);

grunt.registerTask('docs', [
'phpdocumentor:dist'
'phpdocumentor'
]);

grunt.registerTask('release', [
Expand Down
47 changes: 47 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "gpcsolutions/doliwoo",
"description": "Integrate Dolibarr with a WooCommerce shop.",
"version": "0.0.2-alpha",
"type": "wordpress-plugin",
"keywords": [
"wordpress",
"dolibarr",
"woocommerce",
"ecommerce",
"erp",
"integration"
],
"homepage": "https://gpcsolutions.github.io/doliwoo",
"license": "GPL-3.0+",
"authors": [
{
"name": "GPC.solutions",
"email": "contact@gpcsolutions.fr",
"homepage": "https://gpcsolutions.fr"
}
],
"support": {
"issues": "https://github.com/GPCsolutions/doliwoo/issues",
"wiki": "https://github.com/GPCsolutions/doliwoo/wiki",
"source": "https://github.com/GPCsolutions/doliwoo"
},
"require": {
"composer/installers": ">=1.0.6",
"php": ">=5.3.0",
"ext-openssl": "*",
"wpackagist-plugin/woocommerce": ">=2.0.0"
},
"repositories": [
{
"type": "composer",
"url": "http://wpackagist.org"
}
],
"extra": {
"installer-paths": {
"dev/wordpress/wp-content/plugins/{$name}": [
"wpackagist-plugin/woocommerce"
]
}
}
}
136 changes: 136 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"grunt-phpdocumentor": "^0.4.1",
"grunt-phplint": "0.0.5",
"grunt-po2mo": "^0.1.2",
"grunt-sync-json": "^0.3.1",
"grunt-wp-i18n": "^0.5.0",
"grunt-wp-readme-to-markdown": "^0.8.0",
"load-grunt-tasks": "^3.1.0",
Expand Down

0 comments on commit 2e8e8ad

Please sign in to comment.