Skip to content

Commit

Permalink
Guess who didn't check whether zapp name is available on npm
Browse files Browse the repository at this point in the history
  • Loading branch information
j-piasecki committed Sep 28, 2022
1 parent 91f9437 commit 6d3fd5b
Show file tree
Hide file tree
Showing 122 changed files with 94 additions and 73 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
paths:
- '.github/workflows/run-core-tests.yml'
- '@zapp/core/**'
- '@zapp-framework/core/**'
push:
branches:
- main
Expand Down Expand Up @@ -33,5 +33,5 @@ jobs:
run: yarn install --frozen-lockfile

- name: Run tests
working-directory: ./@zapp/core
working-directory: ./@zapp-framework/core
run: yarn test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.yarn
build
**/dist/bundle.js
**/dist/bundle.js
.DS_Store
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@zapp/core",
"name": "@zapp-framework/core",
"version": "0.1.0",
"description": "",
"license": "MIT",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions @zapp/ui/package.json → @zapp-framework/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@zapp/ui",
"name": "@zapp-framework/ui",
"version": "0.1.0",
"description": "",
"license": "MIT",
Expand All @@ -20,13 +20,13 @@
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"@zapp/core": "*",
"@zapp-framework/core": "*",
"eslint": "^8.22.0",
"prettier": "^2.7.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
},
"peerDependencies": {
"@zapp/core": "*"
"@zapp-framework/core": "*"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Stack,
withRepeat,
withTiming,
} from '@zapp/core'
} from '@zapp-framework/core'
import { Theme } from './Theme.js'

interface ActivityIndicatorConfigType extends ConfigType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
withTiming,
Easing,
Color,
} from '@zapp/core'
} from '@zapp-framework/core'
import { popTextColor, popTextSize, pushTextColor, pushTextSize } from './Text.js'
import { Theme } from './Theme.js'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
StackAlignment,
StackConfig,
withTiming,
} from '@zapp/core'
} from '@zapp-framework/core'
import { Theme } from './Theme.js'

interface CheckBoxConfigType extends ConfigType {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ConfigBuilder, Stack } from '@zapp/core'
import { ConfigBuilder, Stack } from '@zapp-framework/core'
import { Theme } from './Theme.js'

export class DividerConfigBuilder extends ConfigBuilder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
StackAlignment,
StackConfig,
Zapp,
} from '@zapp/core'
} from '@zapp-framework/core'
import { Theme } from './Theme.js'

const DOT_SIZE = px(16)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
StackAlignment,
StackConfig,
withTiming,
} from '@zapp/core'
} from '@zapp-framework/core'
import { Theme } from './Theme.js'

interface RadioGroupConfigType extends ConfigType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
withTiming,
Easing,
Color,
} from '@zapp/core'
} from '@zapp-framework/core'
import { Theme } from './Theme.js'

interface SwitchConfigType extends ConfigType {
Expand Down
2 changes: 1 addition & 1 deletion @zapp/ui/src/Text.ts → @zapp-framework/ui/src/Text.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TextConfig, BareText } from '@zapp/core'
import { TextConfig, BareText } from '@zapp-framework/core'
import { Theme } from './Theme.js'

const nextColors: number[] = []
Expand Down
2 changes: 1 addition & 1 deletion @zapp/ui/src/Theme.ts → @zapp-framework/ui/src/Theme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Zapp } from '@zapp/core'
import { Zapp } from '@zapp-framework/core'

const SAVED_THEME_KEY = 'zapp#theme'

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions @zapp/web/package.json → @zapp-framework/watch/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@zapp/web",
"name": "@zapp-framework/watch",
"version": "0.1.0",
"description": "",
"license": "MIT",
Expand All @@ -20,13 +20,13 @@
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"@zapp/core": "*",
"@zapp-framework/core": "*",
"eslint": "^8.22.0",
"prettier": "^2.7.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
},
"peerDependencies": {
"@zapp/core": "*"
"@zapp-framework/core": "*"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApplicationConfig } from '@zapp/core'
import { ApplicationConfig } from '@zapp-framework/core'
import { NavigatorData } from './Navigator.js'
import { KeyValueStorage } from './KeyValueStorage.js'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RememberedMutableValue, rememberObservable } from '@zapp/core'
import { RememberedMutableValue, rememberObservable } from '@zapp-framework/core'

