Code Monkey home page Code Monkey logo

osjs-dev-meta's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

osjs-dev-meta's Issues

Include Jest

Testing suite belongs in this repo so that it can be locked globally instead of in the CI stages.

Makes it a heck of a lot easier to run tests locally as well, and out of the box.

Probably best to start with @^26 as it is today to ensure all tests run fine. Then upgrade to latest. This way packages with failing tests can just stage their update of this meta library.


Split out from os-js/osjs-client#185 (comment)

It's version locked in the CI because latest Jest seems to trigger some kind of edge case that leaves certain tests hanging. Haven't had time to look into it. Might actually just be a thing in the server codebase come to think of it.

Ideally it should be updated, and then be put into https://github.com/os-js/osjs-dev-meta instead of being in the CI stages.

Tasks

Stage 1

  1. Include Jest 26 as a dependency (make sure it's installed with node 16 or below!)
    1. Update README
  2. Upgrade dev-meta dependency on every package with tests, verify tests
    1. Remove the npm install -g jest from CI if verified

Stage 2

  1. Upgrade to latest Jest
  2. Upgrade dev-meta dependency on every package with tests, verify tests again and fix any errors

Related packages

Upgrade to Webpack 5

Webpack 4 doesn't run on Node 17, which is a problem because this is the next LTS and some users run this as their main environment.

Also, Webpack 4 has a lot of dependencies that's not really required because the Node version requirement of OS.js is 12, which could be bumped to 14 without any impact.

So this will fix any issues related to webpack 4 and bring on some nice speed improvements both in build times and dependency installation.


Split out from:

Related:

Tasks

Stage 1

Steps should probably be done with Node 16 or earlier.

Pretty much the same procedure as done in #24

  • Upgrade Webpack
  • Upgrade loaders and extensions (and replace any defunct stuff)
  • Make this work on the client repo (osjs-client)
  • Then ensure this works on the base repo (OS.js)
  • Release as major version bump

Stage 2

This stage could probably be automated since anything in stage 1 will apply project-wide.

  • Go through all packages using dev-meta, upgrade, test, release.

Add webpack plugin for metadata generation

Would be nice to have a way to scan the webpack bundling results and place the source files (mainly .js and .css) into the metadata.json file automatically.

This needs a separate repo, and then be added to this meta package.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.