Commit 5a56c677 authored by Allen Bai's avatar Allen Bai

feat: 添加模块引入方式

parent 5517dd9b
/** @format */
import IPCHelper from '../../../dist/IPCHelper.module'
IPCHelper.mountIPCFooter()
/** @format */
const path = require('path')
module.exports = {
mode: 'development',
entry: './src/index.js',
output: {
filename: 'main.[contenthash].js',
path: './dist/'
},
module: {
rules: []
}
}
This diff is collapsed.
{
"name": "@tuia/ipc",
"version": "0.0.1",
"description": "推啊IPC备案号获取",
"main": "libs/tuiaIPC.js",
"module": "libs/tuiaIPC.module.js",
"author": "ltt",
"license": "MIT",
"scripts": {
"watch": "rollup -c -w",
"build": "npm run clean && cross-env NODE_ENV=prod && rollup -c",
"build:debug": "npm run clean && cross-env NODE_ENV=dev rollup -c",
"clean": "rm -rf ./dist",
"test:in_html": "npm run watch & concurrently \"http-server -a localhost -p 1234\" \"open http://localhost:1234/example/inHTML/index.html\""
},
"typescript": ">=4.0",
"files": [
"dist"
],
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.7",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@typescript-eslint/parser": "^4.9.0",
"babel-eslint": "^10.1.0",
"chalk": "^4.1.0",
"concurrently": "^5.3.0",
"cross-env": "^7.0.3",
"eslint": "^7.15.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-prettier": "^3.2.0",
"http-server": "^0.12.3",
"husky": "^4.3.4",
"lint-staged": "^10.5.3",
"prettier": "^2.2.1",
"rollup": "^2.33.2",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.29.0",
"standard-version": "^9.0.0",
"tslib": "^2.0.3",
"tuia-auto-upload": "^2.0.19",
"typescript": "^4.1.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.{.ts,.tsx}": [
"prettier --write",
"eslint --fix",
"git add"
]
"name": "@tuia/ipc",
"version": "0.0.1",
"description": "推啊IPC备案号获取",
"main": "libs/tuiaIPC.js",
"module": "libs/tuiaIPC.module.js",
"author": "ltt",
"license": "MIT",
"scripts": {
"watch": "rollup -c -w",
"build": "npm run clean && cross-env NODE_ENV=prod && rollup -c",
"build:debug": "npm run clean && cross-env NODE_ENV=dev rollup -c",
"clean": "rm -rf ./dist",
"test:in_html": "npm run watch & concurrently \"http-server -a localhost -p 1234\" \"open http://localhost:1234/example/inHTML/index.html\"",
"test:in_module": "webpack -s"
},
"typescript": ">=4.0",
"files": [
"dist"
],
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.7",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@typescript-eslint/parser": "^4.9.0",
"babel-eslint": "^10.1.0",
"chalk": "^4.1.0",
"concurrently": "^5.3.0",
"cross-env": "^7.0.3",
"eslint": "^7.15.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-prettier": "^3.2.0",
"html-webpack-plugin": "^4.5.1",
"http-server": "^0.12.3",
"husky": "^4.3.4",
"lint-staged": "^10.5.3",
"prettier": "^2.2.1",
"rollup": "^2.33.2",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.29.0",
"standard-version": "^9.0.0",
"tslib": "^2.0.3",
"tuia-auto-upload": "^2.0.19",
"typescript": "^4.1.2",
"webpack": "^5.18.0",
"webpack-cli": "^4.4.0",
"webpack-dev-server": "^3.11.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.{.ts,.tsx}": [
"prettier --write",
"eslint --fix",
"git add"
]
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment