Skip to content

Commit

Permalink
chore: remove @ali/publish-visual extension (#938)
Browse files Browse the repository at this point in the history
* chore: remove @ali/publish-visual extension
  • Loading branch information
luhc228 committed Aug 25, 2021
1 parent 50f2664 commit 88a1d5e
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 88a1d5e

Please sign in to comment.