Giter VIP home page Giter VIP logo

Comments (8)

RobLoach avatar RobLoach commented on June 18, 2024

Might be overkill, but could do something in Yeoman, like:
yo base
http://yeoman.io/generators.html#writing-your-first-generator

Or add some of Base into Projectz? What are your thoughts?

Maybe....
projectz base?

from base.

balupton avatar balupton commented on June 18, 2024

Does yeoman let you update existing projects with the latest? And can yeoman generators be installed globally?

from base.

RobLoach avatar RobLoach commented on June 18, 2024

Does yeoman let you update existing projects with the latest?

It asks you whether or not to replace your existing files when updating. Y/N type action.

And can yeoman generators be installed globally?

Yes, they're meant to be globally...

npm install yo generator-docpad -g
yo docpad

Would be nice if Projectz assisted with this, but I'm not quite sure how that could work, since Projectz expects the triggers in the file for where to place its data.

from base.

Zearin avatar Zearin commented on June 18, 2024

What’s wrong with git submodules? You could simply have bevry/base as a submodule, and symlink the desired files in the containing repo.

from base.

RobLoach avatar RobLoach commented on June 18, 2024

Submodules are in subfolders. Base is just a set of root files. If we were to use git submodules, we'd need to set up the submodule directory, and then create a whole bunch of symlinks pointing to the correct files.

from base.

balupton avatar balupton commented on June 18, 2024

Symlinking would seem like an idea, though it is a pain, especially when cross-platform is involved. Plus, I'm not sure if symlinking will work for the different files, especially for different environments, one would hope so, but our goal here is to remove complexity, not add it!

If we can just have an auto-script that pulls in these files:

wget -N https://raw.githubusercontent.com/bevry/base/master/.gitignore
wget -N https://raw.githubusercontent.com/bevry/base/master/.npmignore
wget -N https://raw.githubusercontent.com/bevry/base/master/.travis.yml
wget -N https://raw.githubusercontent.com/bevry/base/master/.editorconfig
wget -N https://raw.githubusercontent.com/bevry/base/master/Cakefile
wget -N https://raw.githubusercontent.com/bevry/base/master/CONTRIBUTING.md
wget -N https://raw.githubusercontent.com/bevry/base/master/coffeelint.json
wget -N https://raw.githubusercontent.com/bevry/base/master/.jshintrc

Updates the badges:

"badges": {
    "travis": true,
    "npm": true,
    "david": true,
    "daviddev": true,
    "gittip": "bevry",
    "flattr": "344188/balupton-on-Flattr",
    "paypal": "QB8GQPZAH84N6",
    "bitcoin": "https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a",
    "wishlist": "http://amzn.com/w/2F8TXKSNAFG4V"
  },

But only for missing items, it should not replace existing items.

Then run projectz compile on it, would be awesome.

Now that Chainy is out, the workflow would be something like: https://gist.github.com/balupton/aef72af134a101a8a5d8

from base.

Zearin avatar Zearin commented on June 18, 2024

our goal here is to remove complexity, not add it!

Good point. I forget about symlink issues on non-POSIX platforms. :/

from base.

balupton avatar balupton commented on June 18, 2024

I think for the base files, it's pretty good. However for projectz, we should make a service around that.

from base.

Related Issues (15)

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.