App where you can add, edit and view books. Live preview available here
git clone https://github.com/arkhipzharov/book-store
npm run setup
(link and install all dependencies, create cache files)git worktree add dist gh-pages
npm run back
npm run dev
You can read more about this approach here
npm run build
cd dist
git add .
git commit
git push origin gh-pages
- wait a bit and check updates here
npm i
, npm un
as usual
available
--scope=xxx
"lerna package" names are listed inlerna.json
You should only install 1 package at time, otherwise this error is thrown:
No packages found where <package-name> can be added
https://github.com/lerna/lerna/tree/master/commands/add#readme
npm run i -- <package>[@version] [--scope=xxx] [--dev] [--exact] [--peer]
examples:
npm run i -- express --scope=back
npm run i -- stylelint --scope=front --dev
install for all "lerna packages"
npm run i -- npm-run-all --dev
npm run un -- <package> [--scope=xxx]
npm run lint
this can be useful if you are debugging eslint and don't want to manually check problems in every file, or just for quick search
npm run lint:fix
// (pending|unknown|number)
mark at the top of comment describes the status of
the problem <- which is discussed in the rest of it
example:
// (unknown)
// sometimes `window.svgSpriteInjector is not a function occures`,
// maybe because of npm/webpack cache or other
meaning:
pending
: problem can be solved and we just need to monitor further investigations (pull request, etc.) until one fixes itunknown
: cause of problem is unknown and we can try to explore this later, but for now it should be fixed by workaround or in other waysnumber
: this comment text can be inserted in all places where only exact// (number)
comment exists
-
if you have
port <PASTE_NUMBER_HERE (example: 3000)> is already in use
problems, you can run this command to kill port:kill -9 $(lsof -t -i:<PASTE_NUMBER_HERE> -sTCP:LISTEN)
-
to import local app side helpers write statement as:
import * as hl from '@(back|front)/helpers';
for var to be different than root helpers import one
import * as h from '@/helpers';