function stringToArrayBuffer(str: string) {
const buf = new ArrayBuffer(str.length * 2) // 2 bytes for each char
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NavigatorInterface, RegisteredCallback, WorkingTree, SavedTreeState } from '@zapp/core'
import { NavigatorInterface, RegisteredCallback, WorkingTree, SavedTreeState } from '@zapp-framework/core'

interface SavedState {
treeState: SavedTreeState
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
PointerEventType,
PointerEventManager,
Alignment,
} from '@zapp/core'
} from '@zapp-framework/core'
import { Direction } from './types.js'

const { width: DEVICE_WIDTH, height: DEVICE_HEIGHT } = hmSetting.getDeviceInfo()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Renderer,
Animation,
GlobalEventManager,
} from '@zapp/core'
} from '@zapp-framework/core'
import { tryUpdatingRememberedPagePositions } from './screens/ScreenPager.js'
import { tryUpdatingRememberedScrollPositions } from './screens/ScrollableScreen.js'
import { viewManagerInstance } from './WatchViewManager.js'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
__setSimpleScreenImplementation,
__setNavigator,
__setApplicationImplementation,
} from '@zapp/core'
} from '@zapp-framework/core'
import { viewManagerInstance } from './WatchViewManager.js'
import { ZappWatch } from './ZappWatch.js'
import { SimpleScreen } from './screens/SimpleScreen.js'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
GestureType,
EventType,
ButtonAction,
} from '@zapp/core'
} from '@zapp-framework/core'

function mapGesture(gesture: unknown): GestureType {
switch (gesture) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
ScreenBody,
sideEffect,
PointerEventManager,
} from '@zapp/core'
} from '@zapp-framework/core'
import { PageWrapper } from './PageWrapper.js'
import { viewManagerInstance } from './../WatchViewManager.js'
import { Direction } from './../types.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { ScreenBody, ConfigBuilder, RememberedMutableValue, rememberObservable, PointerEventManager } from '@zapp/core'
import {
ScreenBody,
ConfigBuilder,
RememberedMutableValue,
rememberObservable,
PointerEventManager,
} from '@zapp-framework/core'
import { PageWrapper } from './PageWrapper.js'
import { viewManagerInstance } from './../WatchViewManager.js'
import { navigatorInstance } from '../Navigator.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ScreenBody, ConfigBuilder } from '@zapp/core'
import { ScreenBody, ConfigBuilder } from '@zapp-framework/core'
import { PageWrapper } from './PageWrapper.js'
import { viewManagerInstance } from './../WatchViewManager.js'

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions @zapp/watch/package.json → @zapp-framework/web/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@zapp/watch",
"name": "@zapp-framework/web",
"version": "0.1.0",
"description": "",
"license": "MIT",
Expand All @@ -20,13 +20,13 @@
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"@zapp/core": "*",
"@zapp-framework/core": "*",
"eslint": "^8.22.0",
"prettier": "^2.7.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
},
"peerDependencies": {
"@zapp/core": "*"
"@zapp-framework/core": "*"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApplicationConfig } from '@zapp/core'
import { ApplicationConfig } from '@zapp-framework/core'

export function Application(config: ApplicationConfig) {
config.onInit?.()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SavedTreeState, WorkingTree, NavigatorInterface, RegisteredCallback } from '@zapp/core'
import { SavedTreeState, WorkingTree, NavigatorInterface, RegisteredCallback } from '@zapp-framework/core'

const historyStack: SavedTreeState[] = []
const registeredCallbacks: RegisteredCallback[] = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
PointerEventType,
PointerEventManager,
Alignment,
} from '@zapp/core'
} from '@zapp-framework/core'

