Comments (8)
I'm not really sure about this feature/change as this may impose more tools/processes for new comers in order to submit a PR and may make PR/review/merging a bit hard. At least it'll add a new step in the development process.
I'm thinking about the following setup:
- Add
src/main.zsh
with currentgeometry.zsh
geometry.zsh
will become the result ofcat
inglib/*
,plugins/*
andsrc/*
We'll probably need a Makefile
(or similar build tooling) for this.
So, basically we're adding a new step to the development process:
1- Make code change
2- Build geometry with make
command
3- Test change
When handling PR we'll need to request for the submitter to build geometry before merging their changes (or do it ourselves).
Is it worth adding this complexity just to keep geometry a single file? @frmendes Any thoughts?
from geometry.
Well, it will definitely make it harder to develop, but there could be a few alternatives.
Setting a GEOMETRY_ENV
environment variable to production
by default and only compiling and sourcing the compiled file in that case. If set to development
, it sources just like it is.
Compiling everything has the advantage of letting us track versions as well. The version on master doesn't necessarily have to be the compiled version. We would only compile when bumping up. That should leave that logic out of the development process and the PR creation.
What bothers me the most is that this would mean users would have an extra-step before setting up geometry, right? It's not just "plug and play" anymore.
from geometry.
Yeah, that's a good approach. By default geometry will run by sourcing lib
and plugins
, when compiled there is no need for sourcing. No extra steps required for developers except for the one involved in releasing the changes.
Maybe it's a good time to implement release versions.
The main advantage for end users is that they could install geometry just by wget / curl
and sourcing it (ie, no need for git
or downloading the zip and unzipping it).
from geometry.
We would be dropping zplug
, antigen
, etc plug and play support wouldn't we? I'm fine with that, since it's just sourcing the plugin on .zshrc
.
from geometry.
Not at all as for end users it'll be completely transparent. At the end of the day geometry.zsh
will look the same for antigen
, zplug
, end users etc. regardless of the install method.
from geometry.
I'm really fine with that. Adding release versions should be good now as the theme has grown a bit by now. After #51 gets resolved it's more of a prompt configuration wrapper with cool defaults than a simple theme. I'm definitely down for that.
So, I guess it goes like this:
- Add an environment variable for development or production.
- Have geometry source whatever it needs depending on the environment.
- Add a
bin/compile
file that compiles everything into abuild/geometry.zsh
and bumps the version. - Add a
CONTRIBUTING.md
and start tagging versions.
Did I forget anything?
from geometry.
Not really sure about auto bumping versions but I'll go ahead and start with the compile steps and prod/dev logic.
from geometry.
Forgot about this one. Compilation will not be implemented. Closing.
from geometry.
Related Issues (20)
- possibility to deactivate `hostname` HOT 12
- command not found: geometry_plugin_register when installing plugins both manually and with antigen HOT 5
- Explicit args for default plugins HOT 3
- Investigate supporting gitstatus
- Git reports errors in git submodules HOT 5
- clobber ASYNC_FD HOT 2
- Update async prompt functions independently
- Holding enter crashes on macOS HOT 7
- Prompt displays hostname after empty command HOT 1
- geometry::wrap prints unneeded space if output of called function is empty or single-space HOT 1
- GEOMETRY_INFO is surprising HOT 2
- Custom git GEOMETRY_RPROMPT spews to stderr
- GEOMETRY_CMDTITLE has issues with escape codes HOT 1
- git init produces an error: fatal: ambiguous argument 'HEAD' HOT 2
- geometry swallows output without trailing \n HOT 2
- Request - Add install tool Oh-My-Zsh HOT 3
- Newlines being removed from custom command in magic enter
- Request: Python Virtualenv as a prompt element HOT 1
- Make new gifs using vhs
- Unexpected behavior when geometry_git is in GEOMETRY_PROMPT instead of GEOMETRY_RPROMPT HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geometry.