@crawlee/templates 3.0.3-beta.18 → 3.0.3-beta.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/templates",
3
- "version": "3.0.3-beta.18",
3
+ "version": "3.0.3-beta.19",
4
4
  "description": "Templates for the crawlee projects",
5
5
  "engines": {
6
6
  "node": ">=16.0.0"
@@ -1,6 +1,8 @@
1
1
  FROM apify/actor-node:16
2
2
 
3
- COPY . ./
3
+ # copy package.json, lock file and possibly crawlee.json
4
+ COPY package*.json crawlee?json ./
5
+ COPY src ./src
4
6
 
5
7
  # install only prod deps
6
8
  RUN npm --quiet set progress=false \
@@ -5,7 +5,7 @@ export const router = createCheerioRouter();
5
5
  router.addDefaultHandler(async ({ enqueueLinks, log }) => {
6
6
  log.info(`Handle Start URLs`);
7
7
  await enqueueLinks({
8
- globs: ['https://crawlee.dev/*'],
8
+ globs: ['https://crawlee.dev/**'],
9
9
  label: 'DETAIL',
10
10
  });
11
11
  });
@@ -5,7 +5,7 @@ FROM apify/actor-node:16 AS builder
5
5
 
6
6
  # Second, copy the TS source files, package.json and package-lock.json since it should be
7
7
  # the only files that affects the installation and build in the next step
8
- COPY package*.json ./
8
+ COPY package*.json crawlee?json ./
9
9
  COPY src ./src
10
10
 
11
11
  # Install all dependencies (including dev deps) and build the project
@@ -14,8 +14,8 @@ RUN npm install --include=dev && npm run build
14
14
  # Create final image
15
15
  FROM apify/actor-node:16
16
16
 
17
- # Copy only necessary files
18
- COPY --from=builder /usr/src/app/package.json ./
17
+ # Copy only necessary files (crawlee.json might not exist, so we need the regexp trick with `crawlee?json`)
18
+ COPY --from=builder /usr/src/app/package.json /usr/src/app/crawlee?json ./
19
19
  COPY --from=builder /usr/src/app/README.md ./
20
20
  COPY --from=builder /usr/src/app/dist ./dist
21
21
 
@@ -5,7 +5,7 @@ export const router = createCheerioRouter();
5
5
  router.addDefaultHandler(async ({ enqueueLinks, log }) => {
6
6
  log.info(`Handle Start URLs`);
7
7
  await enqueueLinks({
8
- globs: ['https://crawlee.dev/*'],
8
+ globs: ['https://crawlee.dev/**'],
9
9
  label: 'DETAIL',
10
10
  });
11
11
  });
@@ -1,6 +1,8 @@
1
1
  FROM apify/actor-node-playwright-chrome:16
2
2
 
3
- COPY . ./
3
+ # copy package.json, lock file and possibly crawlee.json
4
+ COPY package*.json crawlee?json ./
5
+ COPY src ./src
4
6
 
5
7
  # install only prod deps
6
8
  RUN npm --quiet set progress=false \
@@ -5,7 +5,7 @@ export const router = createPlaywrightRouter();
5
5
  router.addDefaultHandler(async ({ enqueueLinks, log }) => {
6
6
  log.info(`Handle Start URLs`);
7
7
  await enqueueLinks({
8
- globs: ['https://crawlee.dev/*'],
8
+ globs: ['https://crawlee.dev/**'],
9
9
  label: 'DETAIL',
10
10
  });
11
11
  });
@@ -5,7 +5,7 @@ FROM apify/actor-node:16 AS builder
5
5
 
6
6
  # Second, copy the TS source files, package.json and package-lock.json since it should be
7
7
  # the only files that affects the installation and build in the next step
8
- COPY package*.json ./
8
+ COPY package*.json crawlee?json ./
9
9
  COPY src ./src
10
10
 
11
11
  # Install all dependencies (including dev deps) and build the project
@@ -14,8 +14,8 @@ RUN npm install --include=dev && npm run build
14
14
  # Create final image
15
15
  FROM apify/actor-node-playwright-chrome:16
16
16
 
17
- # Copy only necessary files
18
- COPY --from=builder /usr/src/app/package.json ./
17
+ # Copy only necessary files (crawlee.json might not exist, so we need the regexp trick with `crawlee?json`)
18
+ COPY --from=builder /usr/src/app/package.json /usr/src/app/crawlee?json ./
19
19
  COPY --from=builder /usr/src/app/README.md ./
20
20
  COPY --from=builder /usr/src/app/dist ./dist
21
21
 
@@ -5,7 +5,7 @@ export const router = createPlaywrightRouter();
5
5
  router.addDefaultHandler(async ({ enqueueLinks, log }) => {
6
6
  log.info(`Handle Start URLs`);
7
7
  await enqueueLinks({
8
- globs: ['https://crawlee.dev/*'],
8
+ globs: ['https://crawlee.dev/**'],
9
9
  label: 'DETAIL',
10
10
  });
11
11
  });
@@ -1,6 +1,8 @@
1
1
  FROM apify/actor-node-puppeteer-chrome:16
2
2
 
3
- COPY . ./
3
+ # copy package.json, lock file and possibly crawlee.json
4
+ COPY package*.json crawlee?json ./
5
+ COPY src ./src
4
6
 
5
7
  # install only prod deps
6
8
  RUN npm --quiet set progress=false \
@@ -5,7 +5,7 @@ export const router = createPuppeteerRouter();
5
5
  router.addDefaultHandler(async ({ enqueueLinks, log }) => {
6
6
  log.info(`Handle Start URLs`);
7
7
  await enqueueLinks({
8
- globs: ['https://crawlee.dev/*'],
8
+ globs: ['https://crawlee.dev/**'],
9
9
  label: 'DETAIL',
10
10
  });
11
11
  });
@@ -5,7 +5,7 @@ FROM apify/actor-node:16 AS builder
5
5
 
6
6
  # Second, copy the TS source files, package.json and package-lock.json since it should be
7
7
  # the only files that affects the installation and build in the next step
8
- COPY package*.json ./
8
+ COPY package*.json crawlee?json ./
9
9
  COPY src ./src
10
10
 
11
11
  # Install all dependencies (including dev deps) and build the project
@@ -14,8 +14,8 @@ RUN npm install --include=dev && npm run build
14
14
  # Create final image
15
15
  FROM apify/actor-node-puppeteer-chrome:16
16
16
 
17
- # Copy only necessary files
18
- COPY --from=builder /usr/src/app/package.json ./
17
+ # Copy only necessary files (crawlee.json might not exist, so we need the regexp trick with `crawlee?json`)
18
+ COPY --from=builder /usr/src/app/package.json /usr/src/app/crawlee?json ./
19
19
  COPY --from=builder /usr/src/app/README.md ./
20
20
  COPY --from=builder /usr/src/app/dist ./dist
21
21
 
@@ -5,7 +5,7 @@ export const router = createPuppeteerRouter();
5
5
  router.addDefaultHandler(async ({ enqueueLinks, log }) => {
6
6
  log.info(`Handle Start URLs`);
7
7
  await enqueueLinks({
8
- globs: ['https://crawlee.dev/*'],
8
+ globs: ['https://crawlee.dev/**'],
9
9
  label: 'DETAIL',
10
10
  });
11
11
  });