wp-schema-migration
v0.1.60
Published
Migrate Wordpress REST API data to another schema
Downloads
73
Readme
Wordpress Schema Migration
Convert CT Data to Our WordPress Schema
Follow a Test-Driven Development approach
- Write failing unit tests according to desired results
- Write code to make those tests pass
Run all tests:
npm test
Make Sure to install npx globally
npm i -g npx
Link your local module in another project:
- Match your Node version between projects with
nvm use 12.22.1
(use your project version) in each project - In the
wp-schema-migration
directory, runnpm run build && npm link .
- In your
my-project
directory, runnpm link wp-schema-migration
Unlink the module from your project:
- In the
wp-schema-migration
directory, run...npm unlink .
- Ensure that your package.json file is using the correct dependency and version for
wp-schema-migration
. - In your project, run...
rm -rf node_modules/wp-schema-migration && npm i
- Using
npm unlink
can alter your dependency declaration in your package.json file. Deleting the node module and reinstalling based on your package.json dependencies is less problematic.
Linting
This project is using Husky hooks for linting with eslint. In order for these hooks to work you may need to run the following commands:
chmod ug+x .husky/*
chmod ug+x .git/hooks/*