open-index/open-npm huggingface dataset:
npm package: @genx/babel-plugin-transform-stylex
Description: Transform Stylex code
Latest version: 0.1.1

# @genx/babel-plugin-transform-stylex

Forked from @ladifire-opensource/stylex

This package is part of [stylex](https://github.com/genx-tech/stylex). See the repo for more details.

## v0.1.1

* added enableLogging switch, dump processing information
* added useAll switch to skip filtering classes, currently replaceUseCall cannot detect all dynamic use scenario
npm package: @genx/babelnode
Description: Babel command line
Author: The Babel Team
Latest version: 7.14.9

# @babel/node

Patched version of @babel/node

Add --source-maps option to make error stack trace correct for revealing the exact source code line number rather the one of transpiled code.

> Babel command line

See our website [@babel/node](https://babeljs.io/docs/en/babel-node) for more information.

## Install

Using npm:

```sh
npm install --save-dev @genx/babel-node
```

or using yarn:

```sh
yarn add @genx/babel-node --dev
```
npm package: @genx/config
Description: An environment-aware config system.
Author: Rockie Guo
Latest version: 1.1.1

# @genx/config

An environment-aware config system.

## Features

-   Multiple data source.
-   Deep override.
-   Rewrite config.
-   Support interpolation: ES6 string template, Javascript value

## Examples

     let fileSource = new JsonConfigProvider('path/to/config.json');
     let config = new ConfigLoader(fileSource);
     await config.load_()...;

     let dbSource = new DbConfigProvider(config.data.dbConnection);
     config.provider = dbSource;
     await config.reload_()...;

     // same as: let envAwareLoader = new ConfigLoader(
     //    new (EnvAwareConfigProviderF('.json', JsonConfigProvider, 'default'))('config/dir', 'app', 'production')
     // );
     let envAwareLoader = ConfigLoader.createEnvAwareJsonLoader('config/dir', 'app', 'production');

     // Loader will load config/dir/app.default.json first,
     // and then load config/dir/app.production.json,
     // and finally override the default.
     let cfg = await envAwareLoader.load_();

## Post-processor syntax

```
// config
{
    "key": "#!jst:Hello ${name}, welcome to ${place}!",
    "key2": {
        "array": [
            "#!jst:value1: ${value1}",
            "#!jst:value2: ${value2}",
            "#!jst:sum: ${value1 + value2}"
        ],
        "object": {
            "non": "nothing",
            "itpl": "#!jst:${(new Date()).toString()}"
        },
        "jsv1": "#!jsv:100+200*0.5",
        "jsv2": "#!jsv:[name, place].join(' ')",
        "jsv3": "#!swig: {{ name }} - {{ place }} "
    }
}

await config.load_({ name: 'Bob', place: 'Sydney', value1: 10, value2: 20 });

// result
{
  key: 'Hello Bob, welcome to Sydney!',
  key2: {
    array: [ 'value1: 10', 'value2: 20', 'sum: 30' ],
    object: {
      non: 'nothing',
      itpl: 'Tue Feb 21 2023 21:00:39 GMT+1100 (Australian Eastern Daylight Time)'
    },
    jsv1: 200,
    jsv2: 'Bob Sydney',
    jsv3: 'Bob - Sydney'
  }
}
```

## License

MIT
npm package: @genx/create-app
Description: Helper tool to initiate a genx application.
Author: rockie@kitmi.com.au
Latest version: 2.1.1

# @genx/create-app

Helper tool to init a genx application [https://github.com/genx-tech/gx-create-app](https://github.com/genx-tech/gx-create-app)

![GitHub last commit](https://img.shields.io/github/last-commit/genx-tech/gx-create-app)

## Usage

```
npm init @genx/app <app dir name> [options]
```
or
```
npm install -g @genx/create-app
genx-init <app dir name> [options]
```

## Options

```
Options:
  -s, --silent
    Silent mode
    default: false

  -v, --version
    Show version information
    default: false

  -l, --list-modes
    Show a list of available app modes
    default: false

  -h, --help
    Show usage message
    default: false

  -m, --mode
    Target application mode
    required
    available values:
        "server": Web service hosting project based on @genx/server
        "app-module": App module to be hosted by @genx/server
        "app-feature": App feature to be used by @genx/app

  -n, --name, --app-name
    Application name
    required

  -c, --conf, --config
    Config path

  --lock, --package-lock, --with-package-lock
    With npm package lock
    required

  --skip-install, --skip-npm-install
    Skip dependencies installation
    required

  --public
    To publish publicly in npm
```

## Samples

Create a public app feature project.
```
mkdir example
genx-init MyAppFeature --name=example-app --mode=app-feature --public
```

Create a private services hosting project.
```
genx-init MyWebServer --name=my-web-server --mode=server 
npm run dev
//visit http://localhost:3000 to see the default page
```

Create an app module under the hosting project directory created by the above sample.
```
genx-init module-dir --name=my-module --mode=app-module 
npm run dev
//visit http://localhost:3000/hello to see the default page
```

Create a mobile app.
```
genx-init MyAppDir --name=MyApp --mode=mobile 
npm run ios
//or npm run android
```
   
## License

  MIT