-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Patternslib/depend-dev
Depend dev
- Loading branch information
Showing
17 changed files
with
10,003 additions
and
168 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1 @@ | ||
module.exports = { | ||
extends: ["eslint:recommended", "prettier"], | ||
root: true, | ||
env: { | ||
es6: "true", | ||
browser: true, | ||
node: true, | ||
jest: true, | ||
}, | ||
parser: "@babel/eslint-parser", | ||
ignorePatterns: [], | ||
rules: { | ||
"no-debugger": 1, | ||
"no-duplicate-imports": 1, | ||
// Do keep due avoid unintendet consequences. | ||
"no-alert": 0, | ||
"no-control-regex": 0, | ||
"no-self-assign": 0, | ||
"no-useless-escape": 0, | ||
}, | ||
globals: { | ||
spyOn: true, // eventually replace with jest.spyOn and then fix a ton of test failures. | ||
}, | ||
}; | ||
module.exports = require("@patternslib/dev/.eslintrc.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ node_modules/ | |
stamp-yarn | ||
stats.json | ||
yarn-error.log | ||
yarn.lock |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require("@patternslib/patternslib/.release-it.js"); | ||
module.exports = require("@patternslib/dev/.release-it.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,30 @@ | ||
-include .env | ||
export | ||
|
||
ESLINT ?= npx eslint | ||
YARN ?= npx yarn | ||
|
||
|
||
stamp-yarn: | ||
$(YARN) install | ||
# Install pre commit hook | ||
$(YARN) husky install | ||
touch stamp-yarn | ||
|
||
|
||
clean-dist: | ||
rm -Rf dist/ | ||
|
||
|
||
.PHONY: clean | ||
clean: clean-dist | ||
rm -f stamp-yarn | ||
rm -Rf node_modules/ | ||
############## | ||
## Please note | ||
############## | ||
|
||
# First, run ``make install``. | ||
# After that you have through Makefile extension all the other base targets available. | ||
|
||
eslint: stamp-yarn | ||
$(ESLINT) ./src | ||
# If you want to release on GitHub, make sure to have a .env file with a GITHUB_TOKEN. | ||
# Also see: | ||
# https://github.com/settings/tokens | ||
# and https://github.com/release-it/release-it/blob/master/docs/github-releases.md#automated | ||
|
||
|
||
.PHONY: check | ||
check:: stamp-yarn eslint | ||
$(YARN) run test | ||
# Include base Makefile | ||
-include node_modules/@patternslib/dev/Makefile | ||
|
||
|
||
.PHONY: bundle | ||
bundle: stamp-yarn | ||
$(YARN) run build | ||
|
||
|
||
.PHONY: release-major | ||
release-major: check | ||
npx release-it major --dry-run --ci && \ | ||
npx release-it major --ci && \ | ||
npx release-it --github.release --github.update --no-github.draft --no-increment --no-git --no-npm --ci && \ | ||
git checkout CHANGES.md | ||
|
||
|
||
.PHONY: release-minor | ||
release-minor: check | ||
npx release-it minor --dry-run --ci && \ | ||
npx release-it minor --ci && \ | ||
npx release-it --github.release --github.update --no-github.draft --no-increment --no-git --no-npm --ci && \ | ||
git checkout CHANGES.md | ||
|
||
|
||
.PHONY: release-patch | ||
release-patch: check | ||
npx release-it patch --dry-run --ci && \ | ||
npx release-it patch --ci && \ | ||
npx release-it --github.release --github.update --no-github.draft --no-increment --no-git --no-npm --ci && \ | ||
git checkout CHANGES.md | ||
# Define the GITHUB_TOKEN in the .env file for usage with release-it. | ||
-include .env | ||
export | ||
|
||
|
||
.PHONY: serve | ||
serve:: stamp-yarn | ||
$(YARN) run start | ||
.PHONY: install | ||
stamp-yarn install: | ||
npx yarn install | ||
# Install pre commit hook | ||
npx yarn husky install | ||
touch stamp-yarn | ||
|
||
|
||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require("@patternslib/patternslib/babel.config.js"); | ||
module.exports = require("@patternslib/dev/babel.config.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("@patternslib/dev/commitlint.config.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Webpack entry point for module federation. | ||
import "@patternslib/patternslib/webpack/module_federation"; | ||
// The next import needs to be kept with brackets, otherwise we get this error: | ||
// "Shared module is not available for eager consumption." | ||
import("./bundle-config"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
module.exports = { | ||
rootDir: "./src", | ||
setupFilesAfterEnv: ["<rootDir>/setupTests.js"], | ||
watchPlugins: ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"], | ||
transform: { | ||
"^.+\\.[t|j]sx?$": "babel-jest", | ||
}, | ||
moduleNameMapper: { | ||
"\\.(css|less|sass|scss)$": "identity-obj-proxy", | ||
}, | ||
testEnvironment: "jsdom", | ||
transformIgnorePatterns: ["/node_modules/(?!.*patternslib/*).+\\.[t|j]sx?$"], | ||
}; | ||
module.exports = require("@patternslib/dev/jest.config.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("@patternslib/dev/prettier.config.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.