Skip to content

Commit

Permalink
Merge branch 'release/1.4.1' of github.com:appworks-lab/appworks into…
Browse files Browse the repository at this point in the history
… fix/babel-plugins
  • Loading branch information
GiveMe-A-Name committed Aug 25, 2021
2 parents d7e4a90 + 88a1d5e commit 48091db
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions scripts/o2/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import * as camelCase from 'lodash.camelcase';

interface OtherExtension {
packageName: string;
assetsFolders: string[];
isActiveNode: boolean;
isActiveBrowser: boolean;
}

export const isBeta = !process.env.CI; // CI is true when running in GitHub action
export const pushExtension2Npm = false; // modify it to true when publish to tnpm
export const innerExtensions4pack = [
Expand All @@ -24,13 +31,19 @@ export const innerExtensions4pack = [
assetsFolders: ['assets', 'schemas'],
},
];
export const otherExtensions4pack = [
{

packageName: '@ali/publish-visual',
assetsFolders: ['icons', 'resource'],
isActiveNode: true,
isActiveBrowser: true,
},
].map((otherExtension4pack) => ({ ...otherExtension4pack, extensionName: camelCase(otherExtension4pack.packageName), isOther: true }));
const otherExtensions: OtherExtension[] = [
// install this extension in DEF extension marketplace
// {
// packageName: '@ali/publish-visual',
// assetsFolders: ['icons', 'resource'],
// isActiveNode: true,
// isActiveBrowser: true,
// },
];

export const otherExtensions4pack = otherExtensions.map((otherExtension4pack) => (
{ ...otherExtension4pack, extensionName: camelCase(otherExtension4pack.packageName), isOther: true }
));

export const npmRegistry = process.env.REGISTRY ? process.env.REGISTRY : 'https://registry.npm.alibaba-inc.com';

0 comments on commit 48091db

Please sign in to comment.