Skip to content

Commit 469b666

Browse files
authored
Re-creation of marp.app (#36)
* Re-creation of marp.app * Set correct host in Netlify's deploy preview * Prevent purging Tailwind classes used in utils * Update glob path for purging CSS * Don't build a docs page working in progress
1 parent 1f8de9b commit 469b666

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+6924
-4765
lines changed

.circleci/config.yml

Lines changed: 0 additions & 82 deletions
This file was deleted.

.eslintignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.cache/
2-
dist
1+
.next
2+
coverage
3+
lib
34
node_modules
4-
tmp
5+
out

.eslintrc.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
const path = require('path')
2+
const { workspaces } = require('./package.json')
3+
4+
module.exports = {
5+
root: true,
6+
env: {
7+
browser: true,
8+
node: true,
9+
},
10+
extends: ['eslint:recommended', 'plugin:import/recommended', 'prettier'],
11+
rules: {
12+
'import/order': ['error', { alphabetize: { order: 'asc' } }],
13+
},
14+
overrides: [
15+
{
16+
files: ['**/*.ts', '**/*.tsx'],
17+
parser: '@typescript-eslint/parser',
18+
plugins: ['@typescript-eslint'],
19+
extends: [
20+
'plugin:@typescript-eslint/recommended',
21+
'plugin:import/typescript',
22+
'prettier/@typescript-eslint',
23+
],
24+
rules: {
25+
'@typescript-eslint/no-explicit-any': 'off',
26+
'@typescript-eslint/explicit-function-return-type': 'off',
27+
'@typescript-eslint/explicit-module-boundary-types': 'off',
28+
},
29+
settings: {
30+
'import/resolver': {
31+
typescript: {
32+
project: ['', ...workspaces].map((dir) =>
33+
path.join(dir, 'tsconfig.json')
34+
),
35+
},
36+
},
37+
},
38+
},
39+
],
40+
}

.eslintrc.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: npm
5+
directory: '/'
6+
reviewers:
7+
- 'marp-team/maintainers'
8+
schedule:
9+
interval: daily
10+
allow:
11+
- dependency-name: '@marp-team/*'
12+
versioning-strategy: increase
13+
14+
- package-ecosystem: github-actions
15+
directory: '/'
16+
reviewers:
17+
- 'marp-team/maintainers'
18+
schedule:
19+
interval: weekly
20+
# versioning-strategy: increase-if-necessary
21+
open-pull-requests-limit: 0 # Dependabot does not allow relaxed versioning :(

.github/workflows/test.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Test
2+
3+
on:
4+
- pull_request
5+
- push
6+
7+
env:
8+
CACHE_PREFIX: v1
9+
YARN_VERSION: '^1.22.4'
10+
11+
jobs:
12+
validate:
13+
runs-on: ubuntu-latest
14+
if: ${{ github.ref == 'refs/heads/master' || !startsWith(github.event.head_commit.message, '[ci skip]') }}
15+
steps:
16+
- run: echo "${{ github.event.head_commit.message }}"
17+
18+
test:
19+
runs-on: ubuntu-latest
20+
needs: validate
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: Detect Node version from .nvmrc
25+
id: node_version
26+
run: echo "::set-output name=nvmrc::$(cat .nvmrc)"
27+
28+
- uses: actions/setup-node@v2-beta
29+
with:
30+
node-version: ${{ steps.node_version.outputs.nvmrc }}
31+
32+
- name: Install yarn
33+
id: yarn
34+
run: |
35+
cd $HOME && yarn policies set-version $YARN_VERSION
36+
echo "::set-output name=cache_dir::$(yarn cache dir)"
37+
38+
- uses: actions/cache@v2
39+
with:
40+
path: ${{ steps.yarn.outputs.cache_dir }}
41+
key: yarn_cache-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/yarn.lock') }}
42+
restore-keys: yarn_cache-${{ env.CACHE_PREFIX }}-
43+
44+
- run: yarn install
45+
- run: yarn audit
46+
47+
- name: Prettier formatting
48+
run: yarn check:format
49+
50+
- name: ESLint
51+
run: yarn lint:js
52+
53+
- name: TypeScript type checking
54+
run: yarn check:ts

.gitignore

Lines changed: 54 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
tmp
1+
out
22

3-
# Created by https://www.gitignore.io/api/node,windows,macos,linux,sublimetext,emacs,vim,visualstudiocode
3+
# Created by https://www.toptal.com/developers/gitignore/api/node,windows,macos,linux,sublimetext,emacs,vim,visualstudiocode
4+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,windows,macos,linux,sublimetext,emacs,vim,visualstudiocode
45

56
### Emacs ###
67
# -*- mode: gitignore; -*-
@@ -49,6 +50,10 @@ flycheck_*.el
4950
# directory configuration
5051
.dir-locals.el
5152

53+
# network security
54+
/network-security.data
55+
56+
5257
### Linux ###
5358

5459
# temporary files which can be created if a process still has a handle open of a deleted file
@@ -98,6 +103,10 @@ logs
98103
npm-debug.log*
99104
yarn-debug.log*
100105
yarn-error.log*
106+
lerna-debug.log*
107+
108+
# Diagnostic reports (https://nodejs.org/api/report.html)
109+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
101110

102111
# Runtime data
103112
pids
@@ -110,11 +119,12 @@ lib-cov
110119

111120
# Coverage directory used by tools like istanbul
112121
coverage
122+
*.lcov
113123

114124
# nyc test coverage
115125
.nyc_output
116126

117-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
127+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
118128
.grunt
119129

120130
# Bower dependency directory (https://bower.io/)
@@ -133,12 +143,21 @@ jspm_packages/
133143
# TypeScript v1 declaration files
134144
typings/
135145

146+
# TypeScript cache
147+
*.tsbuildinfo
148+
136149
# Optional npm cache directory
137150
.npm
138151

139152
# Optional eslint cache
140153
.eslintcache
141154

155+
# Microbundle cache
156+
.rpt2_cache/
157+
.rts2_cache_cjs/
158+
.rts2_cache_es/
159+
.rts2_cache_umd/
160+
142161
# Optional REPL history
143162
.node_repl_history
144163

@@ -150,21 +169,41 @@ typings/
150169

151170
# dotenv environment variables file
152171
.env
172+
.env.test
153173

154174
# parcel-bundler cache (https://parceljs.org/)
155175
.cache
156176

157-
# next.js build output
177+
# Next.js build output
158178
.next
159179

160-
# nuxt.js build output
180+
# Nuxt.js build / generate output
161181
.nuxt
182+
dist
183+
184+
# Gatsby files
185+
.cache/
186+
# Comment in the public line in if your project uses Gatsby and not Next.js
187+
# https://nextjs.org/blog/next-9-1#public-directory-support
188+
# public
162189

163190
# vuepress build output
164191
.vuepress/dist
165192

166193
# Serverless directories
167-
.serverless
194+
.serverless/
195+
196+
# FuseBox cache
197+
.fusebox/
198+
199+
# DynamoDB Local files
200+
.dynamodb/
201+
202+
# TernJS port file
203+
.tern-port
204+
205+
# Stores VSCode versions used for testing VSCode extensions
206+
.vscode-test
168207

169208
### SublimeText ###
170209
# Cache files for Sublime Text
@@ -201,13 +240,15 @@ GitHub.sublime-settings
201240
### Vim ###
202241
# Swap
203242
[._]*.s[a-v][a-z]
243+
!*.svg # comment out if you don't need vector files
204244
[._]*.sw[a-p]
205245
[._]s[a-rt-v][a-z]
206246
[._]ss[a-gi-z]
207247
[._]sw[a-p]
208248

209249
# Session
210250
Session.vim
251+
Sessionx.vim
211252

212253
# Temporary
213254
.netrwhist
@@ -218,14 +259,16 @@ tags
218259

219260
### VisualStudioCode ###
220261
.vscode/*
221-
!.vscode/settings.json
222-
!.vscode/tasks.json
223-
!.vscode/launch.json
224-
!.vscode/extensions.json
262+
*.code-workspace
263+
264+
### VisualStudioCode Patch ###
265+
# Ignore all local history of files
266+
.history
225267

226268
### Windows ###
227269
# Windows thumbnail cache files
228270
Thumbs.db
271+
Thumbs.db:encryptable
229272
ehthumbs.db
230273
ehthumbs_vista.db
231274

@@ -248,5 +291,4 @@ $RECYCLE.BIN/
248291
# Windows shortcuts
249292
*.lnk
250293

251-
252-
# End of https://www.gitignore.io/api/node,windows,macos,linux,sublimetext,emacs,vim,visualstudiocode
294+
# End of https://www.toptal.com/developers/gitignore/api/node,windows,macos,linux,sublimetext,emacs,vim,visualstudiocode

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.16.3
1+
12.18.3

0 commit comments

Comments
 (0)