-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use this project? #1
Comments
From the root of this package (not the root where you install it), you can run
Just add your code to Good luck! |
@runofthemill this is very helpful and should go into the readme |
thanks @faroit :) |
I would also say - for newbies - that every instance of I had trouble getting this to run on my computer with using npm - but yarn was error-free. |
The It would be great to clearly know the intended use behind the Thanks! |
An example, copying out the $ yarn run js-build
yarn run v0.19.1
$ babel assets/js --out-dir lib
sh: babel: command not found
error Command failed with exit code 127. Probably because having |
Correction, not $ yarn run js-build
yarn run v0.19.1
$ babel assets/js --out-dir lib
You have mistakenly installed the `babel` package, which is a no-op in Babel 6.
Babel's CLI commands have been moved from the `babel` package to the `babel-cli` package.
npm uninstall babel
npm install --save-dev babel-cli However, adding yarn run v0.19.1
$ babel assets/js --out-dir lib
Error: Couldn't find preset "es2015-ie" relative to directory "~/git/v1-static-html"
at ~/git/v1-static-html/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (<anonymous>)
at OptionManager.resolvePresets (~/git/v1-static-html/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (~/git/v1-static-html/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (~/git/v1-static-html/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (~/git/v1-static-html/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (~/git/v1-static-html/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (~/git/v1-static-html/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (~/git/v1-static-html/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transform (~/git/v1-static-html/node_modules/babel-cli/lib/babel/util.js:50:22)
error Command failed with exit code 1. |
I bet these scripts are handy if you know how to use them, the Thanks! |
This thread has been helpful. I'm a little confused about if the files installed by Eg, at installation the file structure looks like this: If I move the Is that the intended usage? Thank you!! |
I'm still wondering the same, as well as a third option, if its more or less intended to be |
I have found cloning this project instead of |
You should def never change things in You could I think author intent is still needed via REAME.md. |
+1 I really don't understand why it's useful to install this via npm. |
Guys, have a look at 3a97c5e to see, if that clears things up. |
@frispete this is great work. Thanks! |
@frispete really useful! solved my issue |
Good information, just left a comment, would be great to have all beginner information in the README, since its probably the most standard entry point into any project. Very explicitly stating "this is not a dependency, its a starter template, clone it, copy to the root directory & hack away!" is exactly what this project needs. |
Hi @benjaminapetersen, hi guys, I've moved the beginners notes to README.md, and slightly rephrased it here. What do you think, does it fully addresses its purpose? |
Hey guys, Jeremy merged the PR. @Albert-Gao in the hope, that this clears things up well enough, you might consider closing this issue. |
Much better. I'm good with closing this (I don't own the issue). |
Thanks for the starter template, I just wonder how to use these commands in the
package.json
? What problems do they solve? Thanks :)I need a template which could override the variables and styles, and still generate one single css and one min.css, can I do it via this project?
The text was updated successfully, but these errors were encountered: