Open scott-wyatt opened 8 years ago
Updated in #17
This will actually work better if we end up writing trailmap
That way we won't need to override the server.js
or for the testing server.
Looks like any old task runner that runs before node server.js
will work.
this doesn't have anything to do with generator-treefrog
but with trailpack-treefrog
witch should be a trailmap right ? This generator only generate a Trails/Angular2 project structure
I've structured generator-treefrog so that it can generate angular2 or React apps (once react is configured in the repo). For trailpack-treefrog, yes, it should do a preboot if we wanted to make it seamless. But that has some figuring out to do.
Okay, So we've been talking about Preboots for a while because so many modern web apps are ahead of browser technologies. The node community at large uses NPM to run scripts that preform these operations to essentially make a Distro of a repo or app. IMO this makes a ton of sense and as long as we live in a world where we are writing for the browser, we will be compiling or transpiling or piling till we die. That said, I think this will be the first opinionated direction for treefrog that there will be some sort of piling and we will need a really good way to deal with that.
yo treefrog
should create a trails app using thegenerator-trails
.server.js
andtests/index.js
with the special characteristics that allow treefrog to boot before trails.