Permalink
Browse files

Add node environment to build Marp's common docsify style

  • Loading branch information...
yhatt committed Aug 31, 2018
1 parent a40fef1 commit 582bc6c332eda94fb35e385cdc27f3f553683a52
Showing with 6,696 additions and 0 deletions.
  1. +28 −0 .circleci/config.yml
  2. +250 −0 .gitignore
  3. +1 −0 .node-version
  4. +6 −0 .postcssrc.js
  5. +6 −0 .prettierignore
  6. +3 −0 .prettierrc.yml
  7. +12 −0 .stylelintrc.yml
  8. +43 −0 package.json
  9. +2 −0 src/docsify.scss
  10. +105 −0 src/docsify/_layout.scss
  11. +8 −0 src/index.pug
  12. +6,232 −0 yarn.lock
@@ -0,0 +1,28 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:8.11.4
working_directory: ~/marp
steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}-{{ .Branch }}
- v1-dependencies-{{ checksum "yarn.lock" }}-
- v1-dependencies-

- run: yarn install

- save_cache:
key: v1-dependencies-{{ checksum "yarn.lock" }}-{{ .Branch }}
paths:
- node_modules
- ~/.cache/yarn

- run:
name: Prettier formatting
command: yarn format:check

- run: yarn lint:css
@@ -0,0 +1,250 @@
# Created by https://www.gitignore.io/api/node,windows,macos,linux,sublimetext,emacs,vim,visualstudiocode

### Emacs ###
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

# Org-mode
.org-id-locations
*_archive

# flymake-mode
*_flymake.*

# eshell files
/eshell/history
/eshell/lastdir

# elpa packages
/elpa/

# reftex files
*.rel

# AUCTeX auto folder
/auto/

# cask packages
.cask/
dist/

# Flycheck
flycheck_*.el

# server auth directory
/server/

# projectiles files
.projectile

# directory configuration
.dir-locals.el

### Linux ###

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

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

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

### SublimeText ###
# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# Workspace files are user-specific
*.sublime-workspace

# Project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using Sublime Text
# *.sublime-project

# SFTP configuration file
sftp-config.json

# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
Package Control.merged-ca-bundle
Package Control.user-ca-bundle
oscrypto-ca-bundle.crt
bh_unicode_properties.cache

# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings

### Vim ###
# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim

# Temporary
.netrwhist
# Auto-generated tag files
tags
# Persistent undo
[._]*.un~

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

### Windows ###
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk


# End of https://www.gitignore.io/api/node,windows,macos,linux,sublimetext,emacs,vim,visualstudiocode
@@ -0,0 +1 @@
v8.11.4
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
'postcss-import': true,
autoprefixer: true,
},
}
@@ -0,0 +1,6 @@
.cache/
.git/
.vscode/
dist/
node_modules
package.json
@@ -0,0 +1,3 @@
semi: false
singleQuote: true
trailingComma: es5
@@ -0,0 +1,12 @@
extends:
- stylelint-config-standard
- stylelint-config-prettier

plugins:
- stylelint-scss

rules:
at-rule-no-unknown:
- null
scss/at-rule-no-unknown:
- true
@@ -0,0 +1,43 @@
{
"name": "@marp-team/marp",
"description": "The entrance repository of Marp family",
"private": true,
"license": "MIT",
"author": {
"name": "Marp team",
"url": "https://github.com/marp-team"
},
"contributors": [
{
"name": "Yuki Hattori",
"url": "https://github.com/yhatt"
}
],
"repository": {
"type": "git",
"url": "https://github.com/marp-team/marp"
},
"scripts": {
"build": "yarn run --silent clean && parcel build src/*",
"clean": "rimraf dist",
"format": "prettier \"**/*.{css,js,json,md,scss,ts,yaml,yml}\"",
"format:check": "yarn --silent format -l",
"format:write": "yarn --silent format --write",
"lint:css": "stylelint \"src/**/*.{css,scss}\"",
"start": "parcel src/*"
},
"devDependencies": {
"autoprefixer": "^9.1.3",
"docsify-themeable": "^0.3.0",
"node-sass": "^4.9.3",
"parcel-bundler": "^1.9.7",
"postcss-import": "^12.0.0",
"prettier": "^1.14.2",
"pug": "^2.0.3",
"rimraf": "^2.6.2",
"stylelint": "^9.5.0",
"stylelint-config-prettier": "^4.0.0",
"stylelint-config-standard": "^18.2.0",
"stylelint-scss": "^3.3.0"
}
}
@@ -0,0 +1,2 @@
@import '~docsify-themeable/dist/css/theme-defaults.css';
@import './docsify/layout';
Oops, something went wrong.

0 comments on commit 582bc6c

Please sign in to comment.