I want to make a shopify theme using react.
You have a bunch of template files that have access to global server-side variables with liquid e.g. {{ product.title }}. Think wordpress or any other theme-based system.
/theme
| # Auth0 Impersonate | |
| USER_ID_TO_IMPERSONATE="auth0|57dc84..." | |
| ADMIN_USER_ID="auth0|572b9..." | |
| CLIENT_ID="uoKEkF5..." | |
| CLIENT_SECRET="aMgJisByYhrLkV5..." | |
| BEARER="xovAuOGGBKeJh..." | |
| URL=`curl --request POST \ |
| # EditorConfig helps developers define and maintain consistent | |
| # coding styles between different editors and IDEs | |
| # editorconfig.org | |
| root = true | |
| [*] | |
| # Change these settings to your own preference |
CLI tool: Release and changelog generation https://github.com/zeit/release
CLI: git commit messages, but with convention https://www.npmjs.com/package/commitizen
A commitizen adapter for the angular preset of https://github.com/commitizen/cz-conventional-changelog
| # npm publish with goodies | |
| # prerequisites: | |
| # `npm install -g trash conventional-recommended-bump conventional-changelog conventional-github-releaser conventional-commits-detector json` | |
| # `np` with optional argument `patch`/`minor`/`major`/`<version>` | |
| # defaults to conventional-recommended-bump | |
| # and optional argument preset `angular`/ `jquery` ... | |
| # defaults to conventional-commits-detector | |
| np() { | |
| travis status --no-interactive && | |
| trash node_modules &>/dev/null; |
npm help
npm help <command>
npm completion >> ~/.zshrc
These rules are adopted from the AngularJS commit conventions.
npm installs packages locally within your projects by default. You can also install packages globally (e.g. npm install -g <package>) (useful for command-line apps). However the downside of this is that you need to be root (or use sudo) to be able to install globally.
Here is a way to install packages globally for a given user.
mkdir "${HOME}/.npm-packages"| { | |
| "name": "my-app", | |
| "version": "1.0.0", | |
| "description": "My test app", | |
| "main": "src/js/index.js", | |
| "scripts": { | |
| "jshint:dist": "jshint src/js/*.js'", | |
| "jshint": "npm run jshint:dist", | |
| "jscs": "jscs src/*.js", | |
| "browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", |