Skip to content

Commit

Permalink
fix(packages): delete types and utils buildscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
1ncounter committed Mar 23, 2024
1 parent 3592356 commit 62c535b
Show file tree
Hide file tree
Showing 62 changed files with 372 additions and 581 deletions.
13 changes: 0 additions & 13 deletions .editorconfig

This file was deleted.

11 changes: 11 additions & 0 deletions TODOS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## project

### docs for contributing:

1. init
2. develop
3. debug
4. build
5. test
6. publish
7. github workflows
6 changes: 0 additions & 6 deletions babel.config.js

This file was deleted.

37 changes: 0 additions & 37 deletions lerna.json

This file was deleted.

18 changes: 1 addition & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
{
"private": true,
"workspaces": {
"packages": [
"packages/*",
"runtime/*",
"examples/*"
],
"nohoist": [
"**/css-modules-typescript-loader",
"**/@alifc/theme-lowcode-*",
"**/jest"
]
},
"scripts": {
"dev": "pnpm --filter playground dev",
"playground": "pnpm --filter playground dev",
"build": "./scripts/build.sh",
"build:npm": "lerna run build --stream",
"build:umd": "lerna run build:umd --stream",
Expand All @@ -30,13 +18,9 @@
"pub:preminor": "npm run watchdog:build && lerna publish preminor --force-publish --exact --dist-tag beta --preid beta --no-changelog",
"pub:prepatch": "npm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta --no-changelog",
"pub:prerelease": "npm run watchdog:build && lerna publish prerelease --yes --force-publish --exact --dist-tag beta --preid beta --no-changelog",
"setup": "node ./scripts/setup.js",
"setup:test": "./scripts/setup-for-test.sh",
"setup:skip-build": "./scripts/setup-skip-build.sh",
"start": "node ./scripts/start.js",
"test": "lerna run test --stream",
"test:snapshot": "lerna run test:snapshot",
"watchdog:build": "node ./scripts/watchdog.js",
"sync": "./scripts/sync.sh",
"syncOss": "node ./scripts/sync-oss.js"
},
Expand Down
17 changes: 8 additions & 9 deletions packages/engine/build.plugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { execSync } = require('child_process');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const fse = require('fs-extra');

// get version from git branch name,
// e.g. release/1.0.7 => 1.0.7
Expand All @@ -25,16 +24,16 @@ const releaseVersion = getVersion();

module.exports = ({ context, onGetWebpackConfig }) => {
onGetWebpackConfig((config) => {
config.resolve
.plugin('tsconfigpaths')
.use(TsconfigPathsPlugin, [{
config.resolve.plugin('tsconfigpaths').use(TsconfigPathsPlugin, [
{
configFile: './tsconfig.json',
}]);
config
.plugin('define')
.use(context.webpack.DefinePlugin, [{
},
]);
config.plugin('define').use(context.webpack.DefinePlugin, [
{
VERSION_PLACEHOLDER: JSON.stringify(releaseVersion),
}]);
},
]);
config.plugins.delete('hot');
config.devServer.hot(false);
});
Expand Down
3 changes: 0 additions & 3 deletions packages/types/.eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions packages/types/.prettierrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/types/build.json

This file was deleted.

19 changes: 11 additions & 8 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
{
"name": "@alilc/lowcode-types",
"version": "1.3.3",
"version": "2.0.0-beta.0",
"description": "Types for Ali lowCode engine",
"files": [
"es",
"lib"
],
"main": "lib/index.js",
"module": "es/index.js",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "build-scripts build"
"build": "tsc"
},
"dependencies": {
"@alilc/lowcode-datasource-types": "^1.0.0",
"react": "^16.9",
"@alifd/next": "^1.27.8",
"react": "^18.2.0",
"strict-event-emitter-types": "^2.0.0"
},
"devDependencies": {
"@alib/build-scripts": "^0.1.18",
"@types/node": "^13.7.1",
"@types/react": "^16"
"@types/react": "^18"
},
"peerDependencies": {
"react": "^18.2.0"
},
"publishConfig": {
"access": "public",
Expand Down
18 changes: 0 additions & 18 deletions packages/types/src/deprecated/index.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/types/src/deprecated/isActionContentObject.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/types/src/deprecated/isCustomView.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/types/src/deprecated/isDOMText.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/types/src/deprecated/isDynamicSetter.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/types/src/deprecated/isI18nData.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/types/src/deprecated/isJSBlock.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/types/src/deprecated/isJSExpression.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/types/src/deprecated/isJSFunction.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/types/src/deprecated/isJSSlot.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/types/src/deprecated/isLowCodeComponentType.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/types/src/deprecated/isNodeSchema.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/types/src/deprecated/isPlainObject.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/types/src/deprecated/isProCodeComponentType.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/types/src/deprecated/isProjectSchema.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/types/src/deprecated/isReactClass.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/types/src/deprecated/isReactComponent.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/types/src/deprecated/isSetterConfig.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/types/src/deprecated/isTitleConfig.ts

This file was deleted.

3 changes: 1 addition & 2 deletions packages/types/src/event/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import * as Node from './node';

export interface EventConfig {
[Node.Prop.Change]: (options: Node.Prop.ChangeOptions) => any;
[Node.Prop.InnerChange]: (options: Node.Prop.ChangeOptions) => any;
[Node.Rerender]: (options: Node.RerenderOptions) => void;
[eventName: string]: any;
}

export * as Node from './node';
export * as Node from './node';
Loading

0 comments on commit 62c535b

Please sign in to comment.