Skip to content
Snippets Groups Projects
Commit 73d263f5 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Init

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #2273 failed
{
"presets": ["es2015", "stage-2", "react"]
}
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/
root = true
[*]
indent_style = space
indent_size = 4
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.yml]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
.git/ export-ignore
tests/ export-ignore
vendor/ export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.gitlab-ci.yml export-ignore
.idea export-ignore
apigen.neon export-ignore
phpcs.xml.dist export-ignore
phpunit-integration.xml export-ignore
phpunit-unit.xml export-ignore
/vendor/
.idea
composer.lock
variables:
DISABLE_CODECEPTION: 1
DISABLE_INTEGRATION_TESTS: 1
DISABLE_PHP_5_5: 1
IS_LIBRARY: 1
include: 'https://gitlab.com/wpdesk/gitlab-ci/raw/master/gitlab-ci-1.2.yml'
## [1.0.0] - 2020-02-18
### Added
- init
[![pipeline status](https://gitlab.com/wpdesk/wp-settings-field-boxes/badges/master/pipeline.svg)](https://gitlab.com/wpdesk/wp-settings-field-boxes/pipelines)
[![coverage report](https://gitlab.com/wpdesk/wp-settings-field-boxes/badges/master/coverage.svg?job=unit+test+lastest+coverage)](https://gitlab.com/wpdesk/wp-settings-field-boxes/commits/master)
[![Latest Stable Version](https://poser.pugx.org/wpdesk/wp-settings-field-boxes/v/stable)](https://packagist.org/packages/wpdesk/wp-settings-field-boxes)
[![Total Downloads](https://poser.pugx.org/wpdesk/wp-settings-field-boxes/downloads)](https://packagist.org/packages/wpdesk/wp-settings-field-boxes)
[![Latest Unstable Version](https://poser.pugx.org/wpdesk/wp-settings-field-boxes/v/unstable)](https://packagist.org/packages/wpdesk/wp-settings-field-boxes)
[![License](https://poser.pugx.org/wpdesk/wp-settings-field-boxes/license)](https://packagist.org/packages/wpdesk/wp-settings-field-boxes)
# wp-settings-field-boxes
Before commit execute: `npm run build`!
destination: docs
templateConfig: /app/theme-woocommerce/config.neon
extensions: [php]
source:
- src
exclude:
- vendor
- tests
- languages
charset: [UTF-8]
main: Wordpress plugin
title: Plugin template more info
baseUrl: "/"
templateTheme: default
php: false
sourceCode: false
tree: true
deprecated: false
todo: false
download: false
accessLevels:
- public
- private
- protected
{
"name": "wpdesk/wp-settings-sender-address",
"description": "Library for displaying sender address in WooCommerce.",
"license": "MIT",
"keywords": ["woocommerce", "sender"],
"homepage": "https://gitlab.com/wpdesk/wp-settings-sender-address",
"minimum-stability": "stable",
"authors": [
{
"name": "grola",
"email": "grola@wpdesk.net"
}
],
"config": {
"sort-packages": true,
"platform": {
"php": "5.6"
}
},
"require": {
"php": ">=5.6",
"wpdesk/wpdesk-packer": "^2"
},
"require-dev": {
"10up/wp_mock": "*",
"mockery/mockery": "*",
"phpunit/phpunit": "<7",
"wp-coding-standards/wpcs": "^0.14.1",
"squizlabs/php_codesniffer": "^3.0.2",
"wimg/php-compatibility": "^8"
},
"autoload": {
"psr-4": {"WpDesk\\WooCommerce\\ShippingMethod\\": "src/"}
},
"autoload-dev": {
},
"extra": {
"text-domain": "wp-settings-sender-address",
"translations-folder": "lang",
"po-files": {
"pl_PL": "pl_PL.po"
}
},
"scripts": {
"phpcs": "phpcs",
"phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never",
"phpunit-unit-fast": "phpunit --configuration phpunit-unit.xml --no-coverage",
"phpunit-integration": "phpunit --configuration phpunit-integration.xml --coverage-text --colors=never",
"phpunit-integration-fast": "phpunit --configuration phpunit-integration.xml --no-coverage"
}
}
{
"name": "WooCommerce-Settings-Field-for-Boxes",
"version": "1.0.0",
"main": "index.jsx",
"dependencies": {
"@babel/plugin-transform-react-constant-elements": "^7.6.0",
"@babel/plugin-transform-react-inline-elements": "^7.2.0",
"@babel/preset-env": "^7.6.0",
"@babel/preset-react": "^7.0.0",
"babel-plugin-transform-react-pure-class-to-function": "^1.0.1",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"babel-preset-react": "^6.24.1",
"bootstrap": "^4.3.1",
"jquery": "^3.4.1",
"popper.js": "^1.15.0",
"react": "^16.9.0",
"react-dom": "^16.7.0"
},
"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "^7.1.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-es2015-destructuring": "^6.23.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-env": "^1.6.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"cross-env": "^5.0.1",
"uglify-js": "^3.6.0",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^3.12.0",
"webpack-cli": "^3.3.9"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "cross-env BABEL_ENV=default NODE_ENV=production webpack && uglifyjs ./assets/js/settings-field-boxes.js -c -m -o ./assets/js/settings-field-boxes.min.js",
"dev": "cross-env BABEL_ENV=default webpack --watch"
}
}
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for WP Desk Plugin">
<description>Sniffs for WordPress WPDesk plugins</description>
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs,vendor/wimg/php-compatibility" />
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="5.5-"/>
<rule ref="WordPress"/>
<config name="text_domain" value="wpdesk-plugin,default,s214-settings-demo"/>
<arg name="extensions" value="php"/>
<file>./classes</file>
<exclude-pattern>*/settings-api/*</exclude-pattern>
</ruleset>
<phpunit bootstrap="tests/integration/bootstrap.php"
backupGlobals="false"
>
<testsuites>
<testsuite>
<directory prefix="Test" suffix=".php">./tests/integration</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src</directory>
<exclude>
<file>src/init.php</file>
<directory>src/assets</directory>
<directory suffix=".php">tests</directory>
<directory suffix=".php">vendor</directory>
</exclude>
</whitelist>
</filter>
<logging>
<log type="junit" target="build-coverage/report.junit.xml"/>
<log type="coverage-html" target="build-coverage/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build-coverage/coverage.txt"/>
<log type="coverage-clover" target="build-coverage/clover.xml"/>
</logging>
<php>
<env name="WP_DEVELOP_DIR" value="/tmp/wordpress-develop"/>
<env name="WC_DEVELOP_DIR" value="/tmp/woocommerce"/>
</php>
</phpunit>
<phpunit bootstrap="tests/unit/bootstrap.php">
<testsuites>
<testsuite>
<directory prefix="Test_" suffix=".php">./tests/unit/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<logging>
<log type="junit" target="build-coverage/report.junit.xml"/>
<log type="coverage-html" target="build-coverage/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build-coverage/coverage.txt"/>
<log type="coverage-clover" target="build-coverage/clover.xml"/>
</logging>
</phpunit>
const webpack = require("webpack");
module.exports = {
entry: "./src/index.jsx",
output: {
path: __dirname,
filename: "./assets/js/settings-field-boxes.js"
},
module: {
loaders: [
{
test: /.jsx$/,
loader: "babel-loader",
exclude: /node_modules/,
options: {
presets: [["env", "react"]],
plugins: ["transform-class-properties"]
}
}
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
include: /\.min\.js$/,
minimize: true
})
]};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment