react-native-boost 0.0.1 → 0.0.2

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 (41) hide show
  1. package/README.md +32 -17
  2. package/package.json +19 -5
  3. package/{dist/plugin.js → plugin/index.js} +22 -15
  4. package/src/optimizers/text/index.ts +16 -5
  5. package/src/plugin.ts +5 -3
  6. package/src/types/index.ts +9 -0
  7. package/src/utils/generate-test-plugin.ts +17 -0
  8. package/.github/FUNDING.yml +0 -1
  9. package/.github/actions/setup/action.yml +0 -28
  10. package/.github/workflows/release.yml +0 -87
  11. package/.github/workflows/stale.yml +0 -37
  12. package/.github/workflows/test.yml +0 -54
  13. package/.husky/pre-commit +0 -2
  14. package/.lintstagedrc +0 -3
  15. package/.nvmrc +0 -1
  16. package/.prettierignore +0 -4
  17. package/.prettierrc +0 -14
  18. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
  19. package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +0 -28
  20. package/.yarn/releases/yarn-3.6.1.cjs +0 -874
  21. package/.yarnrc.yml +0 -2
  22. package/CODE_OF_CONDUCT.md +0 -132
  23. package/CONTRIBUTING.md +0 -122
  24. package/commitlint.config.mjs +0 -1
  25. package/dist/plugin.js.map +0 -7
  26. package/eslint.config.mjs +0 -14
  27. package/src/optimizers/text/__tests__/fixtures/basic/code.js +0 -2
  28. package/src/optimizers/text/__tests__/fixtures/basic/options.js +0 -4
  29. package/src/optimizers/text/__tests__/fixtures/basic/output.js +0 -3
  30. package/src/optimizers/text/__tests__/fixtures/text-content/code.js +0 -2
  31. package/src/optimizers/text/__tests__/fixtures/text-content/options.js +0 -4
  32. package/src/optimizers/text/__tests__/fixtures/text-content/output.js +0 -3
  33. package/src/optimizers/text/__tests__/fixtures/text-content-as-explicit-child-prop/code.js +0 -2
  34. package/src/optimizers/text/__tests__/fixtures/text-content-as-explicit-child-prop/options.js +0 -4
  35. package/src/optimizers/text/__tests__/fixtures/text-content-as-explicit-child-prop/output.js +0 -3
  36. package/src/optimizers/text/__tests__/fixtures/two-components/code.js +0 -3
  37. package/src/optimizers/text/__tests__/fixtures/two-components/options.js +0 -4
  38. package/src/optimizers/text/__tests__/fixtures/two-components/output.js +0 -4
  39. package/src/optimizers/text/__tests__/index.test.ts +0 -12
  40. package/tsconfig.json +0 -14
  41. 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
- });