diff --git a/.npmignore b/.npmignore index bad4387e..9d1fc62f 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,4 @@ -packages/**/src +src/ *.story.js *.stories.js *.test.js @@ -9,7 +9,11 @@ lerna.json jest* .flowconfig .editorconfig - +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env .jest-cache/ .jest-coverage/ diff --git a/packages/life-events/.npmignore b/packages/life-events/.npmignore new file mode 100644 index 00000000..9d1fc62f --- /dev/null +++ b/packages/life-events/.npmignore @@ -0,0 +1,20 @@ +src/ +*.story.js +*.stories.js +*.test.js +tests/ +mocks/ +lerna.json +*.log +jest* +.flowconfig +.editorconfig +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env +.jest-cache/ +.jest-coverage/ + + diff --git a/packages/life-events/LICENCE b/packages/life-events/LICENCE new file mode 100644 index 00000000..2003c5f9 --- /dev/null +++ b/packages/life-events/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Yoav Niran + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/sender/.npmignore b/packages/sender/.npmignore new file mode 100644 index 00000000..9d1fc62f --- /dev/null +++ b/packages/sender/.npmignore @@ -0,0 +1,20 @@ +src/ +*.story.js +*.stories.js +*.test.js +tests/ +mocks/ +lerna.json +*.log +jest* +.flowconfig +.editorconfig +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env +.jest-cache/ +.jest-coverage/ + + diff --git a/packages/sender/LICENCE b/packages/sender/LICENCE new file mode 100644 index 00000000..2003c5f9 --- /dev/null +++ b/packages/sender/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Yoav Niran + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/shared/.npmignore b/packages/shared/.npmignore new file mode 100644 index 00000000..9d1fc62f --- /dev/null +++ b/packages/shared/.npmignore @@ -0,0 +1,20 @@ +src/ +*.story.js +*.stories.js +*.test.js +tests/ +mocks/ +lerna.json +*.log +jest* +.flowconfig +.editorconfig +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env +.jest-cache/ +.jest-coverage/ + + diff --git a/packages/shared/LICENCE b/packages/shared/LICENCE new file mode 100644 index 00000000..2003c5f9 --- /dev/null +++ b/packages/shared/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Yoav Niran + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/ui/chunked-uploady/.npmignore b/packages/ui/chunked-uploady/.npmignore new file mode 100644 index 00000000..9d1fc62f --- /dev/null +++ b/packages/ui/chunked-uploady/.npmignore @@ -0,0 +1,20 @@ +src/ +*.story.js +*.stories.js +*.test.js +tests/ +mocks/ +lerna.json +*.log +jest* +.flowconfig +.editorconfig +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env +.jest-cache/ +.jest-coverage/ + + diff --git a/packages/ui/chunked-uploady/LICENCE b/packages/ui/chunked-uploady/LICENCE new file mode 100644 index 00000000..2003c5f9 --- /dev/null +++ b/packages/ui/chunked-uploady/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Yoav Niran + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/ui/shared/.npmignore b/packages/ui/shared/.npmignore new file mode 100644 index 00000000..9d1fc62f --- /dev/null +++ b/packages/ui/shared/.npmignore @@ -0,0 +1,20 @@ +src/ +*.story.js +*.stories.js +*.test.js +tests/ +mocks/ +lerna.json +*.log +jest* +.flowconfig +.editorconfig +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env +.jest-cache/ +.jest-coverage/ + + diff --git a/packages/ui/shared/LICENCE b/packages/ui/shared/LICENCE new file mode 100644 index 00000000..2003c5f9 --- /dev/null +++ b/packages/ui/shared/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Yoav Niran + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/ui/upload-button/.npmignore b/packages/ui/upload-button/.npmignore new file mode 100644 index 00000000..9d1fc62f --- /dev/null +++ b/packages/ui/upload-button/.npmignore @@ -0,0 +1,20 @@ +src/ +*.story.js +*.stories.js +*.test.js +tests/ +mocks/ +lerna.json +*.log +jest* +.flowconfig +.editorconfig +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env +.jest-cache/ +.jest-coverage/ + + diff --git a/packages/ui/upload-button/LICENCE b/packages/ui/upload-button/LICENCE new file mode 100644 index 00000000..2003c5f9 --- /dev/null +++ b/packages/ui/upload-button/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Yoav Niran + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/ui/upload-drop-zone/.npmignore b/packages/ui/upload-drop-zone/.npmignore new file mode 100644 index 00000000..9d1fc62f --- /dev/null +++ b/packages/ui/upload-drop-zone/.npmignore @@ -0,0 +1,20 @@ +src/ +*.story.js +*.stories.js +*.test.js +tests/ +mocks/ +lerna.json +*.log +jest* +.flowconfig +.editorconfig +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env +.jest-cache/ +.jest-coverage/ + + diff --git a/packages/ui/upload-drop-zone/LICENCE b/packages/ui/upload-drop-zone/LICENCE new file mode 100644 index 00000000..2003c5f9 --- /dev/null +++ b/packages/ui/upload-drop-zone/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Yoav Niran + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/ui/upload-preview/.npmignore b/packages/ui/upload-preview/.npmignore new file mode 100644 index 00000000..9d1fc62f --- /dev/null +++ b/packages/ui/upload-preview/.npmignore @@ -0,0 +1,20 @@ +src/ +*.story.js +*.stories.js +*.test.js +tests/ +mocks/ +lerna.json +*.log +jest* +.flowconfig +.editorconfig +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env +.jest-cache/ +.jest-coverage/ + + diff --git a/packages/ui/upload-preview/LICENCE b/packages/ui/upload-preview/LICENCE new file mode 100644 index 00000000..2003c5f9 --- /dev/null +++ b/packages/ui/upload-preview/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Yoav Niran + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/ui/upload-url-input/.npmignore b/packages/ui/upload-url-input/.npmignore new file mode 100644 index 00000000..9d1fc62f --- /dev/null +++ b/packages/ui/upload-url-input/.npmignore @@ -0,0 +1,20 @@ +src/ +*.story.js +*.stories.js +*.test.js +tests/ +mocks/ +lerna.json +*.log +jest* +.flowconfig +.editorconfig +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env +.jest-cache/ +.jest-coverage/ + + diff --git a/packages/ui/upload-url-input/LICENCE b/packages/ui/upload-url-input/LICENCE new file mode 100644 index 00000000..2003c5f9 --- /dev/null +++ b/packages/ui/upload-url-input/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Yoav Niran + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/ui/uploady/.npmignore b/packages/ui/uploady/.npmignore new file mode 100644 index 00000000..9d1fc62f --- /dev/null +++ b/packages/ui/uploady/.npmignore @@ -0,0 +1,20 @@ +src/ +*.story.js +*.stories.js +*.test.js +tests/ +mocks/ +lerna.json +*.log +jest* +.flowconfig +.editorconfig +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env +.jest-cache/ +.jest-coverage/ + + diff --git a/packages/ui/uploady/LICENCE b/packages/ui/uploady/LICENCE new file mode 100644 index 00000000..2003c5f9 --- /dev/null +++ b/packages/ui/uploady/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Yoav Niran + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/uploader/.npmignore b/packages/uploader/.npmignore new file mode 100644 index 00000000..9d1fc62f --- /dev/null +++ b/packages/uploader/.npmignore @@ -0,0 +1,20 @@ +src/ +*.story.js +*.stories.js +*.test.js +tests/ +mocks/ +lerna.json +*.log +jest* +.flowconfig +.editorconfig +.eslintignore +.eslintrc.js +.circleci/ +.sb-static/ +.env +.jest-cache/ +.jest-coverage/ + + diff --git a/packages/uploader/LICENCE b/packages/uploader/LICENCE new file mode 100644 index 00000000..2003c5f9 --- /dev/null +++ b/packages/uploader/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Yoav Niran + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/scripts/build.js b/scripts/build.js index eea50180..d2377647 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -1,16 +1,19 @@ const chalk = require("chalk"), shell = require("shelljs"), - { getPackageName } = require("./utils"); + { getPackageName, copyFilesToPackage } = require("./utils"); const build = () => { - const currentDir = process.cwd(), - packageName = getPackageName(currentDir); + const pkgDir = process.cwd(), + pkgeName = getPackageName(pkgDir), + scriptsDir = __dirname; - console.log(chalk.bold(chalk.cyan(`___ building: ${packageName} ___`))); + console.log(chalk.bold(chalk.cyan(`___ copying files to: ${pkgeName} ___`))); + copyFilesToPackage(scriptsDir, pkgDir, [ + "../.npmignore", + "../LICENCE" + ]); - // const files = [ - // "src", - // ].join(" "); + console.log(chalk.bold(chalk.cyan(`___ building: ${pkgeName} ___`))); const src = "src"; @@ -27,7 +30,7 @@ const build = () => { if (result.code) { console.log(chalk.red(`BUILD ERROR!!! (${result.code})`)); } else { - console.log(chalk.green(`___ finished building ${packageName} ___`)); + console.log(chalk.green(`___ finished building ${pkgeName} ___`)); } }; diff --git a/scripts/utils.js b/scripts/utils.js index 93781b2c..99dc44ad 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -15,6 +15,15 @@ const getPackageName = (dir) => { return name; }; +const copyFilesToPackage = (currentDir, destination, files = []) => { + + files.forEach((file) => { + const destFile = path.resolve(destination, path.basename(file)); + fs.copyFileSync(path.resolve(currentDir, file), destFile); + }); +}; + module.exports = { getPackageName, -}; \ No newline at end of file + copyFilesToPackage, +};