switch-to-dev-dev.sh 2.0 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 packages from ckeditor5-dev..."
  12. echo "Linking ckeditor5-dev-docs..."
  13. rm -rf node_modules/@ckeditor/ckeditor5-dev-docs
  14. ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-docs node_modules/@ckeditor
  15. echo "Linking ckeditor5-dev-env..."
  16. rm -rf node_modules/@ckeditor/ckeditor5-dev-env
  17. ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-env node_modules/@ckeditor
  18. echo "Linking ckeditor5-dev-tests..."
  19. rm -rf node_modules/@ckeditor/ckeditor5-dev-tests
  20. ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-tests node_modules/@ckeditor
  21. echo "Linking ckeditor5-dev-utils..."
  22. rm -rf node_modules/@ckeditor/ckeditor5-dev-utils
  23. ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-utils node_modules/@ckeditor
  24. echo "Linking jsdoc-plugins..."
  25. rm -rf node_modules/@ckeditor/jsdoc-plugins
  26. ln -s ../../../ckeditor5-dev/packages/jsdoc-plugins node_modules/@ckeditor
  27. echo "Linking ckeditor5-dev-webpack-plugin..."
  28. rm -rf node_modules/@ckeditor/ckeditor5-dev-webpack-plugin
  29. ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-webpack-plugin node_modules/@ckeditor
  30. echo "Linking linters packages..."
  31. echo "Linking eslint-config-ckeditor5..."
  32. rm -rf node_modules/eslint-config-ckeditor5
  33. ln -s ../../eslint-config-ckeditor5 node_modules/
  34. echo "Linking eslint-plugin-ckeditor5-rules..."
  35. rm -rf node_modules/eslint-plugin-ckeditor5-rules
  36. ln -s ../../eslint-plugin-ckeditor5-rules node_modules/
  37. echo "Linking stylelint-config-ckeditor5..."
  38. rm -rf node_modules/stylelint-config-ckeditor5
  39. ln -s ../../stylelint-config-ckeditor5 node_modules/