New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@brightsole/new

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightsole/new - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

bin/new-front.js

2

bin/new-cli.js
#!/usr/bin/env node
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"ve9D":[function(require,module,exports) {
const e=require("fs"),r=(t,n,i)=>{if(e.statSync(n).isDirectory()){try{e.mkdirSync(t)}catch(e){throw runningLog.fatal(`Unable to create new directory ${t}`),e}return e.readdirSync(n).forEach(e=>{return r(`${t}/${"gitignore"===e?".":""}${e}`,`${n}/${e}`,i)})}const o=e.readFileSync(n,{encoding:"utf8"});return e.writeFileSync(t,i(o))};module.exports.default=((e,t,n={})=>{if("cli"!==e)throw runningLog.fatal("No other project types exist at the moment"),new Error;const{prettyName:i}=n,o=i||t,c=new RegExp(`new-${e}`,"g");r(`./${t}`,`${__dirname}/../cli`,e=>e.replace(c,o))});
const e=require("fs"),r=(t,n,o)=>{if(e.statSync(n).isDirectory()){try{e.mkdirSync(t)}catch(e){throw runningLog.fatal(`Unable to create new directory ${t}`),e}return e.readdirSync(n).forEach(e=>{return r(`${t}/${"gitignore"===e?".":""}${e}`,`${n}/${e}`,o)})}const i=e.readFileSync(n,{encoding:"utf8"});return e.writeFileSync(t,o(i))};module.exports.default=((e,t,n={})=>{if(!["cli","front"].includes(e))throw runningLog.fatal("No other project types exist at the moment"),new Error;const{prettyName:o}=n,i=o||t,c=new RegExp(`new-${e}`,"g");r(`./${t}`,`${__dirname}/../${e}`,e=>e.replace(c,i))});
},{}],"LM5A":[function(require,module,exports) {

@@ -5,0 +5,0 @@ const e=require("lodash"),n=require("commander"),{Signale:i}=require("signale"),{default:r}=require("./utils/cloner"),a=new i({interactive:!0,scope:"new:cli"});a.start("Beginning process"),global._=e,global.runningLog=a,n.arguments("<dir>").option("-n, --pretty-name [string]","optional internally applied application name").action((e,n)=>{a.info("Cloning project"),r("cli",e,n),a.success("Cloned new cli!")}),n.parse(process.argv);

#!/usr/bin/env node
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"KiTr":[function(require,module,exports) {
const e=require("lodash"),r=require("commander"),{Signale:n}=require("signale"),i=new n({interactive:!0,scope:"@brightsole/new"});i.start("Beginning process"),global._=e,global.runningLog=i,r.command("cli <dir>","create new cli project").parse(process.argv);
const e=require("lodash"),r=require("commander"),{Signale:n}=require("signale"),o=new n({interactive:!0,scope:"@brightsole/new"});o.start("Beginning process"),global._=e,global.runningLog=o,r.command("cli <dir>","create new cli project").command("front <dir>","create new frontend project").parse(process.argv);
},{}]},{},["KiTr"], null)
//# sourceMappingURL=/new.map
{
"name": "@brightsole/new",
"version": "0.0.3",
"version": "0.1.0",
"description": "new project generator",

@@ -27,3 +27,4 @@ "keywords": [

"build:cli": "parcel build -o dist/new-cli.js -t node src/cli.js && shebang-it -i new-cli.js",
"build": "yarn build:index && yarn build:cli",
"build:front": "parcel build -o dist/new-front.js -t node src/front.js && shebang-it -i new-front.js",
"build": "yarn build:index && yarn build:cli && yarn build:front",
"clean": "rm -rf dist bin .cache .nyc_output coverage",

@@ -30,0 +31,0 @@ "coverage": "nyc --reporter=html --reporter=text ava",

@@ -27,2 +27,4 @@ # @brightsole/new

### You can create a variety of project types:
-------------

@@ -37,4 +39,6 @@

The project `new` only supports the automatic creation of one repo type at the moment: `new cli`. It takes one argument, the folderName, and tries to use that as the app name. You may also specify an alternate to override it with `-n`. More options forthcoming.
`New` can create an easy-to-start-with cli project with the command: `new cli`. It takes one argument, the folderName, and tries to use that as the app name. You may also specify an alternate to override it with `-n`. More options forthcoming.
The new cli has a few nice features: `signale`, for a running log cli system, `commander` **the standard of excellence** for consuming & using command line arguments & options, `lodash` and `ava` for testing.
| Arg | Longform | Description | Example |

@@ -45,4 +49,22 @@ | :---------------: | :---------------: | :--------------- | ---------------: |

</details>
-------------
#### FRONT
<details>
<summary>
tl;dr: <code>new front [new-location-folderName] -[options]</code>
</summary>
<br />
`New` also allows you to create a new `frontend` project. It has a few nice features: `jest` for testing, `parcel-bundler` for hot reload and production builds, `axios` for network requests, `styled-components` for css-in-js, and `a-plus-forms` and `a-plus-forms-json-validator` for forms & validation.
| Arg | Longform | Description | Example |
| :---------------: | :---------------: | :--------------- | ---------------: |
| **\*** | | folderName/name of the new project | `new front <folderName>` |
| **-n** | --pretty-name | custom internal name to override folderName | `new front ../bingle -n 'bingle-frontend'` |
-------------
</details>

@@ -58,3 +80,3 @@

#### CLI
#### CLI/FRONT
1. read git username dynamically from global environment

@@ -73,6 +95,2 @@ 2. option to specify git repo location in entirety

#### FRONTEND
1. project instantiation
2. create the cli tool for it
#### SERVERLESS

@@ -79,0 +97,0 @@ 1. project instantiation

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc