Skip to content

Commit 9acba55

Browse files
authored
Merge pull request #2 from microsoft/perf
Import definitely-not-slow
2 parents 5b481ab + 5ae6e8a commit 9acba55

File tree

101 files changed

+14889
-4584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+14889
-4584
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.d.ts
22
dist/**
3-
node_modules
3+
node_modules
4+
packages/publisher/output

.github/workflows/ci.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
branches:
77
- master
88
jobs:
9-
ci:
10-
name: 'build and test'
9+
build_and_test:
10+
name: build and test
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
@@ -23,3 +23,30 @@ jobs:
2323
run: npm run lint
2424
- name: test
2525
run: npm test
26+
publish_alpha:
27+
name: publish alpha release
28+
runs-on: ubuntu-latest
29+
needs: build_and_test
30+
if: github.event_name == 'push'
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions/setup-node@v1
34+
with:
35+
node-version: 12.x
36+
registry-url: https://registry.npmjs.org
37+
- name: install
38+
run: npm ci
39+
- name: build
40+
run: npm run build
41+
# Necessary because publisher installs npm,
42+
# which will be the default npm used to run
43+
# `npm ci` on publisher itself in the next
44+
# step, which starts by removing node_modules.
45+
# So npm removes itself and then errors because
46+
# it can’t find itself.
47+
- name: clean
48+
run: npx lerna clean --yes
49+
- name: publish alpha
50+
run: npx lerna publish -y --canary --pre-dist-tag next --preid next
51+
env:
52+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
dist
3+
packages/publisher/output

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "pwa-chrome",
9+
"request": "launch",
10+
"name": "Launch Chrome against localhost",
11+
"url": "http://localhost:8080",
12+
"webRoot": "${workspaceFolder}"
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)