d2d7243e80
After the JavaScript reorganization in [43309], it was no longer possible to test WordPress from the `src` folder. That meant a build step was required to test PHP modifications. That is suboptimal as even a simple copy is slower than a web server just serving the new file. We achieve building to `src` by setting a `WORKING_DIR` constant in the Gruntfile that is `build` by default, but changes to `src` when the `--dev` flag is present on any Grunt command. We provide sensible defaults so some commands, such as copying `version.php`, always build to `build`. Because testing from `build` is no longer required, we change the messages present in `index.php` and `wp-admin/index.php` to be more broadly about building WordPress. We also change the webpack config to have more straightforward behavior based on the `buildTarget` argument. It only determines the build target now and has no implicit behavior anymore. `grunt build` still works as it worked before, to make sure that the build server produces the same `wordpress.zip` we are used to. We do all this instead of a symlink setup because symlinks don't work on every platform. Props omarreiss, netweb, flixos90, SergeyBiryukov. Fixes #44492. git-svn-id: https://develop.svn.wordpress.org/trunk@44359 602fd350-edb4-49c9-b593-d223f7449a82
69 lines
1.6 KiB
Plaintext
69 lines
1.6 KiB
Plaintext
# gitignore file for WordPress Core
|
|
|
|
# Configuration files with possibly sensitive information
|
|
wp-config.php
|
|
wp-tests-config.php
|
|
.htaccess
|
|
|
|
# Files and folders related to build/test tools
|
|
/phpunit.xml
|
|
/.phpcs.xml
|
|
/phpcs.xml
|
|
/tests/phpunit/data/plugins/wordpress-importer
|
|
/tests/phpunit/data/.trac-ticket-cache*
|
|
/tests/qunit/compiled.html
|
|
/src/.wp-tests-version
|
|
/node_modules
|
|
/npm-debug.log
|
|
/build
|
|
/tests/phpunit/build
|
|
/wp-cli.local.yml
|
|
/jsdoc
|
|
/src/wp-includes/js
|
|
/src/wp-includes/css/dist
|
|
/src/wp-admin/css/*.min.css
|
|
/src/wp-admin/css/*-rtl.css
|
|
/src/wp-includes/css/*.min.css
|
|
/src/wp-admin/css/colors/*/*.css
|
|
|
|
# Files and folders that get created in wp-content
|
|
/src/wp-content/blogs.dir
|
|
/src/wp-content/languages
|
|
/src/wp-content/mu-plugins
|
|
/src/wp-content/plugins
|
|
/src/wp-content/themes/*
|
|
!/src/wp-content/themes/twentyten
|
|
!/src/wp-content/themes/twentyeleven
|
|
!/src/wp-content/themes/twentytwelve
|
|
!/src/wp-content/themes/twentythirteen
|
|
!/src/wp-content/themes/twentyfourteen
|
|
!/src/wp-content/themes/twentyfifteen
|
|
!/src/wp-content/themes/twentyseventeen
|
|
/src/wp-content/upgrade
|
|
/src/wp-content/uploads
|
|
/src/wp-content/advanced-cache.php
|
|
/src/wp-content/blog-deleted.php
|
|
/src/wp-content/blog-inactive.php
|
|
/src/wp-content/blog-suspended.php
|
|
/src/wp-content/db.php
|
|
/src/wp-content/db-error.php
|
|
/src/wp-content/debug.log
|
|
/src/wp-content/install.php
|
|
/src/wp-content/maintenance.php
|
|
/src/wp-content/object-cache.php
|
|
/src/wp-content/sunrise.php
|
|
|
|
# Operating system specific files
|
|
.DS_Store
|
|
|
|
# Ignore other .gitignore files to allow for personal customizations
|
|
.gitignore
|
|
|
|
# Files related to applying patches
|
|
*.rej
|
|
*.orig
|
|
*.patch
|
|
*.diff
|
|
.svn
|
|
!/src/js/_enqueues/vendor
|