diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..de46e326 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: +- package-ecosystem: npm + directory: "/" + schedule: + interval: daily + time: "11:00" + open-pull-requests-limit: 10 diff --git a/.github/workflows/node-ci.yaml b/.github/workflows/node-ci.yaml new file mode 100644 index 00000000..0e7304c8 --- /dev/null +++ b/.github/workflows/node-ci.yaml @@ -0,0 +1,51 @@ +name: tests + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Yarn cache + uses: actions/cache@v2 + id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + - name: node_modules/ cache + uses: actions/cache@v2 + id: node-modules-cache + with: + path: node_modules + key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} + - name: project - install + run: yarn + - name: lint + run: | + yarn lint + + - name: build + run: | + yarn build + + - name: test + run: | + yarn test diff --git a/.gitignore b/.gitignore index c0b598a5..047a35e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,4 @@ /node_modules/ /lib/ /test/ - -# top level source -my-element.js -my-element.js.map -my-element.d.ts -my-element.d.ts.map +/dist/ diff --git a/dev/index.html b/dev/index.html index 8e27df24..9a056338 100644 --- a/dev/index.html +++ b/dev/index.html @@ -4,7 +4,7 @@