Skip to content

Commit

Permalink
chore: add and apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
chihab committed Mar 19, 2021
1 parent 898df27 commit ab04717
Show file tree
Hide file tree
Showing 66 changed files with 1,004 additions and 20,613 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GOOGLE_API_KEY=
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package.json
dist
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ https://ngx-darija.netlify.app
# Development (SPA)

- Run `npm start`
- Tests `npm run test`
- Tests `npm run test`

# Development (Netlify Function)

Expand All @@ -21,7 +21,6 @@ set up your dev environment for the `netlify function` to consume this API key.
- follow [this instructions](https://developers.google.com/maps/documentation/maps-static/get-api-key?hl=en) to set up an API key
with your Google account
- add the GOOGLE_API_KEY to your env variables: `export GOOGLE_API_KEY='{{YOUR_API_KEY}}'`

- run `netlify dev` from root directory

# Build
Expand All @@ -39,6 +38,7 @@ Thanks for your contribution.
If it's your first contribution to a public Github repo follow [this](https://github.com/firstcontributions/first-contributions).

Otherwise Just

- Pick an issue.
- Check if someone is already working on it (read the comments)
- Let everyone know that you are working on the issue (Add a comment expressing that)
Expand Down
26 changes: 6 additions & 20 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,8 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
},
"configurations": {
Expand Down Expand Up @@ -92,13 +87,8 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
}
},
Expand All @@ -111,9 +101,7 @@
"e2e/tsconfig.json",
"tsconfig.server.json"
],
"exclude": [
"**/node_modules/**"
]
"exclude": ["**/node_modules/**"]
}
},
"e2e": {
Expand Down Expand Up @@ -167,9 +155,7 @@
"options": {
"browserTarget": "ngx-darija:build:production",
"serverTarget": "ngx-darija:server:production",
"routes": [
"/"
]
"routes": ["/"]
},
"configurations": {
"production": {}
Expand Down
20 changes: 10 additions & 10 deletions e2e/protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
*/
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./src/**/*.e2e-spec.ts'
],
specs: ['./src/**/*.e2e-spec.ts'],
capabilities: {
browserName: 'chrome'
},
Expand All @@ -22,16 +20,18 @@ exports.config = {
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
print: function() {}
print: function () {}
},
onPrepare() {
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.json')
});
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: StacktraceOption.PRETTY
}
}));
jasmine.getEnv().addReporter(
new SpecReporter({
spec: {
displayStacktrace: StacktraceOption.PRETTY
}
})
);
}
};
};
8 changes: 5 additions & 3 deletions e2e/src/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ describe('workspace-project App', () => {
afterEach(async () => {
// Assert that there are no errors emitted from the browser
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
expect(logs).not.toContain(jasmine.objectContaining({
level: logging.Level.SEVERE,
} as logging.Entry));
expect(logs).not.toContain(
jasmine.objectContaining({
level: logging.Level.SEVERE
} as logging.Entry)
);
});
});
5 changes: 1 addition & 4 deletions e2e/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"outDir": "../out-tsc/e2e",
"module": "commonjs",
"target": "es2018",
"types": [
"jasmine",
"node"
]
"types": ["jasmine", "node"]
}
}
5 changes: 1 addition & 4 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ module.exports = function (config) {
coverageReporter: {
dir: require('path').join(__dirname, './coverage/ngx-darija'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
reporters: [{ type: 'html' }, { type: 'text-summary' }]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
Expand Down
Loading

0 comments on commit ab04717

Please sign in to comment.