Snippets
Created by
Col Wilson
last modified
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | # https://bhspitmonkey.github.io/AdjectiveAdjectiveAnimal/
# grab a project name
PROJ=WigglyTalentedBoar
cd ~/dev
npm init svelte@next $PROJ # answer the questions
cd $PROJ
npm i
git init && git add -A && git commit -m "Initial Commit"
pre-commit install
# .pre-commit-config.yaml
# ci:
# autoupdate_schedule: quarterly
# default_stages: [commit]
# default_install_hook_types: [pre-commit, commit-msg]
# repos:
# - repo: https://github.com/pre-commit/pre-commit-hooks
# rev: v4.3.0
# hooks:
# - id: check-case-conflict
# - id: check-symlinks
# - id: check-yaml
# - id: destroyed-symlinks
# - id: end-of-file-fixer
# - id: mixed-line-ending
# - id: trailing-whitespace
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: v2.7.1
# hooks:
# - id: prettier
# args: [--write] # edit files in-place
# additional_dependencies:
# - prettier
# - prettier-plugin-svelte
# - svelte
# - repo: https://github.com/codespell-project/codespell
# rev: v2.1.0
# hooks:
# - id: codespell
# stages: [commit, commit-msg]
# exclude: yarn.lock
# - repo: https://github.com/pre-commit/mirrors-eslint
# rev: v8.18.0
# hooks:
# - id: eslint
# types: [file]
# files: \.(svelte|js|ts)$
# additional_dependencies:
# - eslint
# - svelte
# - typescript
# - eslint-plugin-svelte3
# - '@typescript-eslint/eslint-plugin'
# - '@typescript-eslint/parser'
# if netlify
npm i -D @sveltejs/adapter-netlify@next encoding
# import adapter from '@sveltejs/adapter-netlify';
# kit: {
# adapter: adapter(),
#
# netlify.toml
# [build]
# command = "npm run build"
# publish = "build"
#
# netlify link
#
# ?fauna
# netlify addons:create fauna
#
# netlify addons:auth fauna
# if tailwind css
npx svelte-add@latest tailwindcss
npm i
# if daisyui
npm i -D daisyui
# tailwind.config.js
# plugins: [
# require('daisyui'),
# ]
# if sequelize
npm install --save sequelize @types/sequelize dotenv
# if postgres
npm install --save pg pg-hstore dotenv
# if sqlite3
npm install --save sqlite3 @types/sqlite3
code -n .
npm run dev
|
Comments (0)
You can clone a snippet to your computer for local editing. Learn more.