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

@softboxlab/moo-cli

Package Overview
Dependencies
Maintainers
7
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@softboxlab/moo-cli - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

dist/commands/comp.js

6

dist/index.js

@@ -10,3 +10,3 @@ #!/usr/bin/env node

const package_json_1 = __importDefault(require("../package.json"));
const make_1 = __importDefault(require("./commands/make"));
const comp_1 = __importDefault(require("./commands/comp"));
const menu_1 = __importDefault(require("./menu"));

@@ -25,3 +25,3 @@ commander_1.default

commander_1.default
.command('make <name>')
.command('comp <name>')
.description('Generate standardized code for your project')

@@ -35,3 +35,3 @@ .option('-d, --dest [dir]', 'output directory', './src/components')

.option('-t, --test', 'create test scripts (if it can...)')
.action(make_1.default);
.action(comp_1.default);
commander_1.default

@@ -38,0 +38,0 @@ .command('menu')

@@ -33,2 +33,2 @@ "use strict";

)({{name}}){{#airbnb}};{{/airbnb}}{{/flux}}
`.trim();
`;

@@ -19,2 +19,2 @@ "use strict";

export default {{name}}{{#airbnb}};{{/airbnb}}
`.trim();
`;

@@ -5,3 +5,3 @@ "use strict";

import { shallow } from 'enzyme'{{#airbnb}};{{/airbnb}}
import {{name}} from '../{{name}}'{{#airbnb}};{{/airbnb}}
import {{name}} from './index.jsx'{{#airbnb}};{{/airbnb}}
test('should render the {{name}} component', async () => {

@@ -14,2 +14,2 @@ const wrapper = shallow(

}){{#airbnb}};{{/airbnb}}
`.trim();
`;

@@ -5,3 +5,5 @@ "use strict";

<div
id="{{name}}">
class="{{name}}"
>
{{name}} component by moo-cli
</div>

@@ -11,27 +13,28 @@ </template>

<script>
{{#flux}}import {
mapActions,
mapGetters
} from 'vuex'{{#airbnb}};{{/airbnb}}
{{/flux}}
export default {
name: '{{name}}',
components: {
// ...
},
data () {
return {
// variables
}{{#airbnb}};{{/airbnb}}
},
computed: {
{{#flux}}...mapGetters([
]){{#airbnb}},{{/airbnb}}{{/flux}}{{^flux}}// ...{{/flux}}
},
methods: {
{{#flux}}...mapActions({
}){{#airbnb}},{{/airbnb}}{{/flux}}{{^flux}}// ...{{/flux}}
}{{#airbnb}},{{/airbnb}}
}{{#airbnb}};{{/airbnb}}
</script>`
.trim();
{{#flux}}import {
mapActions,
mapGetters
} from 'vuex'{{#airbnb}};{{/airbnb}}
{{/flux}}
export default {
name: '{{name}}',
components: {
// ...
},
data () {
return {
// variables
}{{#airbnb}};{{/airbnb}}
},
computed: {
{{#flux}}...mapGetters([
]){{#airbnb}},{{/airbnb}}{{/flux}}{{^flux}}// ...{{/flux}}
},
methods: {
{{#flux}}...mapActions({
}){{#airbnb}},{{/airbnb}}{{/flux}}{{^flux}}// ...{{/flux}}
}{{#airbnb}},{{/airbnb}}
}{{#airbnb}};{{/airbnb}}
</script>
`;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = `import { shallowMount } from '@vue/test-utils'
import {{name}} from '../{{name}}.vue'
import {{name}} from './index.vue'
describe('{{name}}.vue', () => {
it('renders li for each item in props.items', () => {
const wrapper = shallowMount({{name}})
expect(wrapper.contains('div')).toBe(true)
const wrapper = shallowMount({{name}})
it('should render properly', () => {
expect(wrapper).toBeDefined()
expect(wrapper.is('div')).toBe(true)
expect(wrapper.classes().includes('{{name}}')).toBe(true)
expect(wrapper.text()).toBe('{{name}} component by moo-cli')
})
})`
.trim();
})
`;
{
"name": "@softboxlab/moo-cli",
"version": "0.1.0",
"version": "0.2.0",
"description": "A MOOvelous CLI",

@@ -15,2 +15,3 @@ "main": "dist/index.js",

"lintfix": "npm run lint -- --fix",
"build": "npm run check && npm run lint && tsc",
"release:tags": "git push && git push --tags",

@@ -20,5 +21,2 @@ "release:patch": "npm version patch && npm run release:tags",

"release:major": "npm version major && npm run release:tags",
"build": "npm run check && npm run lint && tsc",
"test": "jest",
"coverage": "jest --coverage",
"travis-deploy-once": "travis-deploy-once",

@@ -83,7 +81,5 @@ "semantic-release": "semantic-release"

"@types/inquirer": "0.0.43",
"@types/jest": "^23.3.1",
"@types/mkdirp": "^0.5.2",
"@types/mustache": "^0.8.31",
"@types/node": "^10.5.3",
"babel-cli": "^6.26.0",
"chalk": "^2.4.1",

@@ -93,5 +89,3 @@ "conventional-changelog": "^2.0.1",

"husky": "^0.14.3",
"jest": "^23.4.1",
"lint-staged": "^7.2.0",
"ts-jest": "^23.1.3",
"tslint": "^5.11.0",

@@ -98,0 +92,0 @@ "typescript": "^3.0.1"

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