From b0de4f349718d14976efac852c6017da0d86e024 Mon Sep 17 00:00:00 2001 From: "wuyue.xht" Date: Thu, 12 Mar 2020 09:56:14 +0800 Subject: [PATCH] feat: init --- packages/runtime-framework/.editorconfig | 16 +++++++++ packages/runtime-framework/.eslintignore | 6 ++++ packages/runtime-framework/.eslintrc | 3 ++ packages/runtime-framework/.gitignore | 41 +++++++++++++++++++++++ packages/runtime-framework/.prettierrc | 6 ++++ packages/runtime-framework/README.md | 2 +- packages/runtime-framework/package.json | 25 ++++++++++++++ packages/runtime-framework/src/index.ts | 1 + packages/runtime-framework/test/foobar.ts | 5 +++ packages/runtime-framework/tsconfig.json | 6 ++++ 10 files changed, 110 insertions(+), 1 deletion(-) create mode 100644 packages/runtime-framework/.editorconfig create mode 100644 packages/runtime-framework/.eslintignore create mode 100644 packages/runtime-framework/.eslintrc create mode 100644 packages/runtime-framework/.gitignore create mode 100644 packages/runtime-framework/.prettierrc create mode 100644 packages/runtime-framework/package.json create mode 100644 packages/runtime-framework/src/index.ts create mode 100644 packages/runtime-framework/test/foobar.ts create mode 100644 packages/runtime-framework/tsconfig.json diff --git a/packages/runtime-framework/.editorconfig b/packages/runtime-framework/.editorconfig new file mode 100644 index 000000000..16a029ac9 --- /dev/null +++ b/packages/runtime-framework/.editorconfig @@ -0,0 +1,16 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Tab indentation +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false diff --git a/packages/runtime-framework/.eslintignore b/packages/runtime-framework/.eslintignore new file mode 100644 index 000000000..1fb2edf7c --- /dev/null +++ b/packages/runtime-framework/.eslintignore @@ -0,0 +1,6 @@ +.idea/ +.vscode/ +build/ +.* +~* +node_modules diff --git a/packages/runtime-framework/.eslintrc b/packages/runtime-framework/.eslintrc new file mode 100644 index 000000000..db78d35d1 --- /dev/null +++ b/packages/runtime-framework/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/@recore/config/.eslintrc" +} diff --git a/packages/runtime-framework/.gitignore b/packages/runtime-framework/.gitignore new file mode 100644 index 000000000..a3f292fcc --- /dev/null +++ b/packages/runtime-framework/.gitignore @@ -0,0 +1,41 @@ +node_modules/ +coverage/ +build/ +dist/ +.idea/ +.vscode/ +.theia/ +.recore/ +demo/ +~* +package-lock.json + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods +*.7z +*.dmg +*.gz +*.iso +*.jar +*.rar +*.tar +*.zip + +# Logs and databases # +###################### +*.log +*.sql +*.sqlite + +# OS generated files # +###################### +.DS_Store +.Trash* +*.swp +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db diff --git a/packages/runtime-framework/.prettierrc b/packages/runtime-framework/.prettierrc new file mode 100644 index 000000000..8748c5ed3 --- /dev/null +++ b/packages/runtime-framework/.prettierrc @@ -0,0 +1,6 @@ +{ + "semi": true, + "singleQuote": true, + "printWidth": 120, + "trailingComma": "all" +} diff --git a/packages/runtime-framework/README.md b/packages/runtime-framework/README.md index 12e6d0a3b..f37b9b0f6 100644 --- a/packages/runtime-framework/README.md +++ b/packages/runtime-framework/README.md @@ -1 +1 @@ -运行时框架 +# 低代码引擎运行时框架 diff --git a/packages/runtime-framework/package.json b/packages/runtime-framework/package.json new file mode 100644 index 000000000..f524e061f --- /dev/null +++ b/packages/runtime-framework/package.json @@ -0,0 +1,25 @@ +{ + "name": "@ali/lowcode-engine-runtime", + "version": "0.0.1", + "description": "runtime for Ali lowCode engine", + "main": "lib/index.js", + "files": [ + "lib" + ], + "scripts": { + "build": "tsc", + "test": "ava", + "test:snapshot": "ava --update-snapshots" + }, + "ava": { + "compileEnhancements": false, + "snapshotDir": "test/fixtures/__snapshots__", + "extensions": [ + "ts" + ], + "require": [ + "ts-node/register" + ] + }, + "license": "MIT" +} diff --git a/packages/runtime-framework/src/index.ts b/packages/runtime-framework/src/index.ts new file mode 100644 index 000000000..8337712ea --- /dev/null +++ b/packages/runtime-framework/src/index.ts @@ -0,0 +1 @@ +// diff --git a/packages/runtime-framework/test/foobar.ts b/packages/runtime-framework/test/foobar.ts new file mode 100644 index 000000000..7a14c4b2d --- /dev/null +++ b/packages/runtime-framework/test/foobar.ts @@ -0,0 +1,5 @@ +import test from 'ava'; + +test('foobar', t => { + t.pass(); +}); diff --git a/packages/runtime-framework/tsconfig.json b/packages/runtime-framework/tsconfig.json new file mode 100644 index 000000000..70a9c6a64 --- /dev/null +++ b/packages/runtime-framework/tsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "./lib" + } +} \ No newline at end of file