agiledigital-labs / interactive-cli-seed Goto Github PK
View Code? Open in Web Editor NEWSeed project for interactive cli tools
Seed project for interactive cli tools
Change the config to be rollup.config.ts
and use ts-node.
Instead of maintaining multiple ESLint rulesets across our seeds, we should switch to https://github.com/agiledigital-labs/eslint-config-agile-digital
When you have many scripts, you may want to select which script to build instead of building them all.
ESBuild is a faster, zero-config alternative: https://esbuild.github.io/. Could potentially streamline this piece of config: https://github.com/agiledigital-labs/interactive-cli-seed/blob/main/rollup.config.js
❯ nvm use 18
Now using node v18.13.0 (npm v8.19.3)
❯ npm run build
> [email protected] build
> NODE_ENV=production rollup -c --environment BUILD:production
Error loading `tslib` helper library.
[!] Error: Package subpath './package.json' is not defined by "exports" in /Users/danielnixon/dev/agile-digital/interactive-cli-seed/node_modules/tslib/package.json
Error: Package subpath './package.json' is not defined by "exports" in /Users/danielnixon/dev/agile-digital/interactive-cli-seed/node_modules/tslib/package.json
at new NodeError (node:internal/errors:400:5)
at exportsNotFound (node:internal/modules/esm/resolve:361:10)
at packageExportsResolve (node:internal/modules/esm/resolve:697:9)
at resolveExports (node:internal/modules/cjs/loader:538:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:607:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1025:27)
at Function.Module._load (node:internal/modules/cjs/loader:885:27)
at Module.require (node:internal/modules/cjs/loader:1105:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/Users/danielnixon/dev/agile-digital/interactive-cli-seed/node_modules/rollup-plugin-typescript2/src/tslib.ts:11:23)
In #28 we disabled node versions 12 and 14 because the build breaks on those versions. Find out why and reintroduce support for 12 and 14, or at least 14.
Once you have a lot of scripts, the time that it takes for the project to build to a while. Look at optimisations with the Rollup build cycle to improve these times
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.