Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Commit 1ff2ddd

Browse files
committed
Initial commit
0 parents  commit 1ff2ddd

25 files changed

+5333
-0
lines changed

Diff for: .circleci/config.yml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
version: 2
2+
3+
jobs:
4+
checkout:
5+
working_directory: ~/svelte3-boilerplate
6+
docker:
7+
- image: circleci/node:12-browsers
8+
steps:
9+
- checkout
10+
- save_cache:
11+
key: v0-repo-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
12+
paths:
13+
- ~/svelte3-boilerplate
14+
dependencies:
15+
working_directory: ~/svelte3-boilerplate
16+
docker:
17+
- image: circleci/node:12-browsers
18+
steps:
19+
- restore_cache:
20+
key: v0-repo-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
21+
- restore_cache:
22+
key: v0-node-{{ .Branch }}-{{ checksum "package.json" }}
23+
- run:
24+
name: Install dependencies
25+
command: npm install
26+
- save_cache:
27+
key: v0-node-{{ .Branch }}-{{ checksum "package.json" }}
28+
paths:
29+
- ~/svelte3-boilerplate/node_modules
30+
lint:
31+
working_directory: ~/svelte3-boilerplate
32+
docker:
33+
- image: circleci/node:12-browsers
34+
steps:
35+
- restore_cache:
36+
key: v0-repo-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
37+
- restore_cache:
38+
key: v0-node-{{ .Branch }}-{{ checksum "package.json" }}
39+
- run:
40+
name: ESLint
41+
command: npm run eslint:check
42+
- run:
43+
name: Prettier
44+
command: npm run prettier:check
45+
build:
46+
working_directory: ~/svelte3-boilerplate
47+
docker:
48+
- image: circleci/node:12-browsers
49+
steps:
50+
- restore_cache:
51+
key: v0-repo-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
52+
- restore_cache:
53+
key: v0-node-{{ .Branch }}-{{ checksum "package.json" }}
54+
- run:
55+
name: Build
56+
command: npm run build
57+
- save_cache:
58+
key: v0-build-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
59+
paths:
60+
- ~/svelte3-boilerplate/public/build
61+
62+
workflows:
63+
version: 2
64+
ci:
65+
jobs:
66+
- checkout
67+
- dependencies:
68+
requires:
69+
- checkout
70+
- lint:
71+
requires:
72+
- dependencies
73+
- build:
74+
requires:
75+
- lint

Diff for: .commitlintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

Diff for: .czrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "./node_modules/cz-conventional-changelog"
3+
}

Diff for: .eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# /node_modules/* and /bower_components/* in the project root are ignored by default
2+
3+
/public/build

Diff for: .eslintrc

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true
5+
},
6+
"parserOptions": {
7+
"ecmaVersion": 2019,
8+
"sourceType": "module"
9+
},
10+
"plugins": ["svelte3"],
11+
"extends": ["eslint:recommended"],
12+
"overrides": [
13+
{
14+
"files": ["**/*.svelte"],
15+
"processor": "svelte3/svelte3"
16+
}
17+
],
18+
"rules": {
19+
"prettier/prettier": "error",
20+
"svelte3/lint-template": 2
21+
}
22+
}

Diff for: .github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

Diff for: .github/workflows/ci.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node: ['16.x', '14.x', '12.x']
17+
18+
steps:
19+
- name: Checkout source code
20+
uses: actions/checkout@v2
21+
- name: Cache node modules
22+
uses: actions/cache@v2
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-${{ matrix.node }}
28+
- name: Use Node.js
29+
uses: actions/setup-node@v2
30+
with:
31+
node-version: ${{ matrix.node }}
32+
- name: Install dependencies
33+
run: npm ci
34+
- name: ESLint
35+
run: npm run eslint:check
36+
- name: Prettier
37+
run: npm run prettier:check
38+
- name: Build
39+
run: npm run build

