Skip to content

Commit

Permalink
add build files
Browse files Browse the repository at this point in the history
  • Loading branch information
sultann committed Dec 29, 2022
1 parent df3a240 commit 59b0278
Show file tree
Hide file tree
Showing 77 changed files with 2,444 additions and 2,994 deletions.
22 changes: 22 additions & 0 deletions .dist.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
WP_ROOT_FOLDER=/tmp/wordpress

# For acceptance and functional tests
TEST_SITE_DB_DSN=mysql:host=localhost;dbname=test_acceptance
TEST_SITE_DB_HOST=127.0.0.1
TEST_SITE_DB_NAME=test_acceptance
TEST_SITE_DB_USER=root
TEST_SITE_DB_PASSWORD=root
TEST_SITE_TABLE_PREFIX=wp_
TEST_SITE_ADMIN_USERNAME=admin
TEST_SITE_ADMIN_PASSWORD=password
TEST_SITE_WP_ADMIN_PATH=/wp-admin
TEST_SITE_WP_URL=http://your-test-url.test
TEST_SITE_WP_DOMAIN=your-test-url.test
TEST_SITE_ADMIN_EMAIL=[email protected]

# For integration tests
TEST_DB_NAME=tests
TEST_DB_HOST=127.0.0.1
TEST_DB_USER=root
TEST_DB_PASSWORD=root
TEST_TABLE_PREFIX=wp_
16 changes: 11 additions & 5 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ readme.md
README.md

# Composer related files
composer.lock
composer.json
composer.*

# NPM related files
npm-debug.log
node_modules
/node_modules/
postcss.config.js
babel.config.js
package.json
Expand Down Expand Up @@ -54,9 +53,14 @@ phpcs.xml.dist
*.vscode

# Misc files
.*
.*/
*.lock
*.log
*.sh
bin
*.zip
/bin/


# OS related files
.DS_Store
Expand All @@ -76,4 +80,6 @@ Thumbs.db
*.*.map

# Build related files
/vendor
/assets/js
/assets/css
vendor
14 changes: 6 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
tab_width = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[*.txt]
trim_trailing_whitespace = false

[*.{md,json,yml}]
trim_trailing_whitespace = false
[{.jshintrc,*.json,*.yml}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
22 changes: 22 additions & 0 deletions .env.testing
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
WP_ROOT_FOLDER=/Users/manik/Sites/serialnumbers

# For acceptance and functional tests
TEST_SITE_DB_DSN=mysql:host=localhost;dbname=test_acceptance
TEST_SITE_DB_HOST=127.0.0.1
TEST_SITE_DB_NAME=test_acceptance
TEST_SITE_DB_USER=root
TEST_SITE_DB_PASSWORD=root
TEST_SITE_TABLE_PREFIX=wp_
TEST_SITE_ADMIN_USERNAME=admin
TEST_SITE_ADMIN_PASSWORD=password
TEST_SITE_WP_ADMIN_PATH=/wp-admin
TEST_SITE_WP_URL=http://serialnumbers.test
TEST_SITE_WP_DOMAIN=serialnumbers.test
TEST_SITE_ADMIN_EMAIL=[email protected]

# For integration tests
TEST_DB_NAME=tests
TEST_DB_HOST=127.0.0.1
TEST_DB_USER=root
TEST_DB_PASSWORD=root
TEST_TABLE_PREFIX=wp_
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
assets/dist
lib
tests
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ],
env: {
browser: true,
es6: true,
node: true,
},
globals: {
wp: true,
es6: true,
},
rules: {
camelcase: 0,
indent: 0,
'no-console': 1,
},
};
29 changes: 0 additions & 29 deletions .jshintrc

This file was deleted.

5 changes: 5 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [ "@wordpress/stylelint-config/scss" ],
"customSyntax": "postcss-scss",
"rules": {}
}
Loading

0 comments on commit 59b0278

Please sign in to comment.