diff --git a/.gitpod.yml b/.gitpod.yml index 4558401..9cf6908 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,7 +1,21 @@ -tasks: - - init: pnpm install gulp ultra-runner -g - - task: pnpm install -r - - task: ultra build - - task: ultra pnpm demo:watch --filter *native image: - file: .gitpod.Dockerfile + file: .gitpod.Dockerfile + +# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/43_config_ports/ +ports: + - port: 3000 + onOpen: open-browser + - port: 3001 + onOpen: ignore + +# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/44_config_start_tasks/ +tasks: + - command: > + pnpm install gulp ultra-runner -g && + pnpm install -r && + ultra build && + ultra pnpm demo:watch --filter *native + +vscode: + extensions: + - vivaxy.vscode-conventional-commits@1.13.0:zCJe2ITK+hf+3DCumvNLfA== \ No newline at end of file diff --git a/.theia/settings.json b/.theia/settings.json new file mode 100644 index 0000000..27c5cd2 --- /dev/null +++ b/.theia/settings.json @@ -0,0 +1,3 @@ +{ + "editor.autoSave": "on" +} \ No newline at end of file diff --git a/README.md b/README.md index 3fa2c9b..7a660ca 100644 --- a/README.md +++ b/README.md @@ -1,57 +1,59 @@ # Native -`native` is a framework which aims to make it easy to create complex, light-weight, and performant web applications using modern js api's. +`native` is a framework which aims to make it easy to create complex, light-weight, and performant web applications using modern js api's. You can play with `@okikio/native` using Gitpod: -[![Edit with Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/okikio/native/tree/master/packages/native) +[![Edit with Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/okikio/native) Once Gitpod has booted up, go to the `./packages/native/build folder` and start tweaking and testing to your hearts content. +_Note: if an error occurs that stops the build script, just type into the terminal_ -*Note: if an error occurs that stops the build script, just type into the terminal* ```bash ultra pnpm demo:watch --filter *native ``` ## Table of Contents -- [Native](#native) - - [Table of Contents](#table-of-contents) - - [Getting started](#getting-started) - - [@okikio/manager](#okikiomanager) - - [@okikio/emitter](#okikioemitter) - - [@okikio/animate](#okikioanimate) - - [@okikio/native](#okikionative) - - [Usage](#usage) - - [Demo](#demo) - - [Contributing](#contributing) - - [Licence](#licence) + +- [Native](#native) + - [Table of Contents](#table-of-contents) + - [Getting started](#getting-started) + - [@okikio/manager](#okikiomanager) + - [@okikio/emitter](#okikioemitter) + - [@okikio/animate](#okikioanimate) + - [@okikio/native](#okikionative) + - [Usage](#usage) + - [Demo](#demo) + - [Contributing](#contributing) + - [Licence](#licence) ## Getting started -`native` is a monorepo with 4 smaller packages within it, they are: +`native` is a monorepo with 4 smaller packages within it, they are: ### [@okikio/manager](./packages/manager) - * A superset of the Map class, it gives Map superpowers. The Map class is the most efficient way to handle large amounts of controlled data, but it has some inconvient quirks that would be annoying to handle, so I built this package to avoid some of it's quirks. - * *Note: you can install it as a seperate package from the rest of the `native` framework.* - * [Read more...](./packages/manager/README.md) +- A superset of the Map class, it gives Map superpowers. The Map class is the most efficient way to handle large amounts of controlled data, but it has some inconvient quirks that would be annoying to handle, so I built this package to avoid some of it's quirks. +- _Note: you can install it as a seperate package from the rest of the `native` framework._ +- [Read more...](./packages/manager/README.md) ### [@okikio/emitter](./packages/emitter) - * A small event emitter written in typescript with performance and ease of use in mind. It's pretty self explanitory, there are millions of event emitters like this one, the only difference is that this one is optimized for use in the `native` framework. - * *Note: you can install it as a seperate package from the rest of the `native` framework.* - * [Read more...](./packages/emitter/README.md) +- A small event emitter written in typescript with performance and ease of use in mind. It's pretty self explanitory, there are millions of event emitters like this one, the only difference is that this one is optimized for use in the `native` framework. +- _Note: you can install it as a seperate package from the rest of the `native` framework._ +- [Read more...](./packages/emitter/README.md) ### [@okikio/animate](./packages/animate) - * A truly native animation library that takes full advantage of the Web Animation API to create amazingly pollished experiences on all devices. The animation library takes this approach because of the connundrum that occured when mobile devices started being built with 120hz screens. Before this point most devices were 60hz, so developers built for 60hz, but this caused many users to lose out on the benefits of their 120hz device. To future proof animation in an easy to use and effiecient manner, I built this library as a light wrapper around the Web Animation API, that takes on conventional means for creating animation today, allowing developers to get started with modern animation today. - * *Note: you can install it as a seperate package from the rest of the `native` framework.* - * [Read more...](./packages/animate/README.md) +- A truly native animation library that takes full advantage of the Web Animation API to create amazingly pollished experiences on all devices. The animation library takes this approach because of the connundrum that occured when mobile devices started being built with 120hz screens. Before this point most devices were 60hz, so developers built for 60hz, but this caused many users to lose out on the benefits of their 120hz device. To future proof animation in an easy to use and effiecient manner, I built this library as a light wrapper around the Web Animation API, that takes on conventional means for creating animation today, allowing developers to get started with modern animation today. +- _Note: you can install it as a seperate package from the rest of the `native` framework._ +- [Read more...](./packages/animate/README.md) ### [@okikio/native](./packages/native) - * This is the core component of the framework, it bundles all the other packages into iteself. This package encourages the user to download/copy-and-paste the code into their development enviroment of choice, and tweak it to match their projects needs. This package (like all other packages in the `native` framework) is built for ES2020, it expects the user to use a build tool to support older versions of browsers, the idea being most people are using evergreen browsers, so, why are web developers piling on polyfill code that most users don't need. - * [Read more...](./packages/native/README.md) + +- This is the core component of the framework, it bundles all the other packages into iteself. This package encourages the user to download/copy-and-paste the code into their development enviroment of choice, and tweak it to match their projects needs. This package (like all other packages in the `native` framework) is built for ES2020, it expects the user to use a build tool to support older versions of browsers, the idea being most people are using evergreen browsers, so, why are web developers piling on polyfill code that most users don't need. +- [Read more...](./packages/native/README.md) This framework works with the assumtion that the user will use a build tool and a polyfill library to ensure all components work in older browser, I suggest `esbuild`, `rollup`, or `webpack`, and for polyfills `babel` or `polyfill.io`. @@ -60,10 +62,13 @@ This framework works with the assumtion that the user will use a build tool and Located in [./packages/native/build](https://github.com/okikio/native/tree/master/packages/native/build), you will find multiple build files that can help you create your setup. The [/pug folder](https://github.com/okikio/native/tree/master/packages/native/build/pug) contains [pug](https://pugjs.org/api/getting-started.html) files that format my html in a clean and clear way. The [/sass folder](https://github.com/okikio/native/tree/master/packages/native/build/sass) contains [scss](https://sass-lang.com/guide) files that allow for modern css without the need of polyfills. The [/ts folder](https://github.com/okikio/native/tree/master/packages/native/build/ts) contains [typescript](https://www.typescriptlang.org/) files that the framework runs on; typescript is used because Intellisense is better with typescript. Outside the build folder, the [gulpfile.js](https://github.com/okikio/native/tree/master/packages/native/gulpfile.js) file, is part of my [gulp](https://gulpjs.com/) config, and is the tool I use to build the demo. For your project other tools should also work with some tweaks. Explore the files stated above to learn how to get started. Read more about `native` in the [@okikio/native README](./packages/native/README.md). Explore the other packages as well to learn how they all work together. ## Demo -> [View a demo →](https://okikio.github.io/native/packages/native/demo/) + +> [View a demo →](https://okikio.github.io/native/packages/native/demo/) ## Contributing + If there is something I missed, a mistake, or a feature you would like added please create an issue or a pull request and I'll try to get to it. ## Licence + See the [LICENSE](./LICENSE) file for license rights and limitations (MIT). diff --git a/packages/animate/.gitpod.yml b/packages/animate/.gitpod.yml index 57c3c53..557e99d 100644 --- a/packages/animate/.gitpod.yml +++ b/packages/animate/.gitpod.yml @@ -1,7 +1,21 @@ -tasks: - - init: pnpm install gulp ultra-runner -g - - task: pnpm install -r - - task: ultra build - - task: ultra demo:watch image: - file: .gitpod.Dockerfile + file: .gitpod.Dockerfile + +# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/43_config_ports/ +ports: + - port: 3000 + onOpen: open-browser + - port: 3001 + onOpen: ignore + +# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/44_config_start_tasks/ +tasks: + - command: > + pnpm install gulp ultra-runner -g && + pnpm install -r && + ultra build && + ultra demo:watch + +vscode: + extensions: + - vivaxy.vscode-conventional-commits@1.13.0:zCJe2ITK+hf+3DCumvNLfA== diff --git a/packages/emitter/.gitpod.yml b/packages/emitter/.gitpod.yml index dd3120e..4c9d764 100644 --- a/packages/emitter/.gitpod.yml +++ b/packages/emitter/.gitpod.yml @@ -1,7 +1,21 @@ -tasks: - - init: pnpm install gulp ultra-runner -g - - task: pnpm install -r - - task: ultra build - - task: ultra test:watch image: - file: .gitpod.Dockerfile + file: .gitpod.Dockerfile + +# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/43_config_ports/ +ports: + - port: 3000 + onOpen: open-browser + - port: 3001 + onOpen: ignore + +# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/44_config_start_tasks/ +tasks: + - command: > + pnpm install gulp ultra-runner -g && + pnpm install -r && + ultra build && + ultra test:watch + +vscode: + extensions: + - vivaxy.vscode-conventional-commits@1.13.0:zCJe2ITK+hf+3DCumvNLfA== diff --git a/packages/manager/.gitpod.yml b/packages/manager/.gitpod.yml index dd3120e..4c9d764 100644 --- a/packages/manager/.gitpod.yml +++ b/packages/manager/.gitpod.yml @@ -1,7 +1,21 @@ -tasks: - - init: pnpm install gulp ultra-runner -g - - task: pnpm install -r - - task: ultra build - - task: ultra test:watch image: - file: .gitpod.Dockerfile + file: .gitpod.Dockerfile + +# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/43_config_ports/ +ports: + - port: 3000 + onOpen: open-browser + - port: 3001 + onOpen: ignore + +# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/44_config_start_tasks/ +tasks: + - command: > + pnpm install gulp ultra-runner -g && + pnpm install -r && + ultra build && + ultra test:watch + +vscode: + extensions: + - vivaxy.vscode-conventional-commits@1.13.0:zCJe2ITK+hf+3DCumvNLfA== diff --git a/packages/native/.gitpod.yml b/packages/native/.gitpod.yml index 57c3c53..557e99d 100644 --- a/packages/native/.gitpod.yml +++ b/packages/native/.gitpod.yml @@ -1,7 +1,21 @@ -tasks: - - init: pnpm install gulp ultra-runner -g - - task: pnpm install -r - - task: ultra build - - task: ultra demo:watch image: - file: .gitpod.Dockerfile + file: .gitpod.Dockerfile + +# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/43_config_ports/ +ports: + - port: 3000 + onOpen: open-browser + - port: 3001 + onOpen: ignore + +# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/44_config_start_tasks/ +tasks: + - command: > + pnpm install gulp ultra-runner -g && + pnpm install -r && + ultra build && + ultra demo:watch + +vscode: + extensions: + - vivaxy.vscode-conventional-commits@1.13.0:zCJe2ITK+hf+3DCumvNLfA== diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e01043a..be6e756 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1923,6 +1923,7 @@ packages: dependencies: follow-redirects: 1.5.10 is-buffer: 2.0.5 + deprecated: 'Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410' dev: false resolution: integrity: sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ== @@ -2961,7 +2962,7 @@ packages: JSONStream: 1.3.5 is-text-path: 1.0.1 lodash: 4.17.20 - meow: 8.0.0 + meow: 8.1.0 split2: 2.2.0 through2: 4.0.2 trim-off-newlines: 1.0.1 @@ -4693,7 +4694,7 @@ packages: dependencies: dargs: 7.0.0 lodash.template: 4.5.0 - meow: 8.0.0 + meow: 8.1.0 split2: 2.2.0 through2: 4.0.2 dev: false @@ -5175,7 +5176,7 @@ packages: depd: 1.1.2 inherits: 2.0.3 setprototypeof: 1.1.0 - statuses: 1.5.0 + statuses: 1.4.0 dev: false engines: node: '>= 0.6' @@ -7021,7 +7022,7 @@ packages: integrity: sha512-3YffViIt2QWgTy6Pale5QpopX/IvU3LPL03jOTqp6pGj3VjesdO/U8CuHMKpnQr4shCNCM5fd5XFFvIIl6JBHg== registry: 'https://registry.npmjs.com/' tarball: 'https://registry.npmjs.com/meow/-/meow-6.1.1.tgz' - /meow/8.0.0: + /meow/8.1.0: dependencies: '@types/minimist': 1.2.1 camelcase-keys: 6.2.2 @@ -7038,9 +7039,7 @@ packages: engines: node: '>=10' resolution: - integrity: sha512-nbsTRz2fwniJBFgUkcdISq8y/q9n9VbiHYbfwklFh5V4V2uAcxtKQkDc0yCLPM/kP0d+inZBewn3zJqewHE7kg== - registry: 'https://registry.npmjs.com/' - tarball: 'https://registry.npmjs.com/meow/-/meow-8.0.0.tgz' + integrity: sha512-fNWkgM1UVMey2kf24yLiccxLihc5W+6zVus3/N0b+VfnJgxV99E9u04X6NAiKdg6ED7DAQBX5sy36NM0QJZkWA== /merge-stream/2.0.0: dev: false resolution: