Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial implementation of AssetSubscriber class #1

Merged
merged 11 commits into from
Dec 11, 2020
Next Next commit
initial project skeleton
  • Loading branch information
owenpearson committed Dec 3, 2020
commit 20dd6ef3b74d26895851e941195f18fdc5116095
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
webpack.config.js
10 changes: 10 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
node_modules/
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might it be worth also having an .editorconfig file also?

We have one in the Android repository.

"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 120
}
6,498 changes: 6,498 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "ably-asset-tracking-js",
"version": "0.1.0",
"description": "JavaScript client SDKs for the Ably Asset Tracking service.",
"main": "dist/main.js",
"typings": "index.d.ts",
"scripts": {
"build": "webpack",
"lint": "eslint .",
"check-formatting": "prettier -c src/**/*.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@typescript-eslint/parser": "^4.9.0",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"prettier": "^2.2.1",
"ts-loader": "^8.0.11",
"typescript": "^4.1.2",
"webpack": "^5.9.0",
"webpack-cli": "^4.2.0"
},
"dependencies": {
"ably": "^1.2.4"
}
}
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"lib": ["ES2015"],
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
}
19 changes: 19 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
target: 'web',
output: {
library: 'AblyAssetTracking',
libraryTarget: 'umd',
libraryExport: 'default',
},
resolve: {
extensions: ['.ts'],
},
module: {
rules: [
{ test: /\.ts$/, loader: 'ts-loader'},
],
},
externals: {
ably: true,
},
};