Skip to content

Commit

Permalink
universal version in config
Browse files Browse the repository at this point in the history
  • Loading branch information
justintaylor-dev committed Apr 12, 2022
1 parent ea20850 commit 5262bc8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 9 deletions.
10 changes: 5 additions & 5 deletions cep.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { CEP_Config } from "vite-cep-plugin";
import { version } from "./package.json";

const config: CEP_Config = {
version,
id: "com.bolt.cep",
displayName: "Bolt CEP",
symlink: "local",
port: 3000,
servePort: 5000,
symlink: "local",
startingDebugPort: 8860,
version: "1.0.0",
id: "com.bolt.cep",
displayName: "Bolt CEP",
extensionManifestVersion: 6.0,
requiredRuntimeVersion: 9.0,

hosts: [
{
name: "AEFT",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bolt-cep",
"version": "0.0.7",
"version": "0.0.8",
"scripts": {
"dev": "vite",
"debug": "cross-env DEBUG_REACT=true vite build --watch true",
Expand Down Expand Up @@ -28,12 +28,14 @@
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.0.2",
"@rollup/plugin-image": "^2.1.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-replace": "^4.0.0",
"@types/fs-extra": "^9.0.13",
"@types/node": "^16.11.7",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.14",
"@types/trusted-types": "^2.0.2",
"@vitejs/plugin-react": "^1.3.0",
"@vitejs/plugin-vue": "^2.3.0",
"babel-plugin-react-require": "^3.1.3",
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": false,
"noEmit": true,
"jsx": "react-jsx"
"noEmit": true
},
"include": ["./src"],
"exclude": [
Expand Down
2 changes: 2 additions & 0 deletions vite.es.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import babel from "@rollup/plugin-babel";
import replace from "@rollup/plugin-replace";
import { jsxInclude, jsxBin } from "vite-cep-plugin";
import { CEP_Config } from "vite-cep-plugin";
import json from "@rollup/plugin-json";
import path from "path";

export const extendscriptConfig = (
Expand All @@ -27,6 +28,7 @@ export const extendscriptConfig = (
: cepConfig.build?.sourceMap,
},
plugins: [
json(),
nodeResolve({
extensions,
}),
Expand Down
14 changes: 13 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,13 @@
"@rollup/pluginutils" "^3.1.0"
mini-svg-data-uri "^1.2.3"

"@rollup/plugin-json@^4.1.0":
version "4.1.0"
resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-4.1.0.tgz#54e09867ae6963c593844d8bd7a9c718294496f3"
integrity sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==
dependencies:
"@rollup/pluginutils" "^3.0.8"

"@rollup/plugin-node-resolve@^13.1.3":
version "13.1.3"
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.1.3.tgz#2ed277fb3ad98745424c1d2ba152484508a92d79"
Expand All @@ -1402,7 +1409,7 @@
"@rollup/pluginutils" "^3.1.0"
magic-string "^0.25.7"

"@rollup/pluginutils@^3.1.0":
"@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b"
integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==
Expand Down Expand Up @@ -1491,6 +1498,11 @@
resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39"
integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==

"@types/trusted-types@^2.0.2":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.2.tgz#fc25ad9943bcac11cceb8168db4f275e0e72e756"
integrity sha512-F5DIZ36YVLE+PN+Zwws4kJogq47hNgX3Nx6WyDJ3kcplxyke3XIzB8uK5n/Lpm1HBsbGzd6nmGehL8cPekP+Tg==

"@vitejs/plugin-react@^1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@vitejs/plugin-react/-/plugin-react-1.3.0.tgz#efd4b4383edc12780cd8d230c2daa9d266690bb9"
Expand Down

0 comments on commit 5262bc8

Please sign in to comment.