const SVG_NS = 'http://www.w3.org/2000/svg'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
EventType,
ButtonAction,
ScreenShape,
} from '@zapp/core'
} from '@zapp-framework/core'

export class ZappWeb extends ZappInterface {
private running = false
Expand Down
7 changes: 6 additions & 1 deletion @zapp/web/src/index.ts → @zapp-framework/web/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { __setViewManager, __setZappInterface, __setNavigator, __setApplicationImplementation } from '@zapp/core'
import {
__setViewManager,
__setZappInterface,
__setNavigator,
__setApplicationImplementation,
} from '@zapp-framework/core'
import { WebViewManager } from './WebViewManager.js'
import { ZappWeb } from './ZappWeb.js'
import { HashNavigator } from './HashNavigator.js'
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"private":"true",
"private": "true",
"scripts": {
"build": "cd @zapp/core && yarn build && cd .. && cd web && yarn build && cd .. && cd watch && yarn build && cd .. && cd ui && yarn build"
"build": "cd @zapp-framework/core && yarn build && cd .. && cd web && yarn build && cd .. && cd watch && yarn build && cd .. && cd ui && yarn build"
},
"workspaces": [
"@zapp/*",
"@zapp-framework/*",
"web-test",
"watch-test"
]
Expand Down
6 changes: 3 additions & 3 deletions watch-test/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '@zapp/watch'
import { setTheme } from '@zapp/ui'
import { Application } from '@zapp/core'
import '@zapp-framework/watch'
import { setTheme } from '@zapp-framework/ui'
import { Application } from '@zapp-framework/core'

Application({
onInit() {
Expand Down
6 changes: 3 additions & 3 deletions watch-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"author": "",
"license": "ISC",
"dependencies": {
"@zapp/core": "*",
"@zapp/ui": "*",
"@zapp/watch": "*"
"@zapp-framework/core": "*",
"@zapp-framework/ui": "*",
"@zapp-framework/watch": "*"
},
"devDependencies": {
"@zeppos/device-types": "^1.0.0"
Expand Down
6 changes: 3 additions & 3 deletions watch-test/page/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '@zapp/watch'
import { ActivityIndicator, ActivityIndicatorConfig, Theme } from '@zapp/ui'
import '@zapp-framework/watch'
import { ActivityIndicator, ActivityIndicatorConfig, Theme } from '@zapp-framework/ui'
import {
SimpleScreen,
Stack,
Expand All @@ -23,7 +23,7 @@ import {
registerCrownEventHandler,
Image,
ImageConfig,
} from '@zapp/core'
} from '@zapp-framework/core'

let cycle = [
Arrangement.SpaceEvenly,
Expand Down
4 changes: 2 additions & 2 deletions watch-test/page/page1.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@zapp/watch'
import '@zapp-framework/watch'
import {
SimpleScreen,
Stack,
Expand All @@ -20,7 +20,7 @@ import {
ArcConfig,
Navigator,
registerGestureEventHandler,
} from '@zapp/core'
} from '@zapp-framework/core'

SimpleScreen(Config('screen'), (params) => {
Column(
Expand Down
4 changes: 2 additions & 2 deletions watch-test/page/page2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@zapp/watch'
import '@zapp-framework/watch'
import {
SimpleScreen,
Stack,
Expand All @@ -21,7 +21,7 @@ import {
Navigator,
registerHomeButtonEventHandler,
registerShortcutButtonEventHandler,
} from '@zapp/core'
} from '@zapp-framework/core'

SimpleScreen(Config('screen'), (params) => {
Column(
Expand Down
4 changes: 2 additions & 2 deletions watch-test/page/page3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@zapp/watch'
import '@zapp-framework/watch'
import {
SimpleScreen,
Stack,
Expand All @@ -21,7 +21,7 @@ import {
Navigator,
rememberLauncherForResult,
registerCrownEventHandler,
} from '@zapp/core'
} from '@zapp-framework/core'

SimpleScreen(Config('screen'), (params) => {
const selectedNumber = remember(-1)
Expand Down
Loading

0 comments on commit 6d3fd5b

Please sign in to comment.