From ad5c31ba46e9694c3a8c5444226874d4e3475f43 Mon Sep 17 00:00:00 2001 From: Thiago de Souza Date: Sun, 19 Jan 2020 15:07:12 -0300 Subject: [PATCH 1/2] chore(v4): allow npm deploy pre-releases --- packages/neutron-cli/LICENSE | 21 +++++++++++ packages/neutron-cli/README.md | 65 ++++++++++++++++++++++++++++++++++ scripts/travis-deploy-npm.sh | 10 ++++-- 3 files changed, 94 insertions(+), 2 deletions(-) create mode 100644 packages/neutron-cli/LICENSE create mode 100644 packages/neutron-cli/README.md diff --git a/packages/neutron-cli/LICENSE b/packages/neutron-cli/LICENSE new file mode 100644 index 0000000..ac60ec0 --- /dev/null +++ b/packages/neutron-cli/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 - Neutron JS + +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/neutron-cli/README.md b/packages/neutron-cli/README.md new file mode 100644 index 0000000..91b664d --- /dev/null +++ b/packages/neutron-cli/README.md @@ -0,0 +1,65 @@ +## 🚀 Overview + +Neutron is a CLI developed to help developers create new react projects with [Redux](https://redux.js.org/) + [Redux Saga](https://redux-saga.js.org/) and offers well-structured code standardization. + +#### Templates and Scaffolding + +- [x] React JS +- [x] React Native + +## ‍👨🏽‍💻 Quick Start + +To install Neutron JS, execute into your terminal: + +```shell +# yarn +$ yarn global add @neutronjs/cli + +# npm +$ npm i @neutronjs/cli -g +``` + +Command list: + +```shell +Starts With: + neutron create Create new project with React + +Commands: + neutron add:component Add new component files + neutron add:duck Add new duck file + neutron add:page Add new page files + neutron add:saga Add new saga and duck files + +Utils: + neutron -h Show help information + neutron -v Output the version number +``` + +## 🚘 What's under the hood? + +- ⭐ [exec-sh](https://github.com/tsertkov/exec-sh) - wrapper for `child_process.spawn` with some improvements; +- ⭐ [gluegun](https://github.com/infinitered/gluegun) - toolkit for building node-based command-line interfaces; +- ⭐ [hyperquest](https://github.com/substack/hyperquest) - treat http requests as a streaming transport; +- ⭐ [tar-pack](https://github.com/ForbesLindesay/tar-pack) - package and un-package modules of some sort (in tar/gz bundles); + + +## 📃 Contributing + +Thanks for your interest on our project. Take a moment to read our guidelines: + +- [Contributing](https://www.neutronjs.com/docs/community/contributing) +- [Code of Conduct](https://www.neutronjs.com/docs/community/code-of-conduct) + +## 📮 Contact + +We have a few channels for contact: + +- Email: [team@neutronjs.com](mailto:team@neutronjs.com) +- [GitHub Issues](https://github.com/neutronjs/neutron/issues) + +
+ +## 📃 License + +MIT © [Neutron JS](http://www.neutronjs.com/) diff --git a/scripts/travis-deploy-npm.sh b/scripts/travis-deploy-npm.sh index 2808371..c915c57 100644 --- a/scripts/travis-deploy-npm.sh +++ b/scripts/travis-deploy-npm.sh @@ -11,5 +11,11 @@ echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $NPMRC cp README.md packages/neutron-cli cp LICENSE packages/neutron-cli -# NPM DEPLOY NEUTRON JS CLI -npm publish packages/neutron-cli +if node -pe 'JSON.parse(process.argv[1]).version' "$(cat package.json)" | grep 'next'; then + # NPM DEPLOY NEUTRON JS CLI WITH TAG + npm publish packages/neutron-cli --tag next +else + # NPM DEPLOY NEUTRON JS CLI + npm publish packages/neutron-cli +fi + From ec80c6544db920eb491500bbd5cebeb23f427995 Mon Sep 17 00:00:00 2001 From: Thiago de Souza Date: Sun, 19 Jan 2020 15:11:20 -0300 Subject: [PATCH 2/2] v4.0.0-next.1 --- lerna.json | 2 +- packages/neutron-cli/package.json | 2 +- packages/neutron-start-react-native-template/package.json | 2 +- packages/neutron-start-react-template/package.json | 2 +- scripts/travis-deploy-npm.sh | 4 ---- website/package.json | 2 +- 6 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lerna.json b/lerna.json index e9c77b3..651e872 100644 --- a/lerna.json +++ b/lerna.json @@ -7,7 +7,7 @@ "website" ], "useWorkspaces": true, - "version": "4.0.0-next.0", + "version": "4.0.0-next.1", "changelog": { "repo": "neutronjs/neutron", "labels": { diff --git a/packages/neutron-cli/package.json b/packages/neutron-cli/package.json index 578a5a3..05c23bd 100644 --- a/packages/neutron-cli/package.json +++ b/packages/neutron-cli/package.json @@ -1,7 +1,7 @@ { "name": "@neutronjs/cli", "description": "This CLI was developed to help developers create new projects quickly and easily", - "version": "4.0.0-next.0", + "version": "4.0.0-next.1", "license": "MIT", "main": "build/cli.js", "bin": { diff --git a/packages/neutron-start-react-native-template/package.json b/packages/neutron-start-react-native-template/package.json index 19e1075..e1853e4 100644 --- a/packages/neutron-start-react-native-template/package.json +++ b/packages/neutron-start-react-native-template/package.json @@ -1,6 +1,6 @@ { "name": "@neutronjs/start-react-native-template", - "version": "4.0.0-next.0", + "version": "4.0.0-next.1", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", diff --git a/packages/neutron-start-react-template/package.json b/packages/neutron-start-react-template/package.json index e4a0bbb..a19ba1b 100644 --- a/packages/neutron-start-react-template/package.json +++ b/packages/neutron-start-react-template/package.json @@ -1,6 +1,6 @@ { "name": "@neutronjs/start-react-template", - "version": "4.0.0-next.0", + "version": "4.0.0-next.1", "license": "MIT", "scripts": { "start": "craco start", diff --git a/scripts/travis-deploy-npm.sh b/scripts/travis-deploy-npm.sh index c915c57..2ad2329 100644 --- a/scripts/travis-deploy-npm.sh +++ b/scripts/travis-deploy-npm.sh @@ -7,10 +7,6 @@ NPMRC=.npmrc echo "//registry.npmjs.org/:email=\${EMAIL}" > $NPMRC echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $NPMRC -# COPY FILES TO NEUTRON JS CLI -cp README.md packages/neutron-cli -cp LICENSE packages/neutron-cli - if node -pe 'JSON.parse(process.argv[1]).version' "$(cat package.json)" | grep 'next'; then # NPM DEPLOY NEUTRON JS CLI WITH TAG npm publish packages/neutron-cli --tag next diff --git a/website/package.json b/website/package.json index c6b84e0..2c7995e 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,6 @@ { "name": "@neutronjs/website", - "version": "4.0.0-next.0", + "version": "4.0.0-next.1", "private": true, "scripts": { "docusaurus": "docusaurus",