chore: rename tools folder to packages-node and revert singleton-manager

This commit is contained in:
Joren Broekema 2020-12-16 10:40:43 +01:00 committed by qa46hx
parent f29bf523c1
commit f5bf040a3c
189 changed files with 538 additions and 69 deletions

8
.gitignore vendored
View file

@ -24,9 +24,9 @@ yarn-error.log
*.d.ts *.d.ts
!packages/**/*/types/**/* !packages/**/*/types/**/*
!packages/**/index.d.ts !packages/**/index.d.ts
!tools/**/*/types/**/* !packages-node/**/*/types/**/*
!tools/**/index.d.ts !packages-node/**/index.d.ts
!tools/**/types.d.ts !packages-node/**/types.d.ts
## temp folders ## temp folders
/.tmp/ /.tmp/
@ -43,4 +43,4 @@ browserstack.err
debug.log debug.log
!tools/singleton-manager/demo/**/node_modules !packages/singleton-manager/demo/**/node_modules

View file

@ -3,9 +3,9 @@ const path = require('path');
module.exports = { module.exports = {
stories: [ stories: [
'../{packages,tools}/*/README.md', '../{packages,packages-node}/*/README.md',
'../{packages,tools}/*/docs/*.md', '../{packages,packages-node}/*/docs/*.md',
'../{packages,tools}/*/docs/!(assets)**/*.md', '../{packages,packages-node}/*/docs/!(assets)**/*.md',
'../packages/helpers/*/README.md', '../packages/helpers/*/README.md',
'../docs/README.md', '../docs/README.md',
'../docs/**/*.md', '../docs/**/*.md',

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"workspaces": [ "workspaces": [
"packages/*", "packages/*",
"tools/*" "packages-node/*"
], ],
"scripts": { "scripts": {
"build:docs": "wca analyze \"packages/tabs/**/*.js\"", "build:docs": "wca analyze \"packages/tabs/**/*.js\"",

View file

@ -184,8 +184,8 @@ customElements.define('my-app', MyApp);
## Full Demo & Api Example ## Full Demo & Api Example
You can run the example locally via `npm run start` or look at its [source code](https://github.com/ing-bank/lion/tree/master/tools/babel-plugin-extend-docs/demo/). You can run the example locally via `npm run start` or look at its [source code](https://github.com/ing-bank/lion/tree/master/packages-node/babel-plugin-extend-docs/demo/).
_Note we are configuring babel via the [server.config.js](https://github.com/ing-bank/lion/tree/master/tools/babel-plugin-extend-docs/demo/server.config.js)_ _Note we are configuring babel via the [server.config.js](https://github.com/ing-bank/lion/tree/master/packages-node/babel-plugin-extend-docs/demo/server.config.js)_
👉 _babel.config.js_ 👉 _babel.config.js_

View file

@ -25,7 +25,7 @@ const extendDocsConfig = {
module.exports = { module.exports = {
nodeResolve: true, nodeResolve: true,
watch: true, watch: true,
open: 'tools/babel-plugin-extend-docs/demo/', open: 'packages-node/babel-plugin-extend-docs/demo/',
babel: true, babel: true,
babelConfig: { babelConfig: {
overrides: [ overrides: [

View file

@ -1,5 +1,5 @@
module.exports = { module.exports = {
nodeResolve: true, nodeResolve: true,
watch: true, watch: true,
open: 'tools/babel-plugin-extend-docs/demo/', open: 'packages-node/babel-plugin-extend-docs/demo/',
}; };

View file

@ -8,7 +8,7 @@
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/ing-bank/lion.git", "url": "https://github.com/ing-bank/lion.git",
"directory": "tools/babel-plugin-extend-docs" "directory": "packages-node/babel-plugin-extend-docs"
}, },
"main": "index.js", "main": "index.js",
"files": [ "files": [

View file

@ -64,7 +64,7 @@ function transformToProjectNames(collections) {
const pathFromServerRootToHere = `/${pathLib.relative(process.cwd(), __dirname)}`; const pathFromServerRootToHere = `/${pathLib.relative(process.cwd(), __dirname)}`;
// Needed for dev purposes (we call it from ./tools/providence-analytics/ instead of ./) // Needed for dev purposes (we call it from ./packages-node/providence-analytics/ instead of ./)
// Allows es-dev-server to find the right moduleDirs // Allows es-dev-server to find the right moduleDirs
const fromPackageRoot = process.argv.includes('--serve-from-package-root'); const fromPackageRoot = process.argv.includes('--serve-from-package-root');
const moduleRoot = fromPackageRoot ? pathLib.resolve(process.cwd(), '../../') : process.cwd(); const moduleRoot = fromPackageRoot ? pathLib.resolve(process.cwd(), '../../') : process.cwd();

View file

Before

Width:  |  Height:  |  Size: 7.4 MiB

After

Width:  |  Height:  |  Size: 7.4 MiB

View file

Before

Width:  |  Height:  |  Size: 6.4 MiB

After

Width:  |  Height:  |  Size: 6.4 MiB

View file

Before

Width:  |  Height:  |  Size: 918 KiB

After

Width:  |  Height:  |  Size: 918 KiB

View file

Before

Width:  |  Height:  |  Size: 4 MiB

After

Width:  |  Height:  |  Size: 4 MiB

View file

@ -8,7 +8,7 @@
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/ing-bank/lion.git", "url": "https://github.com/ing-bank/lion.git",
"directory": "tools/providence-analytics" "directory": "packages-node/providence-analytics"
}, },
"main": "./src/program/providence.js", "main": "./src/program/providence.js",
"bin": { "bin": {

Some files were not shown because too many files have changed in this diff Show more