switch-to-dev-dev.sh 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/bash
  2. # @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. # For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. # Symlinks packages from https://github.com/ckeditor/ckeditor5-dev in ckeditor5's node_modules.
  5. # This allows easily switching to dev versions of ckeditor5-dev-* packages.
  6. set -e
  7. # If it doesn't exist the following lines won't work.
  8. if [ ! -d node_modules/@ckeditor ]; then
  9. mkdir node_modules/@ckeditor
  10. fi
  11. echo "Linking ckeditor5-dev-docs..."
  12. rm -rf node_modules/@ckeditor/ckeditor5-dev-docs
  13. ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-docs node_modules/@ckeditor
  14. echo "Linking ckeditor5-dev-env..."
  15. rm -rf node_modules/@ckeditor/ckeditor5-dev-env
  16. ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-env node_modules/@ckeditor
  17. echo "Linking ckeditor5-dev-tests..."
  18. rm -rf node_modules/@ckeditor/ckeditor5-dev-tests
  19. ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-tests node_modules/@ckeditor
  20. echo "Linking ckeditor5-dev-utils..."
  21. rm -rf node_modules/@ckeditor/ckeditor5-dev-utils
  22. ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-utils node_modules/@ckeditor
  23. echo "Linking eslint-config-ckeditor5..."
  24. rm -rf node_modules/eslint-config-ckeditor5
  25. ln -s ../../ckeditor5-dev/packages/eslint-config-ckeditor5 node_modules/
  26. echo "Linking stylelint-config-ckeditor5..."
  27. rm -rf node_modules/stylelint-config-ckeditor5
  28. ln -s ../../ckeditor5-dev/packages/stylelint-config-ckeditor5 node_modules/
  29. echo "Linking jsdoc-plugins..."
  30. rm -rf node_modules/@ckeditor/jsdoc-plugins
  31. ln -s ../../../ckeditor5-dev/packages/jsdoc-plugins node_modules/@ckeditor
  32. echo "Linking ckeditor5-dev-webpack-plugin..."
  33. rm -rf node_modules/@ckeditor/ckeditor5-dev-webpack-plugin
  34. ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-webpack-plugin node_modules/@ckeditor