-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from edrlab/feature/misc-project-setup
various project setup improvements
- Loading branch information
Showing
12 changed files
with
5,025 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# top-most EditorConfig file | ||
root=true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
# Matches multiple files with brace expansion notation | ||
# Set default charset | ||
[*.{js,ts}] | ||
charset = utf-8 | ||
[*.{md}] | ||
indent_style = ignore | ||
indent_size = ignore | ||
|
||
# 4 space indentation | ||
[*.{scss,css,py}] | ||
[*.{js,ts,jsx,tsx}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# 2 space indentation | ||
[*.{html,yml,json,ejs}] | ||
[*.{yml,json}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{html,ejs,css,scss}] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
dist | ||
node_modules | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
esudo: false | ||
branches: | ||
only: | ||
- master | ||
language: node_js | ||
node_js: | ||
- 6 | ||
|
||
- '6' | ||
before_install: | ||
- 'pwd && ls -als' | ||
install: | ||
- npm install | ||
- npm run lint | ||
|
||
- 'pwd && ls -als' | ||
before_script: | ||
- npm run lint | ||
|
||
- 'pwd && ls -als' | ||
- 'yarn install' | ||
script: | ||
- npm run build | ||
- 'yarn run lint' | ||
- 'yarn run build' | ||
after_success: | ||
- 'pwd && ls -als' | ||
- 'ls dist' | ||
after_failure: | ||
- 'pwd && ls -als' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
{ | ||
"name": "readium-desktop", | ||
"version": "0.1.0", | ||
"version": "0.0.1-alpha1", | ||
"description": "Desktop application to read ebooks", | ||
"main": "index.js", | ||
"keywords": [ | ||
"readium", | ||
"epub" | ||
], | ||
"engines": { | ||
"node": ">=6", | ||
"npm": ">=3", | ||
"yarn": ">= 0.21" | ||
}, | ||
"main": "dist/main.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "cross-env BUILD_ENV=PROD webpack -p", | ||
"start": "npm run build && cross-env BUILD_ENV=PROD electron ./dist/main.js", | ||
"lint:ts": "tslint './src/**/*.ts'", | ||
"lint:editorconfig": "editorconfig-tools check .* * src/* src/*/*", | ||
"lint:editorconfig": "eclint check '**/*' '[!].git/**/*' '[!]node_modules/**/*' '[!]dist/**/*' '[!]**/.DS_Store'", | ||
"lint": "npm run lint:editorconfig && npm run lint:ts", | ||
"start:dev:renderer": "webpack-dev-server", | ||
"start:dev:main": "webpack -d && electron ./dist/main.js", | ||
|
@@ -18,8 +27,22 @@ | |
"type": "git", | ||
"url": "[email protected]:edrlab/readium-desktop.git" | ||
}, | ||
"author": "EDRLab", | ||
"license": "Copyright @EDRLab", | ||
"author": { | ||
"name": "EDRLab developers", | ||
"organization": "EDRLab", | ||
"url": "http://github.com/edrlab/" | ||
}, | ||
"license": "BSD-3-Clause", | ||
"licenses": [ | ||
{ | ||
"type": "BSD-3-Clause", | ||
"url": "http://opensource.org/licenses/BSD-3-Clause" | ||
} | ||
], | ||
"bugs": { | ||
"url": "https://github.com/edrlab/readium-desktop/issues" | ||
}, | ||
"homepage": "https://github.com/edrlab/readium-desktop", | ||
"dependencies": { | ||
"@types/electron": "^1.4.34", | ||
"@types/i18next": "^2.3.35", | ||
|
@@ -50,7 +73,7 @@ | |
"concurrently": "^3.4.0", | ||
"cross-env": "^3.2.4", | ||
"css-loader": "^0.28.0", | ||
"editorconfig-tools": "^0.1.1", | ||
"eclint": "^2.0.1", | ||
"electron": "^1.6.2", | ||
"extract-text-webpack-plugin": "^2.1.0", | ||
"file-loader": "^0.10.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.