Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split library and tests into their own workspaces #2624

Merged
merged 17 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
/docs/
/landing/
/site/
/test/dummy/
/test/cypress/dummy/
11 changes: 0 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,3 @@ jobs:
with:
command: pnpm test:cy:ci:chrome
install: false

automerge:
needs: [test-unit, test-integration]
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
24 changes: 0 additions & 24 deletions .release-it.js

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021
Copyright (c) 2024

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
1 change: 1 addition & 0 deletions landing/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "landing",
"private": "true",
"type": "module",
"version": "0.0.1",
"scripts": {
Expand Down
108 changes: 13 additions & 95 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
{
"name": "shepherd.js",
"version": "11.2.0",
"description": "Guide your users through a tour of your app.",
"keywords": [
"site tour",
"tour",
"tutorial",
"shepherd"
],
"homepage": "https://shepherdjs.dev",
"name": "shepherd-monorepo",
"private": "true",
"description": "The monorepo for Shepherd",
"repository": {
"type": "git",
"url": "git+https://github.com/shepherd-pro/shepherd.git"
Expand All @@ -18,71 +11,21 @@
"Robbie Wagner <[email protected]>",
"Chuck Carpenter <[email protected]>"
],
"exports": {
".": {
"import": "./dist/shepherd.esm.js",
"default": "./dist/shepherd.js"
},
"./*": {
"import": "./dist/*.esm.js",
"types": "./dist/*.d.ts",
"default": "./dist/*.js"
}
},
"typesVersions": {
"*": {
"*": [
"./dist/*"
]
}
},
"scripts": {
"build": "pnpm clean && rollup -c && pnpm postbuild",
"postbuild": "pnpm build:landing",
"build:landing": "pnpm -F landing build",
"clean": "rimraf ./dist",
"cy:open": "./node_modules/.bin/cypress open",
"cy:run:chrome": "cypress run --browser chrome",
"dev": "pnpm watch",
"docs": "node_modules/.bin/jsdoc -c .jsdoc.js --verbose",
"esdoc": "esdoc",
"lint:js": "eslint . --ext js",
"rewrite-paths": "replace 'SF:.*src' 'SF:src' coverage/lcov.info",
"start": "pnpm watch",
"start-test-server": "http-server -p 9002",
"test": "pnpm lint:js && pnpm test:ci",
"pretest:ci": "pnpm build",
"test:ci": "pnpm build && pnpm test:unit:ci && test:cy:ci:chrome",
"test:cy:ci:chrome": "start-server-and-test start-test-server http://127.0.0.1:9002 cy:run:chrome",
"test:cy:watch": "start-server-and-test start-test-server http://127.0.0.1:9002 cy:open",
"test:unit:ci": "jest --coverage",
"test:unit:watch": "jest --watch",
"types:check": "pnpm tsc",
"view-coverage": "http-server -p 9003 ./coverage/lcov-report -o",
"watch": "pnpm clean && rollup -c --environment DEVELOPMENT --watch"
},
"dependencies": {
"@floating-ui/dom": "^1.5.3",
"deepmerge": "^4.3.1"
"build": "pnpm -F shepherd.js build",
"lint:js": "pnpm -F '*' lint:js",
"test:ci": "pnpm build && pnpm test:unit:ci && pnpm test:cy:ci:chrome",
"test:cy:ci:chrome": "pnpm -F cypress-tests test:ci:chrome",
"test:cy:watch": "pnpm -F cypress-tests test:watch",
"test:unit:ci": "pnpm -F unit-tests test:ci",
"test:unit:watch": "pnpm -F unit-tests test:watch",
"types:check": "pnpm -F shepherd.js types:check",
"view-coverage": "pnpm -F unit-tests view-coverage"
},
"devDependencies": {
"@babel/core": "^7.23.5",
"@babel/preset-env": "^7.23.5",
"@babel/preset-typescript": "^7.23.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-typescript": "^11.1.6",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/svelte": "^3.2.2",
"autoprefixer": "^10.4.16",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^29.7.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"chai": "^4.3.10",
"codeclimate-test-reporter": "^0.5.1",
"cssnano": "^6.0.3",
"cypress": "^13.6.2",
"cypress-plugin-tab": "^1.0.5",
"del": "^7.1.0",
Expand All @@ -92,47 +35,22 @@
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-svelte3": "^4.0.0",
"glob": "^10.3.10",
"http-server": "^14.1.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-expect-message": "^1.1.3",
"jest-transform-css": "^6.0.1",
"jsdoc": "^4.0.2",
"jsdoc-template-ship-shape": "^0.1.1",
"mutationobserver-shim": "^0.3.7",
"postcss": "^8.4.33",
"postinstall-postinstall": "^2.1.0",
"prettier": "^3.1.1",
"regenerator-runtime": "^0.14.1",
"release-plan": "^0.8.0",
"replace": "^1.2.2",
"resize-observer-polyfill": "^1.5.1",
"rimraf": "^5.0.5",
"rollup": "^4.12.0",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-license": "^3.2.0",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-serve": "^2.0.2",
"rollup-plugin-svelte": "^7.1.6",
"rollup-plugin-visualizer": "^5.11.0",
"sinon": "^17.0.1",
"start-server-and-test": "^2.0.3",
"shepherd.js": "workspace:*",
"svelte": "^3.59.2",
"svelte-jester": "^2.3.2",
"svelte-preprocess": "^5.1.3",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3"
},
"packageManager": "[email protected]",
"engines": {
"node": "18.* || >= 20"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"authors": [
"Adam Schwartz <[email protected]>",
"Zack Bloom <[email protected]>"
Expand Down
Loading
Loading