Skip to content

Commit 815d040

Browse files
committed
Adapt project to various environments (windows and jetbrains IDE's)
To allow developers working on project without any inconveniences. Different OS have handled line endings and environment variables differently. Also each IDE has system files that should not be in repository. So now we manage this points using cross-env package, .editorconfig and .gitignore. And we can working on project in different environments (such as windows and jetbrains IDE's)
1 parent 3619d28 commit 815d040

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ dist
77
# misc
88
.DS_Store
99
npm-debug.log
10+
/.idea

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"babel-preset-env": "^1.6.1",
4040
"babel-preset-react": "^6.24.1",
4141
"clean-webpack-plugin": "^0.1.17",
42+
"cross-env": "^5.1.3",
4243
"css-loader": "^0.28.7",
4344
"eslint": "^4.9.0",
4445
"eslint-config-airbnb": "^16.1.0",
@@ -61,7 +62,7 @@
6162
"scripts": {
6263
"lint": "eslint --ignore-path .gitignore --ext js,jsx .",
6364
"build": "webpack",
64-
"start": "NODE_ENV=development webpack-dev-server --open",
65+
"start": "cross-env NODE_ENV=development webpack-dev-server --open",
6566
"test": "jest"
6667
}
6768
}

0 commit comments

Comments
 (0)