0.1.12 • Published 3 years ago

@skpm/xcodeproj-loader v0.1.12

Weekly downloads
443
License
MIT
Repository
github
Last release
3 years ago

Xcodeproj Loader

Instructs WebPack to compile and emit the required xcodeproj as file and to return an object to interact with it.

Install

⚠️ The loader is already included in skpm by default so if you come from skpm, you do not have to do anything.

npm install --save-dev @skpm/xcodeproj-loader

Add the following rule to your WebPack config:

{
  test: /\.(framework|xcodeproj|xcworkspace|xcworkspacedata|pbxproj)$/,
  use: [
    {
      loader: '@skpm/xcodeproj-loader',
      options: {}
    }
  ]
}

Usage

  • Create a new framework
  • Add the following in your plugin command:

    const framework = require('../xcode-project-name/project-name.xcodeproj/project.pbxproj');
    
    const nativeClass = framework.getClass('NativeClassName');
    const ui = framework.getNib('NativeNibFile');

Options

Same as file-loader.

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago