Skip to content

Commit

Permalink
feat!: rename fusion npm packages to hilla (#191)
Browse files Browse the repository at this point in the history
* feat: rename fusion npm packages to hilla

* fix imports

* more renaming
  • Loading branch information
haijian-vaadin authored Jan 25, 2022
1 parent ec4d8c7 commit 28670a1
Show file tree
Hide file tree
Showing 74 changed files with 11,160 additions and 29,322 deletions.
40,084 changes: 10,963 additions & 29,121 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vaadin/fusion",
"name": "@hilla/hilla",
"private": true,
"description": "Fusion frontend & NodeJS code",
"description": "Hilla frontend & NodeJS code",
"main": "index.js",
"type": "module",
"engines": {
Expand All @@ -23,7 +23,7 @@
},
"repository": {
"type": "git",
"url": "github.com/vaadin/fusion"
"url": "github.com/vaadin/hilla"
},
"author": "Vaadin Ltd",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
final class GeneratorProcessor {
private static final List<GeneratorConfiguration.Plugin> DEFAULT_PLUGINS = Arrays
.asList(new GeneratorConfiguration.Plugin(
"@vaadin/generator-typescript-plugin-client"),
"@hilla/generator-typescript-plugin-client"),
new GeneratorConfiguration.Plugin(
"@vaadin/generator-typescript-plugin-backbone"),
"@hilla/generator-typescript-plugin-backbone"),
new GeneratorConfiguration.Plugin(
"@vaadin/generator-typescript-plugin-barrel"),
"@hilla/generator-typescript-plugin-barrel"),
new GeneratorConfiguration.Plugin(
"@vaadin/generator-typescript-plugin-model"));
"@hilla/generator-typescript-plugin-model"));

private final Log logger;
private final MavenProject project;
Expand Down
8 changes: 4 additions & 4 deletions packages/ts/form/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Vaadin Form
# Hilla Form

