diff --git a/package.json b/package.json index 26533978..8457f21e 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@babel/plugin-transform-template-literals": "7.16.7", "@babel/preset-env": "7.16.7", "@babel/preset-typescript": "7.16.7", - "@babel/runtime": "8.0.0-alpha.1", + "@babel/runtime": "7.16.7", "@rollup/plugin-babel": "^5.3.1", "@rollup/plugin-node-resolve": "^13.3.0", "@rollup/plugin-replace": "^4.0.0", diff --git a/packages/inula/npm/index.js b/packages/inula/npm/index.js index b2c3033b..7cf8fa19 100644 --- a/packages/inula/npm/index.js +++ b/packages/inula/npm/index.js @@ -16,7 +16,7 @@ 'use strict'; if (process.env.NODE_ENV === 'production') { - module.exports = require('./cjs/horizon.production.min.js'); + module.exports = require('./cjs/inula.production.min.js'); } else { - module.exports = require('./cjs/horizon.development.js'); + module.exports = require('./cjs/inula.development.js'); } diff --git a/packages/inula/package.json b/packages/inula/package.json index 87beb67c..bf0d6786 100644 --- a/packages/inula/package.json +++ b/packages/inula/package.json @@ -1,10 +1,10 @@ { - "name": "@cloudsop/horizon", - "description": "Horizon is a JavaScript framework library.", + "name": "inulajs", + "description": "Inulajs is a JavaScript framework library.", "keywords": [ - "horizon" + "inulajs" ], - "version": "0.0.55", + "version": "0.0.1", "homepage": "", "bugs": "", "main": "index.js", @@ -15,7 +15,6 @@ "scripts": { "build": "rollup --config ./scripts/rollup/rollup.config.js", "build-types": "tsc -p tsconfig.build.json || echo \"WARNING: TSC exited with status $?\" && rollup -c ./scripts/rollup/build-types.js", - "build:inula3rdLib-dev": "npm run build & node ./scripts/gen3rdLib.js build:horizon3rdLib-dev", "build:watch": "rollup --watch --config ./scripts/rollup/rollup.config.js", "debug-test": "yarn test --debug", "lint": "eslint . --ext .ts --fix", diff --git a/packages/inula/scripts/__tests__/ActTest/act.test.js b/packages/inula/scripts/__tests__/ActTest/act.test.js index 0687047d..3c5152ed 100644 --- a/packages/inula/scripts/__tests__/ActTest/act.test.js +++ b/packages/inula/scripts/__tests__/ActTest/act.test.js @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/ClassRefs.test.js b/packages/inula/scripts/__tests__/ComponentTest/ClassRefs.test.js index 8948c7ff..edad21a8 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/ClassRefs.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/ClassRefs.test.js @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/JsxElement.test.js b/packages/inula/scripts/__tests__/ComponentTest/JsxElement.test.js index 940ffa21..c1a0f8d1 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/JsxElement.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/JsxElement.test.js @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/EventTest/MouseEnterEvent.test.js b/packages/inula/scripts/__tests__/EventTest/MouseEnterEvent.test.js index 85d89407..56d82159 100644 --- a/packages/inula/scripts/__tests__/EventTest/MouseEnterEvent.test.js +++ b/packages/inula/scripts/__tests__/EventTest/MouseEnterEvent.test.js @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/rollup/build-types.js b/packages/inula/scripts/rollup/build-types.js index f0cdaca9..85146849 100644 --- a/packages/inula/scripts/rollup/build-types.js +++ b/packages/inula/scripts/rollup/build-types.js @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openInula is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * @@ -53,12 +53,12 @@ export function cleanUp(folders) { function buildTypeConfig() { return { - input: ['./build/horizon/@types/index.d.ts'], + input: ['./build/inula/@types/index.d.ts'], output: { - file: './build/horizon/@types/index.d.ts', + file: './build/inula/@types/index.d.ts', format: 'es', }, - plugins: [dts(), cleanUp(['./build/horizon/@types/'])], + plugins: [dts(), cleanUp(['./build/inula/@types/'])], }; } diff --git a/packages/inula/scripts/rollup/rollup.config.js b/packages/inula/scripts/rollup/rollup.config.js index ee8e0119..50fc5075 100644 --- a/packages/inula/scripts/rollup/rollup.config.js +++ b/packages/inula/scripts/rollup/rollup.config.js @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * @@ -27,7 +27,7 @@ const extensions = ['.js', '.ts']; const libDir = path.join(__dirname, '../..'); const rootDir = path.join(__dirname, '../..'); -const outDir = path.join(rootDir, 'build', 'horizon'); +const outDir = path.join(rootDir, 'build', 'inula'); if (!fs.existsSync(path.join(rootDir, 'build'))) { fs.mkdirSync(path.join(rootDir, 'build')); @@ -67,7 +67,7 @@ const getBasicPlugins = mode => { }; function getOutputName(mode) { - return mode === 'production' ? `horizon.${mode}.min.js` : `horizon.${mode}.js`; + return mode === 'production' ? `inula.${mode}.min.js` : `inula.${mode}.js`; } function genConfig(mode) { @@ -83,7 +83,7 @@ function genConfig(mode) { { file: outputResolve('umd', getOutputName(mode)), sourcemap, - name: 'Horizon', + name: 'Inula', format: 'umd', }, ], diff --git a/packages/inula/src/EventTypes.ts b/packages/inula/src/EventTypes.ts index ff2871ad..69d76d10 100644 --- a/packages/inula/src/EventTypes.ts +++ b/packages/inula/src/EventTypes.ts @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * @@ -24,4 +24,4 @@ export type DomTouchEvent = TouchEvent; export type DomPointerEvent = PointerEvent; export type DomTransitionEvent = TransitionEvent; export type DomUIEvent = UIEvent; -export type DomWheelEvent = WheelEvent; \ No newline at end of file +export type DomWheelEvent = WheelEvent; diff --git a/packages/inula/src/event/MouseEvent.ts b/packages/inula/src/event/MouseEvent.ts index ce037a1a..61bc4d82 100644 --- a/packages/inula/src/event/MouseEvent.ts +++ b/packages/inula/src/event/MouseEvent.ts @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/external/TestUtil.ts b/packages/inula/src/external/TestUtil.ts index 32052c3e..b64e15a1 100644 --- a/packages/inula/src/external/TestUtil.ts +++ b/packages/inula/src/external/TestUtil.ts @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/index.ts b/packages/inula/src/index.ts index ee859ede..bb6d92dc 100644 --- a/packages/inula/src/index.ts +++ b/packages/inula/src/index.ts @@ -72,7 +72,7 @@ import { import { syncUpdates as flushSync } from './renderer/TreeBuilder'; import { toRaw } from './inulax/proxy/ProxyHandler'; -const Horizon = { +const Inula = { Children, createRef, Component, @@ -181,4 +181,4 @@ export { }; export * from './types'; -export default Horizon; +export default Inula; diff --git a/packages/inula/src/inulax/proxy/handlers/MapProxy.ts b/packages/inula/src/inulax/proxy/handlers/MapProxy.ts index 0e34672b..efdda1bc 100644 --- a/packages/inula/src/inulax/proxy/handlers/MapProxy.ts +++ b/packages/inula/src/inulax/proxy/handlers/MapProxy.ts @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/handlers/SetProxy.ts b/packages/inula/src/inulax/proxy/handlers/SetProxy.ts index 5841f280..03f3f8ba 100644 --- a/packages/inula/src/inulax/proxy/handlers/SetProxy.ts +++ b/packages/inula/src/inulax/proxy/handlers/SetProxy.ts @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/handlers/WeakMapProxy.ts b/packages/inula/src/inulax/proxy/handlers/WeakMapProxy.ts index cf608de3..0e68a54c 100644 --- a/packages/inula/src/inulax/proxy/handlers/WeakMapProxy.ts +++ b/packages/inula/src/inulax/proxy/handlers/WeakMapProxy.ts @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/handlers/WeakSetProxy.ts b/packages/inula/src/inulax/proxy/handlers/WeakSetProxy.ts index 486646db..7d047e5d 100644 --- a/packages/inula/src/inulax/proxy/handlers/WeakSetProxy.ts +++ b/packages/inula/src/inulax/proxy/handlers/WeakSetProxy.ts @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/jsx-dev-runtime.ts b/packages/inula/src/jsx-dev-runtime.ts index 74cb75f5..c5d084d8 100644 --- a/packages/inula/src/jsx-dev-runtime.ts +++ b/packages/inula/src/jsx-dev-runtime.ts @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/jsx-runtime.ts b/packages/inula/src/jsx-runtime.ts index d43b6f56..1100c3c7 100644 --- a/packages/inula/src/jsx-runtime.ts +++ b/packages/inula/src/jsx-runtime.ts @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/types.ts b/packages/inula/src/types.ts index e652e43d..facbbaf6 100644 --- a/packages/inula/src/types.ts +++ b/packages/inula/src/types.ts @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * InulaJS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/tsconfig.build.json b/packages/inula/tsconfig.build.json index 92623644..9c3955bc 100644 --- a/packages/inula/tsconfig.build.json +++ b/packages/inula/tsconfig.build.json @@ -6,6 +6,6 @@ "declaration": true, "skipLibCheck": true, "emitDeclarationOnly": true, - "declarationDir": "./build/horizon/@types" + "declarationDir": "./build/inula/@types" } -} \ No newline at end of file +}