Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from thiagodesouza/master
Browse files Browse the repository at this point in the history
chore(v4): allow npm deploy pre-releases
  • Loading branch information
thrsouza authored Jan 19, 2020
2 parents afdf887 + ec80c65 commit 82c8b81
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"website"
],
"useWorkspaces": true,
"version": "4.0.0-next.0",
"version": "4.0.0-next.1",
"changelog": {
"repo": "neutronjs/neutron",
"labels": {
Expand Down
21 changes: 21 additions & 0 deletions packages/neutron-cli/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
65 changes: 65 additions & 0 deletions packages/neutron-cli/README.md
Original file line number Diff line number Diff line change
@@ -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: [[email protected]](mailto:[email protected])
- [GitHub Issues](https://github.com/neutronjs/neutron/issues)

<hr/>

## 📃 License

MIT © [Neutron JS](http://www.neutronjs.com/)
2 changes: 1 addition & 1 deletion packages/neutron-cli/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/neutron-start-react-native-template/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/neutron-start-react-template/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 7 additions & 5 deletions scripts/travis-deploy-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ 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
else
# NPM DEPLOY NEUTRON JS CLI
npm publish packages/neutron-cli
fi

# NPM DEPLOY NEUTRON JS CLI
npm publish packages/neutron-cli
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@neutronjs/website",
"version": "4.0.0-next.0",
"version": "4.0.0-next.1",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand Down

0 comments on commit 82c8b81

Please sign in to comment.