[API documentation ↗](https://vaadin.com/docs/latest/fusion/forms/appendix-client-side-form-binding-reference)

[![Latest Stable Version](https://img.shields.io/npm/v/@vaadin/form.svg)](https://www.npmjs.com/package/@vaadin/form)
[![Latest Stable Version](https://img.shields.io/npm/v/@hilla/form.svg)](https://www.npmjs.com/package/@hilla/form)

A set of utilities for building forms with TypeScript and [Lit](https://lit.dev/), including data binding, validation, code generation, backend integration, Lit directives, and more.

A part of the Fusion project.
A part of the Hilla project.

## Installation

```bash
$ npm install @vaadin/form
$ npm install @hilla/form
```

## Contribution
Expand Down
14 changes: 7 additions & 7 deletions packages/ts/form/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@vaadin/form",
"name": "@hilla/form",
"version": "0.0.17",
"description": "Vaadin form utils",
"description": "Hilla form utils",
"main": "index.js",
"module": "index.js",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/vaadin/fusion.git",
"url": "https://github.com/vaadin/hilla.git",
"directory": "packages/ts/form"
},
"keywords": [
"Vaadin",
"Fusion"
"Hilla",
"Form"
],
"scripts": {
"build": "tsc --isolatedModules",
Expand Down Expand Up @@ -51,9 +51,9 @@
"author": "Vaadin Ltd",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/vaadin/fusion/issues"
"url": "https://github.com/vaadin/hilla/issues"
},
"homepage": "https://vaadin.com/fusion",
"homepage": "https://hilla.dev",
"files": [
"*.{d.ts.map,d.ts,js.map,js}"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/ts/form/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ const $wnd = window as any;
$wnd.Vaadin = $wnd.Vaadin || {};
$wnd.Vaadin.registrations = $wnd.Vaadin.registrations || [];
$wnd.Vaadin.registrations.push({
is: '@vaadin/form',
is: '@hilla/form',
version: /* updated-by-script */ '0.0.17',
});
4 changes: 2 additions & 2 deletions packages/ts/form/test/Binder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ describe('form/Binder', () => {
assert.isFalse(binder.invalid);
});

// https://github.com/vaadin/fusion/issues/43
// https://github.com/vaadin/hilla/issues/43
it('should be able to bind to a nested property of an optional parent', async () => {
const superNameNode = binder.for(binder.model.supervisor.fullName);
binder.read({
Expand All @@ -352,7 +352,7 @@ describe('form/Binder', () => {
assert.equal('', superNameNode.value);
});

// https://github.com/vaadin/fusion/issues/43
// https://github.com/vaadin/hilla/issues/43
it('should be able to read a nested property of an optional parent after clear', async () => {
const superNameNode = binder.for(binder.model.supervisor.fullName);
binder.clear();
Expand Down
2 changes: 1 addition & 1 deletion packages/ts/form/test/Index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('form/Index', () => {
await import('../src');
assert.isDefined($wnd.Vaadin);
assert.isArray($wnd.Vaadin.registrations);
const formRegistrations = $wnd.Vaadin.registrations.filter((r: any) => r.is === '@vaadin/form');
const formRegistrations = $wnd.Vaadin.registrations.filter((r: any) => r.is === '@hilla/form');
assert.lengthOf(formRegistrations, 1);
});
});
2 changes: 1 addition & 1 deletion packages/ts/generator-typescript-cli/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Fusion TypeScript Generator
# Hilla TypeScript Generator
18 changes: 9 additions & 9 deletions packages/ts/generator-typescript-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vaadin/generator-typescript-cli",
"name": "@hilla/generator-typescript-cli",
"version": "0.0.17",
"description": "A Fusion tool to generate TypeScript code from the OpenAPI document",
"description": "A Hilla tool to generate TypeScript code from the OpenAPI document",
"main": "index.js",
"type": "module",
"engines": {
Expand All @@ -18,20 +18,20 @@
},
"repository": {
"type": "git",
"url": "https://github.com/vaadin/fusion.git",
"url": "https://github.com/vaadin/hilla.git",
"directory": "packages/ts/generator-typescript-cli"
},
"keywords": [
"fusion",
"hilla",
"typescript",
"generator"
],
"author": "Vaadin Ltd.",
"license": "Apache 2.0",
"bugs": {
"url": "https://github.com/vaadin/fusion/issues"
"url": "https://github.com/vaadin/hilla/issues"
},
"homepage": "https://vaadin.com/fusion",
"homepage": "https://hilla.dev",
"files": [
"*.{d.ts.map,d.ts,js.map,js}"
],
Expand All @@ -42,10 +42,10 @@
"tsgen": "bin/index.js"
},
"peerDependencies": {
"@vaadin/generator-typescript-core": "^0.0.17"
"@hilla/generator-typescript-core": "^0.0.17"
},
"dependencies": {
"@vaadin/generator-typescript-utils": "^0.0.17",
"@hilla/generator-typescript-utils": "^0.0.17",
"meow": "^10.1.1"
},
"devDependencies": {
Expand All @@ -54,7 +54,7 @@
"@types/node": "^16.11.1",
"@types/sinon": "^10.0.6",
"@types/sinon-chai": "^3.2.5",
"@vaadin/generator-typescript-core": "^0.0.17",
"@hilla/generator-typescript-core": "^0.0.17",
"c8": "^7.10.0",
"chai": "^4.3.4",
"concurrently": "^6.3.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/ts/generator-typescript-cli/src/GeneratorIO.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type File from '@vaadin/generator-typescript-core/File.js';
import Plugin, { PluginConstructor } from '@vaadin/generator-typescript-core/Plugin.js';
import type LoggerFactory from '@vaadin/generator-typescript-utils/LoggerFactory.js';
import type File from '@hilla/generator-typescript-core/File.js';
import Plugin, { PluginConstructor } from '@hilla/generator-typescript-core/Plugin.js';
import type LoggerFactory from '@hilla/generator-typescript-utils/LoggerFactory.js';
import { mkdir, readFile, rm, writeFile } from 'fs/promises';
import { createRequire } from 'module';
import { dirname, isAbsolute, join, resolve } from 'path';
Expand Down
4 changes: 2 additions & 2 deletions packages/ts/generator-typescript-cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Generator from '@vaadin/generator-typescript-core/Generator.js';
import LoggerFactory from '@vaadin/generator-typescript-utils/LoggerFactory.js';
import Generator from '@hilla/generator-typescript-core/Generator.js';
import LoggerFactory from '@hilla/generator-typescript-utils/LoggerFactory.js';
import meow from 'meow';
import GeneratorIO from './GeneratorIO.js';
import { processInput } from './utils.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/ts/generator-typescript-core/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Fusion TypeScript Generator
# Hilla TypeScript Generator
14 changes: 7 additions & 7 deletions packages/ts/generator-typescript-core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vaadin/generator-typescript-core",
"name": "@hilla/generator-typescript-core",
"version": "0.0.17",
"description": "A Fusion tool to generate TypeScript code from the OpenAPI document",
"description": "A Hilla tool to generate TypeScript code from the OpenAPI document",
"main": "index.js",
"type": "module",
"engines": {
Expand Down Expand Up @@ -42,20 +42,20 @@
},
"repository": {
"type": "git",
"url": "https://github.com/vaadin/fusion.git",
"url": "https://github.com/vaadin/hilla.git",
"directory": "packages/ts/generator-typescript-core"
},
"keywords": [
"fusion",
"hilla",
"typescript",
"generator"
],
"author": "Vaadin Ltd.",
"license": "Apache 2.0",
"bugs": {
"url": "https://github.com/vaadin/fusion/issues"
"url": "https://github.com/vaadin/hilla/issues"
},
"homepage": "https://vaadin.com/fusion",
"homepage": "https://hilla.dev",
"files": [
"*.{d.ts.map,d.ts,js.map,js}"
],
Expand All @@ -64,7 +64,7 @@
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.0.3",
"@vaadin/generator-typescript-utils": "^0.0.17",
"@hilla/generator-typescript-utils": "^0.0.17",
"meow": "^10.1.1",
"openapi-types": "^9.3.0",
"typescript": "^4.5.0-beta"
Expand Down
2 changes: 1 addition & 1 deletion packages/ts/generator-typescript-core/src/Generator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwaggerParser from '@apidevtools/swagger-parser';
import type LoggerFactory from '@vaadin/generator-typescript-utils/LoggerFactory.js';
import type LoggerFactory from '@hilla/generator-typescript-utils/LoggerFactory.js';
import type { OpenAPIV3 } from 'openapi-types';
import type { ReadonlyDeep } from 'type-fest';
import ts from 'typescript';
Expand Down
4 changes: 2 additions & 2 deletions packages/ts/generator-typescript-core/src/Plugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Logger } from '@vaadin/generator-typescript-utils/LoggerFactory.js';
import type LoggerFactory from '@vaadin/generator-typescript-utils/LoggerFactory.js';
import type { Logger } from '@hilla/generator-typescript-utils/LoggerFactory.js';
import type LoggerFactory from '@hilla/generator-typescript-utils/LoggerFactory.js';
import type { Constructor } from 'type-fest';
import type ReferenceResolver from './ReferenceResolver.js';
import type SharedStorage from './SharedStorage.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/ts/generator-typescript-core/src/PluginManager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type LoggerFactory from '@vaadin/generator-typescript-utils/LoggerFactory.js';
import type LoggerFactory from '@hilla/generator-typescript-utils/LoggerFactory.js';
import type Plugin from './Plugin.js';
import type { PluginConstructor } from './Plugin.js';
import type ReferenceResolver from './ReferenceResolver.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/ts/generator-typescript-plugin-backbone/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Fusion TypeScript Generator Backbone Plugin
# Hilla TypeScript Generator Backbone Plugin
22 changes: 11 additions & 11 deletions packages/ts/generator-typescript-plugin-backbone/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vaadin/generator-typescript-plugin-backbone",
"name": "@hilla/generator-typescript-plugin-backbone",
"version": "0.0.17",
"description": "A Fusion TypeScript Generator plugin to generate basic code",
"description": "A Hilla TypeScript Generator plugin to generate basic code",
"main": "index.js",
"type": "module",
"engines": {
Expand All @@ -28,32 +28,32 @@
},
"repository": {
"type": "git",
"url": "https://github.com/vaadin/fusion.git",
"url": "https://github.com/vaadin/hilla.git",
"directory": "packages/ts/generator-typescript-plugin-backbone"
},
"keywords": [
"fusion",
"hilla",
"typescript",
"generator"
],
"author": "Vaadin Ltd.",
"license": "Apache 2.0",
"bugs": {
"url": "https://github.com/vaadin/fusion/issues"
"url": "https://github.com/vaadin/hilla/issues"
},
"homepage": "https://vaadin.com/fusion",
"homepage": "https://hilla.dev",
"files": [
"*.{d.ts.map,d.ts,js.map,js}"
],
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@vaadin/generator-typescript-core": "^0.0.17",
"@vaadin/generator-typescript-plugin-client": "^0.0.17"
"@hilla/generator-typescript-core": "^0.0.17",
"@hilla/generator-typescript-plugin-client": "^0.0.17"
},
"dependencies": {
"@vaadin/generator-typescript-utils": "^0.0.17",
"@hilla/generator-typescript-utils": "^0.0.17",
"fast-deep-equal": "^3.1.3",
"openapi-types": "^9.3.0",
"typescript": "^4.5.2"
Expand All @@ -64,8 +64,8 @@
"@types/node": "^16.11.1",
"@types/sinon": "^10.0.6",
"@types/sinon-chai": "^3.2.5",
"@vaadin/generator-typescript-core": "^0.0.17",
"@vaadin/generator-typescript-plugin-client": "^0.0.17",
"@hilla/generator-typescript-core": "^0.0.17",
"@hilla/generator-typescript-plugin-client": "^0.0.17",
"c8": "^7.10.0",
"chai": "^4.3.4",
"concurrently": "^6.4.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type Plugin from '@vaadin/generator-typescript-core/Plugin.js';
import ClientPlugin from '@vaadin/generator-typescript-plugin-client';
import type DependencyManager from '@vaadin/generator-typescript-utils/dependencies/DependencyManager.js';
import type Plugin from '@hilla/generator-typescript-core/Plugin.js';
import ClientPlugin from '@hilla/generator-typescript-plugin-client';
import type DependencyManager from '@hilla/generator-typescript-utils/dependencies/DependencyManager.js';
import equal from 'fast-deep-equal';
import { OpenAPIV3 } from 'openapi-types';
import type { ReadonlyDeep } from 'type-fest';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type Plugin from '@vaadin/generator-typescript-core/Plugin.js';
import type Plugin from '@hilla/generator-typescript-core/Plugin.js';
import {
isEmptyObject,
isObjectSchema,
NonEmptyObjectSchema,
Schema,
} from '@vaadin/generator-typescript-core/Schema.js';
import type DependencyManager from '@vaadin/generator-typescript-utils/dependencies/DependencyManager.js';
} from '@hilla/generator-typescript-core/Schema.js';
import type DependencyManager from '@hilla/generator-typescript-utils/dependencies/DependencyManager.js';
import type { OpenAPIV3 } from 'openapi-types';
import type { ReadonlyDeep } from 'type-fest';
import type { ObjectLiteralExpression, ParameterDeclaration } from 'typescript';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type Plugin from '@vaadin/generator-typescript-core/Plugin.js';
import type DependencyManager from '@vaadin/generator-typescript-utils/dependencies/DependencyManager';
import type Plugin from '@hilla/generator-typescript-core/Plugin.js';
import type DependencyManager from '@hilla/generator-typescript-utils/dependencies/DependencyManager';
import type { OpenAPIV3 } from 'openapi-types';
import type { ReadonlyDeep } from 'type-fest';
import type { TypeNode } from 'typescript';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type Plugin from '@vaadin/generator-typescript-core/Plugin.js';
import ClientPlugin from '@vaadin/generator-typescript-plugin-client';
import createSourceFile from '@vaadin/generator-typescript-utils/createSourceFile.js';
import DependencyManager from '@vaadin/generator-typescript-utils/dependencies/DependencyManager.js';
import PathManager from '@vaadin/generator-typescript-utils/dependencies/PathManager.js';
import type Plugin from '@hilla/generator-typescript-core/Plugin.js';
import ClientPlugin from '@hilla/generator-typescript-plugin-client';
import createSourceFile from '@hilla/generator-typescript-utils/createSourceFile.js';
import DependencyManager from '@hilla/generator-typescript-utils/dependencies/DependencyManager.js';
import PathManager from '@hilla/generator-typescript-utils/dependencies/PathManager.js';
import { OpenAPIV3 } from 'openapi-types';
import type { ReadonlyDeep } from 'type-fest';
import type { SourceFile, Statement } from 'typescript';
Expand Down
Loading

0 comments on commit 28670a1

Please sign in to comment.