Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dojo/cli-create-app

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dojo/cli-create-app - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

2

main.d.ts

@@ -1,4 +0,4 @@

import { Command } from '@dojo/interfaces/cli';
import { Command } from '@dojo/cli/interfaces';
import { CreateAppArgs } from './run';
declare const command: Command<CreateAppArgs>;
export default command;
{
"name": "@dojo/cli-create-app",
"version": "0.4.0",
"version": "0.5.0",
"description": "Command to scaffold a new command",

@@ -20,3 +20,3 @@ "homepage": "https://dojo.io",

"devDependencies": {
"@dojo/interfaces": "~0.2.0",
"@dojo/cli": "~0.6.1",
"@dojo/loader": "~0.1.1",

@@ -23,0 +23,0 @@ "@types/chalk": "^0.4.31",

@@ -8,6 +8,4 @@ # cli-create-app

The `create app` command for the `dojo cli`.
The `create app` command for [`@dojo/cli`](https://github.com/dojo/cli).
**WARNING** This is _beta_ software. While we do not anticipate significant changes to the API at this stage, we may feel the need to do so. This is not yet production ready, so you should use at your own risk.
- [Usage](#usage)

@@ -39,9 +37,9 @@ - [Features](#features)

All the dependencies have been pre-installed using `npm` including two `@dojo/cli` commands; [`@dojo/cli-build-webpack`](https://github.com/dojo/cli-build) and [`@dojo/cli-test-intern`](https://github.com/dojo/cli-test-intern).
All the dependencies are pre-installed using `npm` including two `@dojo/cli` commands; [`@dojo/cli-build-app`](https://github.com/dojo/cli-build-app) and [`@dojo/cli-test-intern`](https://github.com/dojo/cli-test-intern).
To start using the application, `cd` into the directory and run `dojo build --watch` which will build and serve the application on port `9999`. Open [http://localhost:9999](http://localhost:9999) in a modern browser (Chrome, FF, Safari, IE11 or Edge) to run the application.
To start using the application, `cd` into the directory and run `dojo build --mode dev --watch memory --serve` which will build and serve the application on port `9999`. Open [http://localhost:9999](http://localhost:9999) in a modern browser (Chrome, FF, Safari, IE11 or Edge) to run the application.
For testing the application run `dojo test`, which will build the application (`src` and `tests`) and run all test in node.
To build the tests, run `dojo build --mode test`. This will output to `output/test`.
When ready to create a production build run `dojo build`, the output will be available in the `dist` directory.
When ready to create a production build run `dojo build`, the output will be available in the `output/dist` directory.

@@ -81,2 +79,2 @@ ## How do I contribute?

© 2017 [JS Foundation](https://js.foundation/). [New BSD](http://opensource.org/licenses/BSD-3-Clause) license.
© 2018 [JS Foundation](https://js.foundation/). [New BSD](http://opensource.org/licenses/BSD-3-Clause) license.

@@ -1,2 +0,2 @@

import { OptionsHelper } from '@dojo/interfaces/cli';
import { OptionsHelper } from '@dojo/cli/interfaces';
export default function (options: OptionsHelper): void;

@@ -1,2 +0,2 @@

import { Helper } from '@dojo/interfaces/cli';
import { Helper } from '@dojo/cli/interfaces';
export interface CreateAppArgs {

@@ -3,0 +3,0 @@ name: string;

@@ -5,16 +5,15 @@ {

"dependencies": {
"@dojo/core": "~0.3.1",
"@dojo/core": "~0.4.0",
"@dojo/has": "~0.1.2",
"@dojo/routing": "~0.4.1",
"@dojo/shim": "~0.2.4",
"@dojo/widget-core": "~0.6.2",
"@dojo/widgets": "~0.4.1",
"@dojo/i18n": "~0.4.1",
"@dojo/shim": "~0.2.6",
"@dojo/i18n": "~0.5.1",
"@dojo/widget-core": "~0.9.6",
"@dojo/routing": "~0.6.1",
"@dojo/widgets": "~0.6.1",
"tslib": "~1.8.1"
},
"devDependencies": {
"@dojo/cli-build-app": "~0.1.1",
"@dojo/cli-test-intern": "~0.4.0",
"@dojo/loader": "~0.1.1",
"@dojo/test-extras": "~0.4.1",
"@dojo/cli-build-app": "~0.3.4",
"@dojo/cli-test-intern": "~0.5.1",
"@dojo/test-extras": "~0.6.0",
"@types/glob": "~5.0.0",

@@ -25,5 +24,4 @@ "@types/grunt": "~0.4.0",

"intern": "~4.1.5",
"sinon": "^2.0.0",
"typescript": "~2.6.1"
}
}

@@ -21,6 +21,8 @@ # <%- appName %>

To run the unit tests, first the run a test build with `dojo build --mode test`. The build test artifacts are written to the `output/test` directory.
To run units tests in node only use `dojo test` which uses JIT (just in time) compilation.
Then `dojo test` to run the projects unit tests. These tests are located in the `tests/unit` directory. The `--watch` options can be used with the test build which means that `dojo test` can be re-run without needing to re-build the full application each time.
To run the unit tests against built bundles, first the run a test build with `dojo build --mode test`. The build test artifacts are written to the `output/test` directory.
Then `dojo test -c local` to run the projects unit tests. These tests are located in the `tests/unit` directory. The `--watch` options can be used with the test build which means that `dojo test` can be re-run without needing to re-build the full application each time.
## Running functional tests

@@ -27,0 +29,0 @@

@@ -0,3 +1,3 @@

import WidgetBase from '@dojo/widget-core/WidgetBase';
import { v } from '@dojo/widget-core/d';
import { WidgetBase } from '@dojo/widget-core/WidgetBase';

@@ -9,15 +9,8 @@ import * as css from './styles/helloWorld.m.css';

/**
* A themed "Hello World" widget that renders a spinning Dojo 2 logo and the text
* "Hello, Dojo 2 World!".
* A "Hello World" widget that renders a spinning Dojo 2 logo and the text "Hello, Dojo 2 World!".
*
* Refer to these tutorials for more help with creating a widget:
* - Creating widgets, https://dojo.io/tutorials/003_creating_widgets/
* Refer to the creating widgets tutorial for help: https://dojo.io/tutorials/003_creating_widgets/
*/
export class HelloWorld extends WidgetBase {
/**
* Override WidgetBase#render to produce a virtual DOM tree.
* @returns {HNode} Each time render() executes, it should build the entire virtual DOM tree.
*/
protected render() {
// Use WidgetBase#classes() to assign CSS classnames from the theme to the virtual DOM nodes.
return v('div', { classes: css.root }, [

@@ -24,0 +17,0 @@ v('img', { src: logo, classes: css.logo }),

const { describe, it } = intern.getInterface('bdd');
import harness from '@dojo/test-extras/harness';
import { v } from '@dojo/widget-core/d';
import { v, w } from '@dojo/widget-core/d';

@@ -13,4 +13,4 @@ import HelloWorld from '../../../src/widgets/HelloWorld';

it('should render widget', () => {
const testHelloWorld = harness(HelloWorld);
testHelloWorld.expectRender(
const h = harness(() => w(HelloWorld, {}));
h.expect(() =>
v('div', { classes: css.root }, [

@@ -17,0 +17,0 @@ v('img', { src: logo, classes: css.logo }),

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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