File tree Expand file tree Collapse file tree 23 files changed +1322
-0
lines changed Expand file tree Collapse file tree 23 files changed +1322
-0
lines changed Original file line number Diff line number Diff line change 1+ exclude_patterns :
2+ - doc/**
3+ - dist/**
4+ - test/**
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ extends : [ '@js-library' ]
3+ } ;
Original file line number Diff line number Diff line change 1+ {
2+ "source" : " ./src" ,
3+ "destination" : " ./gh-pages" ,
4+ "debug" : false ,
5+ "index" : " ./README.md" ,
6+ "package" : " ./package.json" ,
7+ "plugins" : [
8+ {
9+ "name" : " esdoc-standard-plugin" ,
10+ "option" : {
11+ "accessor" : {
12+ "access" : [
13+ " public" ,
14+ " protected" ,
15+ " private"
16+ ],
17+ "autoPrivate" : true
18+ },
19+ "brand" : {
20+ "title" : " @string-data-structure/longest-prefix-suffix-array"
21+ },
22+ "test" : {
23+ "type" : " ava" ,
24+ "source" : " ./test/src"
25+ },
26+ "manual" : {
27+ "files" : [
28+ " ./doc/manual/overview.md" ,
29+ " ./doc/manual/installation.md" ,
30+ " ./doc/manual/usage.md" ,
31+ " ./doc/manual/example.md"
32+ ]
33+ }
34+ }
35+ },
36+ {
37+ "name" : " esdoc-inject-style-plugin" ,
38+ "option" : {
39+ "enable" : true ,
40+ "styles" : [
41+ " ./doc/css/style.css"
42+ ]
43+ }
44+ },
45+ {
46+ "name" : " esdoc-inject-script-plugin" ,
47+ "option" : {
48+ "enable" : true ,
49+ "scripts" : [
50+ " ./doc/scripts/header.js"
51+ ]
52+ }
53+ }
54+ ]
55+ }
Original file line number Diff line number Diff line change 1+ {
2+ "files": [
3+ "package.json"
4+ ],
5+ "quiet": false,
6+ "required": [
7+ "name",
8+ "version"
9+ ],
10+ "requiredOnPrivate": [],
11+ "sortToTop": [
12+ "name",
13+ "description",
14+ "version",
15+ "license",
16+ "author",
17+ "homepage",
18+ "repository",
19+ "bugs",
20+ "keywords",
21+ "sideEffects",
22+ "type",
23+ "source",
24+ "main",
25+ "module",
26+ "esmodule",
27+ "umd:main",
28+ "unpkg",
29+ "exports",
30+ "files",
31+ "scripts",
32+ "bundledDependencies",
33+ "dependencies",
34+ "optionalDependencies",
35+ "peerDependencies",
36+ "peerDependenciesMeta",
37+ "devDependencies"
38+ ],
39+ "sortedSubItems": [
40+ "keywords",
41+ "exports",
42+ "files",
43+ "scripts",
44+ "bundledDependencies",
45+ "dependencies",
46+ "optionalDependencies",
47+ "peerDependencies",
48+ "peerDependenciesMeta",
49+ "devDependencies"
50+ ],
51+ "warn": [
52+ "description",
53+ "author",
54+ "repository",
55+ "keywords",
56+ "main",
57+ "bugs",
58+ "homepage",
59+ "license",
60+ "files"
61+ ],
62+ "warnOnPrivate": [
63+ "name",
64+ "version",
65+ "description",
66+ "main"
67+ ],
68+ "dryRun": false,
69+ "wipe": false,
70+ "indent": null,
71+ "newLine": null,
72+ "finalNewLine": null
73+ }
Original file line number Diff line number Diff line change 1+ name : ci:test
2+ on :
3+ - push
4+ - pull_request
5+ jobs :
6+ test :
7+ name : Continuous integration (tests)
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout 🛎️
11+ uses : actions/checkout@v2
12+
13+ - name : Install 🔧
14+ uses : bahmutov/npm-install@v1
15+ with :
16+ install-command : yarn --frozen-lockfile --ignore-scripts
17+ useRollingCache : true
18+
19+ - name : Test 🔬
20+ run : yarn ci:test
21+
22+ - name : Publish coverage report 📃
23+ uses : codecov/codecov-action@v1
24+ with :
25+ fail_ci_if_error : true
Original file line number Diff line number Diff line change 1+ name : Build and Deploy GitHub pages
2+ on :
3+ release :
4+ types :
5+ - created
6+ jobs :
7+ build-and-deploy :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout 🛎️
11+ uses : actions/checkout@v2
12+
13+ - name : Install 🔧
14+ run : npm install
15+
16+ - name : Build 🏗️
17+ run : npm run build-gh-pages
18+
19+ - name : Deploy 🚀
20+ uses : JamesIves/github-pages-deploy-action@4.1.1
21+ with :
22+ branch : gh-pages
23+ folder : gh-pages
Original file line number Diff line number Diff line change 1+ # lock file
2+ ! yarn.lock
3+
4+ # Generated files
5+ /dist
6+
7+ # Dependency directory
8+ node_modules
9+ jspm_packages
10+
11+ # Coverage directory used by nyc
12+ /coverage
13+ /.nyc_output
14+
15+ # Documentation
16+ /gh-pages
Original file line number Diff line number Diff line change 1+ _
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ . " $( dirname " $0 " ) /_/husky.sh"
3+
4+ function ask () {
5+
6+ # This is a general-purpose function to ask Yes/No questions in Bash, either
7+ # with or without a default answer. It keeps repeating the question until it
8+ # gets a valid answer.
9+
10+ # http://djm.me/ask
11+
12+ if [ " ${2:- } " = " Y" ]; then
13+ prompt=" Y/n"
14+ default=Y
15+ elif [ " ${2:- } " = " N" ]; then
16+ prompt=" y/N"
17+ default=N
18+ else
19+ prompt=" y/n"
20+ default=
21+ fi
22+
23+ while true ; do
24+
25+ # Ask the question (not using "read -p" as it uses stderr not stdout)
26+ echo -n " $1 [$prompt ] "
27+
28+ # Read the answer (use /dev/tty in case stdin is redirected from somewhere else)
29+ read REPLY < /dev/tty
30+
31+ # Default?
32+ if [ -z " $REPLY " ]; then
33+ REPLY=$default
34+ fi
35+
36+ # Check if the reply is valid
37+ case " $REPLY " in
38+ Y* |y* ) return 0 ;;
39+ N* |n* ) return 1 ;;
40+ esac
41+
42+ done
43+
44+ }
45+
46+ while ! npm run commit-msg -- " $1 " ; do
47+ if [ -t 1 ] && ask ' There was an error. Do you wish to amend your commit message?' Y ; then
48+ ${GIT_EDITOR:- $EDITOR } " $1 " < /dev/tty
49+ else
50+ exit 1
51+ fi
52+ done
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ . " $( dirname " $0 " ) /_/husky.sh"
3+
4+ npm run precommit
You can’t perform that action at this time.
0 commit comments