# dart-cli

> Dart

Latest version **0.16.0** (published 2018-10-21) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install dart-cli
pnpm add dart-cli
yarn add dart-cli
bun add dart-cli
```

Provides the command `dart`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.16.0 |
| Published | 2018-10-21 |
| First published | 2018-10-20 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.10.0 |
| Dependencies | 45 |
| Unpacked size | 35.1 KB |
| Known vulnerabilities | 0 (+12 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Eser Ozvataf |
| Maintainers | eserozvataf |
| Keywords | typescript, typed, react, spa, boilerplate, starter |

## Links

- npm: https://www.npmjs.com/package/dart-cli
- Repository: https://github.com/eserozvataf/dart
- Issues: https://github.com/eserozvataf/dart/issues
- npm.io page: https://npm.io/package/dart-cli

## Dependencies (45)

- [jest](https://npm.io/package/jest.md) ^23.6.0
- [react](https://npm.io/package/react.md) ^16.5.2
- [tslib](https://npm.io/package/tslib.md) ^1.9.3
- [eslint](https://npm.io/package/eslint.md) ^5.7.0
- [cssnano](https://npm.io/package/cssnano.md) ^4.1.5
- [express](https://npm.io/package/express.md) ^4.16.4
- [history](https://npm.io/package/history.md) ^4.7.2
- [postcss](https://npm.io/package/postcss.md) ^7.0.5
- [ts-jest](https://npm.io/package/ts-jest.md) ^23.10.4
- [webpack](https://npm.io/package/webpack.md) ^4.21.0
- [node-sass](https://npm.io/package/node-sass.md) ^4.9.4
- [react-dom](https://npm.io/package/react-dom.md) ^16.5.2
- [ts-loader](https://npm.io/package/ts-loader.md) ^5.2.2
- [css-loader](https://npm.io/package/css-loader.md) ^1.0.0
- [typescript](https://npm.io/package/typescript.md) ^3.1.3
- [url-loader](https://npm.io/package/url-loader.md) ^1.1.2
- [es6-promise](https://npm.io/package/es6-promise.md) ^4.2.5
- [file-loader](https://npm.io/package/file-loader.md) ^2.0.0
- [react-redux](https://npm.io/package/react-redux.md) ^5.0.7
- [sass-loader](https://npm.io/package/sass-loader.md) ^7.1.0
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^3.1.2
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^9.2.1
- [whatwg-fetch](https://npm.io/package/whatwg-fetch.md) ^3.0.0
- [postcss-import](https://npm.io/package/postcss-import.md) ^12.0.0
- [postcss-loader](https://npm.io/package/postcss-loader.md) ^3.0.0
- [postcss-modules](https://npm.io/package/postcss-modules.md) ^1.4.1
- [postcss-nesting](https://npm.io/package/postcss-nesting.md) ^7.0.0
- [react-native-web](https://npm.io/package/react-native-web.md) ^0.9.3
- [eslint-config-eser](https://npm.io/package/eslint-config-eser.md) ^2.0.7
- [identity-obj-proxy](https://npm.io/package/identity-obj-proxy.md) ^3.0.0
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^3.1.9
- [copy-webpack-plugin](https://npm.io/package/copy-webpack-plugin.md) ^4.5.4
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.11.1
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.14.0
- [webpack-dotenv-plugin](https://npm.io/package/webpack-dotenv-plugin.md) ^2.1.0
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.1.2
- [webpack-node-externals](https://npm.io/package/webpack-node-externals.md) ^1.7.2
- [webpack-bundle-analyzer](https://npm.io/package/webpack-bundle-analyzer.md) ^3.0.3
- [eslint-config-eser-react](https://npm.io/package/eslint-config-eser-react.md) ^2.0.7
- [typescript-eslint-parser](https://npm.io/package/typescript-eslint-parser.md) ^20.0.0
- [tsconfig-paths-webpack-plugin](https://npm.io/package/tsconfig-paths-webpack-plugin.md) ^3.2.0
- [typings-for-css-modules-loader](https://npm.io/package/typings-for-css-modules-loader.md) ^1.7.0
- [webpack-async-chunk-names-plugin](https://npm.io/package/webpack-async-chunk-names-plugin.md) ^0.1.1
- [extract-css-chunks-webpack-plugin](https://npm.io/package/extract-css-chunks-webpack-plugin.md) ^3.2.0
- [case-sensitive-paths-webpack-plugin](https://npm.io/package/case-sensitive-paths-webpack-plugin.md) ^2.1.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.16.0 (latest) — 2018-10-21
- 0.15.0 — 2018-10-20
- 0.14.0 — 2018-10-20
- 0.12.0 — 2018-10-20

## README

# [Dart](https://github.com/eserozvataf/dart)

Dart is a front-end development system to allow developers to start their projects
immediately. By Dart's convention over configuration mindset, webpack and typescript
configurations are handled by dart's itself.

This project is the product of many years of iterative development and combined
community knowledge. However you're free to architect your code in the way that
you want, you'll be starting with a structured, scaleable and adaptable basecode.

* Sample App Source: [https://github.com/eserozvataf/dart-app](https://github.com/eserozvataf/dart-app)
* Sample App Preview: [http://dart-app.s3-website-eu-west-1.amazonaws.com](http://dart-app.s3-website-eu-west-1.amazonaws.com)


## Features

* Transforms ES2015+Typescript files with .ts/.tsx extension into browser-compatible JavaScript code.
* Module bundling with webpack to pack everything into modules with their sourcemaps.
* SASS compilation of .scss files.
* CSS Modules.
* Minification for stylesheets and scripts.
* Hot module reloading and continuous development environment.
* Isomorphic/Universal codebase between server and client.
* IntelliSense support on TypeScript.
* React DevTools support.
* Unit-testing-ready environment.
* JavaScript and TypeScript linting.
* Autoprefixed CSS to avoid adding vendor prefixes.
* Containerization-ready for continuous integration/deployment environments.


## Architecture and Libraries

* React for rendering components.
* React Router for SPA routing.
* Redux binding for state management.
* Jest for tests, ESLint for linting.
* Webpack bundling with code splitting enabled.
* express for server-side rendering.


## Quick start

Clone the sample app's git repo `git clone
   https://github.com/eserozvataf/dart-app.git` - and checkout the [tagged
   release](https://github.com/eserozvataf/dart-app/releases) you'd like to
   use.

Execute `npm install` to install dependencies for development environment.


## Dart Tasks

Ensure that `node.js` is installed on your system first.
```bash
$ node --version
```

Use `dart <task>` command in project folder to execute tasks defined in `package.json`.

| Task                     | Description                                                                            |
|--------------------------|----------------------------------------------------------------------------------------|
| `init`                   | Initializes codebase.                                                                  |
| `bundle`                 | Builds the project, generates required files for clients                               |
| `bundle:prod`            | Builds the project, generates required files for clients (production)                  |
| `bundleServer`           | Builds the project, generates required files for SSR                                   |
| `bundleServer:prod`      | Builds the project, generates required files for SSR (production)                      |
| `start`                  | Starts SSR-enabled express server                                                      |
| `dev`                    | Enables live development environment powered by hot module reloading                   |
| `lint`                   | Executes linter to check codebase against linting errors                               |
| `test`                   | Runs tests to check codebase against unit testing scenerios                            |
| `containerize`           | Build and runs container image for docker                                              |


## Todo List

- App Presets
- Init (CLI Create App)
- Eject
- Containerization
- HTML generation
- Helmet
- Bundle + BundleServer together
- BrowserSync support
- Service Workers
- Dynamic Code Splitting
- Isomorphic fetch and promise polyfills

See [GitHub Projects](https://github.com/eserozvataf/dart/projects) for more.


## Requirements

* node.js (https://nodejs.org/)



## License

Apache 2.0, for further details, please see [LICENSE](LICENSE) file


## Contributing

See [contributors.md](contributors.md)

It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome.

* To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.
* To report a bug: If something does not work, please report it using [GitHub Issues](https://github.com/eserozvataf/dart/issues).


## To Support

[Visit my patreon profile at patreon.com/eserozvataf](https://www.patreon.com/eserozvataf)

---
_Source: https://npm.io/package/dart-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
