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

Commit

Permalink
Project is renamed to darty.
Browse files Browse the repository at this point in the history
  • Loading branch information
eser committed Nov 4, 2018
1 parent c6bb482 commit 49efcf3
Show file tree
Hide file tree
Showing 9 changed files with 193 additions and 181 deletions.
39 changes: 25 additions & 14 deletions README.md
@@ -1,15 +1,26 @@
# [Dart](https://github.com/eserozvataf/dart)
# 🎯 [Darty](https://github.com/eserozvataf/darty)

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
compiler configurations are handled by dart's itself.
Darty is a front-end development system to allow developers to start their projects
immediately. By Darty's convention over configuration mindset, webpack and typescript
compiler configurations are handled by darty'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 React App Source: [https://github.com/eserozvataf/dart-react-app](https://github.com/eserozvataf/dart-react-app)
* Sample React App Preview: [http://dart-react-app.s3-website-eu-west-1.amazonaws.com](http://dart-react-app.s3-website-eu-west-1.amazonaws.com)
* Sample React App Source: [https://github.com/eserozvataf/darty-react-app](https://github.com/eserozvataf/darty-react-app)
* Sample React App Preview: [http://darty-react-app.s3-website-eu-west-1.amazonaws.com](http://darty-react-app.s3-website-eu-west-1.amazonaws.com)


## Disclosure

The project was named as Dart after the dart game all we know. Although I think it's a generic name, authorities from Google have claimed dart is a trademarked name they own. They asked me to
find a new name for this project. Otherwise, they stated that their legal or trademark teams
will be involved.

Sadly... that's the reason why I renamed this project as darty.

-- Eser


## Features
Expand Down Expand Up @@ -48,27 +59,27 @@ Vue preset broughts vue setup and etc.
Ensure that `node.js` is installed on your system first.

### Alternative 1
Use the following command to create app with [create-dart-app](https://github.com/eserozvataf/create-dart-app):
Use the following command to create app with [create-darty-app](https://github.com/eserozvataf/create-darty-app):

```sh
npx create-dart-app react app
npx create-darty-app react app
cd app
npm run dev
```

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

Execute `npm install` to install dependencies. Then run `npm run dev` for starting
development environment.


## Dart Tasks
## Darty Tasks

Use `dart [task]` command in project folder to execute tasks defined in `package.json`.
Use `darty [task]` command in project folder to execute tasks defined in `package.json`.

| Task | Description |
|--------------------------|----------------------------------------------------------------------------------------|
Expand All @@ -87,7 +98,7 @@ Use `dart [task]` command in project folder to execute tasks defined in `package
- BrowserSync support
- Service Workers

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


## Requirements
Expand All @@ -107,7 +118,7 @@ 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 report a bug: If something does not work, please report it using [GitHub Issues](https://github.com/eserozvataf/darty/issues).


## To Support
Expand Down
2 changes: 1 addition & 1 deletion bin/scripts/containerize.js
Expand Up @@ -14,7 +14,7 @@ function containerize(imageName) {
// if (imageName === undefined) {
// console.error(`${colors.red('specify a image name to create docker container.')}

// ${colors.white('example:')} 'npm run containerize dart-app'
// ${colors.white('example:')} 'npm run containerize darty-app'
// `);

// process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion core/etc/docker-compose.yml
Expand Up @@ -2,7 +2,7 @@ version: '2'

services:
app:
container_name: dart-app
container_name: darty-app
build: .
restart: always
ports:
Expand Down
4 changes: 2 additions & 2 deletions core/etc/varsConstructor.js
Expand Up @@ -2,7 +2,7 @@ const path = require('path');

function varsConstructor(env = 'development', argv = {}) {
const appRoot = process.cwd();
const dartRoot = path.resolve(__dirname, '../../');
const dartyRoot = path.resolve(__dirname, '../../');

const envValue = argv.mode || process.env.NODE_ENV || 'development';
const isProduction = (envValue === 'production');
Expand Down Expand Up @@ -38,7 +38,7 @@ function varsConstructor(env = 'development', argv = {}) {
manifest,
appRoot,
presetRoot,
dartRoot,
dartyRoot,
envValue,
isProduction,
};
Expand Down
2 changes: 1 addition & 1 deletion core/etc/webpack.browser.js
Expand Up @@ -24,7 +24,7 @@ const browserConfig = configWrapper((vars) => {
target: 'web',

entry: {
'browser': [ `${vars.dartRoot}/core/src/index.browser.tsx` ],
'browser': [ `${vars.dartyRoot}/core/src/index.browser.tsx` ],
},

output: {
Expand Down
6 changes: 3 additions & 3 deletions core/etc/webpack.common.js
Expand Up @@ -71,7 +71,7 @@ const commonConfig = (name) => configWrapper((vars) => {
mainFields: [ 'main', 'module' ],
plugins: [
new TsconfigPathsPlugin({
configFile: `${vars.dartRoot}/core/etc/tsconfig.json`,
configFile: `${vars.dartyRoot}/core/etc/tsconfig.json`,
extensions: [ '.ts', '.tsx', '.js', '.jsx', '.mjs' ],
baseUrl: vars.appRoot,
}),
Expand All @@ -84,15 +84,15 @@ const commonConfig = (name) => configWrapper((vars) => {
'process.env': {
NODE_ENV: JSON.stringify(vars.envValue),
PLATFORM: JSON.stringify(name),
DART_VARS: JSON.stringify(vars),
DARTY_VARS: JSON.stringify(vars),
},
}),
new webpack.WatchIgnorePlugin([
/css\.d\.ts$/
]),
new CaseSensitivePathsPlugin(),
new DotenvPlugin({
// safe: `${vars.dartRoot}/templates/.env.default`,
// safe: `${vars.dartyRoot}/templates/.env.default`,
// path: './.env',
silent: true,
}),
Expand Down
2 changes: 1 addition & 1 deletion core/etc/webpack.server.js
Expand Up @@ -26,7 +26,7 @@ const serverConfig = configWrapper((vars) => {
],

entry: {
'server': [ `${vars.dartRoot}/core/src/index.server.tsx` ],
'server': [ `${vars.dartyRoot}/core/src/index.server.tsx` ],
},

output: {
Expand Down

0 comments on commit 49efcf3

Please sign in to comment.