Skip to content

Commit 9780063

Browse files
committed
maint: Add infrastructure files.
1 parent 1f073b6 commit 9780063

20 files changed

+9912
-1036
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[*]
2+
charset = utf-8
3+
end_of_line = lf
4+
indent_style = space
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
8+
[*{js,jsx,vue,ts,json}]
9+
indent_size = 4
10+
11+
[*.{css,scss,xml,html,yml}]
12+
indent_size = 2
13+
14+
[Makefile]
15+
indent_style = tab

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@patternslib/dev/.eslintrc.js");

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHANGES.md merge=union

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
build:
11+
name: test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: '16'
18+
cache: 'yarn'
19+
- run: |
20+
make install
21+
make check

.gitignore

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
node_modules
2-
bower_components
3-
stamp-bower
4-
stamp-npm
5-
*~
6-
.*.sw?
1+
.DS_Store
2+
.env
3+
dist/
4+
node_modules/
5+
stamp-yarn
6+
stats.json
7+
yarn-error.log
8+
pat-*
9+
.vscode

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx yarn commitlint --edit $1

.jshintrc

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

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cache/
2+
coverage/
3+
dist/
4+
node_modules/
5+
stats.json
6+
style/

.release-it.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@patternslib/dev/.release-it.js");

Changelog.md renamed to CHANGES.md

File renamed without changes.

Gruntfile.js

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

Makefile

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
1-
# vim: set noexpandtab:
2-
# Makefile needs to set tabs instead of spaces
3-
BOWER ?= node_modules/.bin/bower
4-
HTTPSERVE ?= node_modules/.bin/http-server
1+
##############
2+
## Please note
3+
##############
54

6-
all:: install serve
7-
printf "\n\n All done!\n\n Go to http://localhost:4001/ to see a demo.\n\n\n\n"
5+
# First, run ``make install``.
6+
# After that you have through Makefile extension all the other base targets available.
87

9-
designerhappy:: all
8+
# If you want to release on GitHub, make sure to have a .env file with a GITHUB_TOKEN.
9+
# Also see:
10+
# https://github.com/settings/tokens
11+
# and https://github.com/release-it/release-it/blob/master/docs/github-releases.md#automated
1012

11-
install:: stamp-npm stamp-bower
1213

13-
serve::
14-
$(HTTPSERVE) -p 4001
14+
# Include base Makefile
15+
-include node_modules/@patternslib/dev/Makefile
1516

16-
clean::
17-
rm -f stamp-npm stamp-bower
18-
rm -rf node_modules src/bower_components ~/.cache/bower
17+
# Define the GITHUB_TOKEN in the .env file for usage with release-it.
18+
-include .env
19+
export
1920

20-
stamp-npm: package.json
21-
npm install
22-
touch stamp-npm
2321

24-
stamp-bower: stamp-npm
25-
$(BOWER) install
26-
touch stamp-bower
22+
.PHONY: install
23+
stamp-yarn install:
24+
npx yarn install
25+
# Install pre commit hook
26+
npx yarn husky install
27+
touch stamp-yarn
2728

28-
.PHONY: all clean designerhappy install serve stamp-bower stamp-npm
29+
30+
# Unlink any linked dependencies before building a bundle.
31+
bundle-pre:
32+
-$(YARN) unlink @patternslib/dev
33+
-$(YARN) unlink @patternslib/patternslib
34+
$(YARN) install --force
35+
36+
#

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@patternslib/dev/babel.config.js");

bower.json

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

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@patternslib/dev/commitlint.config.js");

jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const config = require("@patternslib/dev/jest.config.js");
2+
3+
config.transformIgnorePatterns = [
4+
"/node_modules/(?!@patternslib/)(?!@plone/)(?!preact/)(?!screenfull/)(?!leaflet-geosearch/).+\\.[t|j]sx?$",
5+
];
6+
7+
module.exports = config;

main.js

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

prettier.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@patternslib/dev/prettier.config.js");

0 commit comments

Comments
 (0)