ti2-tourplan 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js ADDED
@@ -0,0 +1,46 @@
1
+ module.exports = {
2
+ env: {
3
+ browser: true,
4
+ commonjs: true,
5
+ es2021: true,
6
+ },
7
+ extends: [
8
+ 'airbnb-base',
9
+ ],
10
+ parserOptions: {
11
+ ecmaVersion: 'latest',
12
+ },
13
+ rules: {
14
+ 'implicit-arrow-linebreak': 0,
15
+ 'operator-linebreak': 0,
16
+ 'prefer-template': 2,
17
+ 'arrow-parens': [
18
+ 2,
19
+ 'as-needed',
20
+ {
21
+ requireForBlockBody: false,
22
+ },
23
+ ],
24
+ 'prefer-arrow-callback': 2,
25
+ 'no-unused-vars': [
26
+ 2,
27
+ {
28
+ argsIgnorePattern: '^_*$',
29
+ },
30
+ ],
31
+ 'no-use-before-define': 0,
32
+ 'no-console': 0,
33
+ 'new-cap': 0,
34
+ 'no-underscore-dangle': [
35
+ 'error',
36
+ {
37
+ allow: [
38
+ '_id',
39
+ '__',
40
+ 'resource_id',
41
+ ],
42
+ },
43
+ ],
44
+ },
45
+ ignorePatterns: ['**/docs/*'],
46
+ };
@@ -0,0 +1,41 @@
1
+ name: Node.js Package
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+
7
+ jobs:
8
+ build_and_test:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - uses: actions/setup-node@v1
13
+ with:
14
+ node-version: 12
15
+ - run: npm ci
16
+ - run: npm run build --if-present
17
+ - run: npm test
18
+ env:
19
+ ti2_tourplan_endpoint: ${{ secrets.TOURPLAN_ENDPOINT }}
20
+ ti2_tourplan_username: ${{ secrets.TOURPLAN_USERNAME }}
21
+ ti2_tourplan_password: ${{ secrets.TOURPLAN_PASSWORD }}
22
+ tag:
23
+ if: github.ref == 'refs/heads/main'
24
+ needs: build_and_test
25
+ runs-on: ubuntu-latest
26
+ steps:
27
+ - uses: actions/checkout@v2
28
+ - uses: tool3/bump@master
29
+ with:
30
+ github_token: ${{ secrets.GITHUB_TOKEN }}
31
+ unrelated: true
32
+ branch: main
33
+ publish-npm:
34
+ if: github.ref == 'refs/heads/main'
35
+ needs: tag
36
+ runs-on: ubuntu-latest
37
+ steps:
38
+ - uses: actions/checkout@v1
39
+ - uses: JS-DevTools/npm-publish@v1
40
+ with:
41
+ token: ${{ secrets.NPM_TOKEN }}