Diff for: .gitignore

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
2+
# Created by https://www.gitignore.io/api/intellij+all
3+
# Edit at https://www.gitignore.io/?templates=intellij+all
4+
5+
### Intellij+all ###
6+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
7+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
8+
9+
# User-specific stuff
10+
.idea/**/workspace.xml
11+
.idea/**/tasks.xml
12+
.idea/**/usage.statistics.xml
13+
.idea/**/dictionaries
14+
.idea/**/shelf
15+
16+
# Generated files
17+
.idea/**/contentModel.xml
18+
19+
# Sensitive or high-churn files
20+
.idea/**/dataSources/
21+
.idea/**/dataSources.ids
22+
.idea/**/dataSources.local.xml
23+
.idea/**/sqlDataSources.xml
24+
.idea/**/dynamic.xml
25+
.idea/**/uiDesigner.xml
26+
.idea/**/dbnavigator.xml
27+
28+
# Gradle
29+
.idea/**/gradle.xml
30+
.idea/**/libraries
31+
32+
# Gradle and Maven with auto-import
33+
# When using Gradle or Maven with auto-import, you should exclude module files,
34+
# since they will be recreated, and may cause churn. Uncomment if using
35+
# auto-import.
36+
# .idea/modules.xml
37+
# .idea/*.iml
38+
# .idea/modules
39+
# *.iml
40+
# *.ipr
41+
42+
# CMake
43+
cmake-build-*/
44+
45+
# Mongo Explorer plugin
46+
.idea/**/mongoSettings.xml
47+
48+
# File-based project format
49+
*.iws
50+
51+
# IntelliJ
52+
out/
53+
54+
# mpeltonen/sbt-idea plugin
55+
.idea_modules/
56+
57+
# JIRA plugin
58+
atlassian-ide-plugin.xml
59+
60+
# Cursive Clojure plugin
61+
.idea/replstate.xml
62+
63+
# Crashlytics plugin (for Android Studio and IntelliJ)
64+
com_crashlytics_export_strings.xml
65+
crashlytics.properties
66+
crashlytics-build.properties
67+
fabric.properties
68+
69+
# Editor-based Rest Client
70+
.idea/httpRequests
71+
72+
# Android studio 3.1+ serialized cache file
73+
.idea/caches/build_file_checksums.ser
74+
75+
### Intellij+all Patch ###
76+
# Ignores the whole .idea folder and all .iml files
77+
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
78+
79+
.idea/
80+
81+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
82+
83+
*.iml
84+
modules.xml
85+
.idea/misc.xml
86+
*.ipr
87+
88+
# Sonarlint plugin
89+
.idea/sonarlint
90+
91+
# End of https://www.gitignore.io/api/intellij+all
92+
93+
# Svelte
94+
/node_modules/
95+
/public/build/
96+
97+
.DS_Store

Diff for: .husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit "$1"

Diff for: .husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run precommit

Diff for: .lintstagedrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"./**/*.svelte": ["npm run --silent eslint:fix"],
3+
"./**/*.{js,css,scss,html,json,*rc,svelte}": ["npm run prettier:write"]
4+
}

Diff for: .prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# compiled output
2+
/public/build

Diff for: .prettierrc

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"printWidth": 120,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"arrowParens": "always",
6+
"endOfLine": "lf",
7+
"overrides": [
8+
{
9+
"files": "*.scss",
10+
"options": {
11+
"singleQuote": false
12+
}
13+
},
14+
{
15+
"files": "*.json",
16+
"options": {
17+
"singleQuote": false
18+
}
19+
},
20+
{
21+
"files": ".*rc",
22+
"options": {
23+
"singleQuote": false,
24+
"parser": "json"
25+
}
26+
},
27+
{
28+
"files": ".svelte",
29+
"options": {
30+
"semi": false,
31+
"plugins": ["prettier-plugin-svelte"]
32+
}
33+
}
34+
]
35+
}

Diff for: .travis.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
dist: bionic
2+
language: node_js
3+
node_js:
4+
- '12'
5+
- '14'
6+
- '16'
7+
8+
os:
9+
- linux
10+
11+
cache:
12+
directories:
13+
- ./node_modules
14+
15+
install:
16+
- npm install --no-progress
17+
18+
script:
19+
- npm run eslint:check
20+
- npm run prettier:check
21+
- npm run build

0 commit comments

Comments
 (0)