Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Commit

Permalink
refactor: major overhaul
Browse files Browse the repository at this point in the history
- Embrace env variables + dotenv
- Update to webpack 3 and react 16
- Use our babel preset-moxy
- Update all bin files and move them to scripts, to match the upcoming move of those files to react-with-moxy-scripts
- Add test script that uses Jest
- Add commitlint and standard-version: embrace conventional commits!
- Use webpack-isomorphic-compiler and webpack-isomorphic-dev-middleware
- Use the new uglify-es
- And a lot of minor improvements!
  • Loading branch information
satazor committed Nov 20, 2017
1 parent dc994d6 commit e158126
Show file tree
Hide file tree
Showing 59 changed files with 17,761 additions and 1,303 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,npm-shrinkwrap.json}]
[{package.json,package-lock.json}]
indent_size = 2

[*.md]
Expand Down
15 changes: 15 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# NODE_ENV, PUBLIC_URL, PUBLIC_ASSETS_URL and RWM_* variables will be
# available in server process as well as inside the app
# This means that you must prefix env variables with RWM_ you want them to be available in the app (for security)
# ----------------------------------------------------------------------------------

# Public URL of the app (e.g.: https://moxy.studio)
# This environment variable is useful to build full absolute URLs
PUBLIC_URL=

# Public path to the built assets of the app (e.g.: https://cdn.moxy.studio)
# For production, it's a good practice serve files from a CDN
PUBLIC_ASSETS_URL=/build

# Google Tracking code
RWM_GA_TRACKING_CODE=
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/public
/coverage
12 changes: 6 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"extends": [
"eslint-config-moxy/es8",
"eslint-config-moxy/addons/browser",
"eslint-config-moxy/addons/node",
"eslint-config-moxy/addons/es6-modules",
"eslint-config-moxy/addons/react",
"eslint-config-moxy/addons/object-spread"
"eslint-config-moxy/addons/node",
"eslint-config-moxy/addons/object-spread",
"eslint-config-moxy/addons/jest"
],
"globals": {
"process": false,
"__SERVER__": false,
"__CLIENT__": false,
"__DEV__": false
"rules": {
"global-require": 0
}
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
npm-debug.*
/web/build
/public/build
/coverage
.env
2 changes: 2 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/public
/coverage
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ TODO:

1. Clone the project
2. Change the `origin` remote to your project's repository
4. `$ npm install`
3. `$ npm install`


## Development
Expand Down
7 changes: 0 additions & 7 deletions bin/.eslintrc.json

This file was deleted.

141 changes: 0 additions & 141 deletions bin/build

This file was deleted.

93 changes: 0 additions & 93 deletions bin/lint

This file was deleted.

Loading

0 comments on commit e158126

Please sign in to comment.