react-native-boost 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/package.json +42 -17
  2. package/{dist/plugin.js → plugin/index.js} +57 -22
  3. package/src/optimizers/text/index.ts +33 -9
  4. package/src/plugin.ts +7 -3
  5. package/src/types/index.ts +29 -0
  6. package/src/utils/generate-test-plugin.ts +17 -0
  7. package/src/utils/logger.ts +3 -0
  8. package/src/utils/plugin-error.ts +6 -0
  9. package/.github/FUNDING.yml +0 -1
  10. package/.github/actions/setup/action.yml +0 -28
  11. package/.github/workflows/release.yml +0 -87
  12. package/.github/workflows/stale.yml +0 -37
  13. package/.github/workflows/test.yml +0 -54
  14. package/.husky/pre-commit +0 -2
  15. package/.lintstagedrc +0 -3
  16. package/.nvmrc +0 -1
  17. package/.prettierignore +0 -4
  18. package/.prettierrc +0 -14
  19. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
  20. package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +0 -28
  21. package/.yarn/releases/yarn-3.6.1.cjs +0 -874
  22. package/.yarnrc.yml +0 -2
  23. package/CODE_OF_CONDUCT.md +0 -132
  24. package/CONTRIBUTING.md +0 -122
  25. package/README.md +0 -72
  26. package/commitlint.config.mjs +0 -1
  27. package/dist/plugin.js.map +0 -7
  28. package/eslint.config.mjs +0 -14
  29. package/src/optimizers/text/__tests__/fixtures/basic/code.js +0 -2
  30. package/src/optimizers/text/__tests__/fixtures/basic/options.js +0 -4
  31. package/src/optimizers/text/__tests__/fixtures/basic/output.js +0 -3
  32. package/src/optimizers/text/__tests__/fixtures/text-content/code.js +0 -2
  33. package/src/optimizers/text/__tests__/fixtures/text-content/options.js +0 -4
  34. package/src/optimizers/text/__tests__/fixtures/text-content/output.js +0 -3
  35. package/src/optimizers/text/__tests__/fixtures/text-content-as-explicit-child-prop/code.js +0 -2
  36. package/src/optimizers/text/__tests__/fixtures/text-content-as-explicit-child-prop/options.js +0 -4
  37. package/src/optimizers/text/__tests__/fixtures/text-content-as-explicit-child-prop/output.js +0 -3
  38. package/src/optimizers/text/__tests__/fixtures/two-components/code.js +0 -3
  39. package/src/optimizers/text/__tests__/fixtures/two-components/options.js +0 -4
  40. package/src/optimizers/text/__tests__/fixtures/two-components/output.js +0 -4
  41. package/src/optimizers/text/__tests__/index.test.ts +0 -12
  42. package/tsconfig.json +0 -14
  43. package/vitest.config.ts +0 -8
package/eslint.config.mjs DELETED
@@ -1,14 +0,0 @@
1
- import globals from 'globals';
2
- import pluginJs from '@eslint/js';
3
- import tseslint from 'typescript-eslint';
4
- import eslintPluginUnicorn from 'eslint-plugin-unicorn';
5
-
6
- /** @type {import('eslint').Linter.Config[]} */
7
- export default [
8
- { files: ['**/*.{js,mjs,cjs,ts}'] },
9
- { languageOptions: { globals: globals.node } },
10
- { ignores: ['**/fixtures', '**/*.config.{js,mjs,cjs}'] },
11
- pluginJs.configs.recommended,
12
- ...tseslint.configs.recommended,
13
- eslintPluginUnicorn.configs.recommended,
14
- ];
@@ -1,2 +0,0 @@
1
- import { Text } from "react-native";
2
- <Text />;
@@ -1,4 +0,0 @@
1
- /**
2
- * @type {import('babel-plugin-tester').TestObject}
3
- */
4
- module.exports = {};
@@ -1,3 +0,0 @@
1
- import { NativeText as _NativeText } from "react-native/Libraries/Text/TextNativeComponent";
2
- import { Text } from "react-native";
3
- <_NativeText />;
@@ -1,2 +0,0 @@
1
- import { Text } from "react-native";
2
- <Text>Hello, world!</Text>;
@@ -1,4 +0,0 @@
1
- /**
2
- * @type {import('babel-plugin-tester').TestObject}
3
- */
4
- module.exports = {};
@@ -1,3 +0,0 @@
1
- import { NativeText as _NativeText } from "react-native/Libraries/Text/TextNativeComponent";
2
- import { Text } from "react-native";
3
- <_NativeText>Hello, world!</_NativeText>;
@@ -1,2 +0,0 @@
1
- import { Text } from "react-native";
2
- <Text children="Hello, world!" />;
@@ -1,4 +0,0 @@
1
- /**
2
- * @type {import('babel-plugin-tester').TestObject}
3
- */
4
- module.exports = {};
@@ -1,3 +0,0 @@
1
- import { NativeText as _NativeText } from "react-native/Libraries/Text/TextNativeComponent";
2
- import { Text } from "react-native";
3
- <_NativeText children="Hello, world!" />;
@@ -1,3 +0,0 @@
1
- import { Text } from "react-native";
2
- <Text />;
3
- <Text></Text>;
@@ -1,4 +0,0 @@
1
- /**
2
- * @type {import('babel-plugin-tester').TestObject}
3
- */
4
- module.exports = {};
@@ -1,4 +0,0 @@
1
- import { NativeText as _NativeText } from "react-native/Libraries/Text/TextNativeComponent";
2
- import { Text } from "react-native";
3
- <_NativeText />;
4
- <_NativeText></_NativeText>;
@@ -1,12 +0,0 @@
1
- import path from 'node:path';
2
- import { pluginTester } from 'babel-plugin-tester/pure';
3
- import plugin from '../../../plugin';
4
-
5
- pluginTester({
6
- plugin,
7
- title: 'text',
8
- fixtures: path.resolve(import.meta.dirname, 'fixtures'),
9
- babelOptions: {
10
- plugins: ['@babel/plugin-syntax-jsx'],
11
- },
12
- });
package/tsconfig.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": ["ESNext"],
4
- "module": "esnext",
5
- "moduleResolution": "bundler",
6
- "target": "es2019",
7
- "declaration": true,
8
- "outDir": "./dist",
9
- "types": ["node"],
10
- "skipLibCheck": true
11
- },
12
- "include": ["src/**/*"],
13
- "exclude": ["node_modules", "dist", "fixtures"]
14
- }
package/vitest.config.ts DELETED
@@ -1,8 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
-
3
- export default defineConfig({
4
- test: {
5
- // babel-plugin-tester requires it and describe to be set globally
6
- globals: true,
7
- },
8
- });