Socket
Socket
Sign inDemoInstall

@ablula/build-plugin-assets

Package Overview
Dependencies
9
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ablula/build-plugin-assets

build plugin for lowcode assets


Version published
Maintainers
1
Created

Readme

Source

Overview

Usage

Install

echo 'package-lock=false' >> .npmrc
echo 'package-lock.json' >> .gitignore

npm i @alib/build-scripts @ablula/build-plugin-assets -D --legacy-peer-deps

Add build.assets.js

module.exports = {
  plugins: [
    [
      './plugins/src/index.js',
      {
        npmOptions: '--registry=https://registry.npmmirror.com'
      },
    ],
  ],
};


Add manifest.json

{
	"name": "lowcode-assets-jinchan",
	"version": "0.0.1",
	"plugins": [{
		"npm": "@alilc/lowcode-plugin-undo-redo",
		"version": "^1.x"
	}, {
		"npm": "@alilc/lowcode-plugin-code-generator",
		"version": "^1.x"
	}, {
		"npm": "@alilc/lowcode-plugin-schema",
		"version": "^1.x"
	}, {
		"npm": "@alilc/lowcode-plugin-simulator-select",
		"version": "^1.x"
	}, {
		"npm": "@alilc/lowcode-plugin-components-pane",
		"version": "^2.x"
	}],
	"setters": [{
		"name": "BehaviorSetter",
		"npm": "@alilc/lowcode-setter-behavior",
		"version": "1.0.0"
	}],
	"components": [{
		"name": "AlilcLowcodeMaterials",
		"npm": "@alilc/lowcode-materials",
		"version": "1.1.0"
	}, {
		"name": "AlifdFusionUI",
		"npm": "@alifd/fusion-ui",
		"version": "2.0.1"
	}]
}

Modify package.json

...
  "files": ["build"],
  "main": "build/lowcode/ext.js",
  "scripts": {
    "start": "build-scripts start --config ./build.assets.js",
    "build": "build-scripts build --config ./build.assets.js",
    "prepublishOnly": "npm run build"
  },
...

Take a look

npm start

// then open localhost:3333

Build your assets.json

npm run build

Publish

npm publish

Keywords

FAQs

Last updated on 27 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc