use @sapper imports

This commit is contained in:
Richard Harris
2019-02-03 09:19:30 -05:00
parent 8d259871f1
commit e9ca6e0f43
4 changed files with 11 additions and 11 deletions

View File

@@ -6,13 +6,13 @@ cd "$(dirname $0)"/..
echo "$SSH_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
# make sure we're on master, and delete the rollup and webpack branches
# make sure we're on master, and delete the rollup-v3 and webpack-v3 branches
git symbolic-ref HEAD refs/heads/master
git reset --hard
git branch -D rollup webpack
git branch -D rollup-v3 webpack-v3
# create the rollup branch off the current master
git checkout -b rollup
# create the rollup-v3 branch off the current master
git checkout -b rollup-v3
node _template/build-pkg.js rollup
git rm -r --cached .travis.yml _template package_template.json webpack.config.js
git add package.json
@@ -20,8 +20,8 @@ git commit -m 'Sapper template for Rollup'
git symbolic-ref HEAD refs/heads/master
git reset --hard
# create the webpack branch off the current master
git checkout -b webpack
# create the webpack-v3 branch off the current master
git checkout -b webpack-v3
node _template/build-pkg.js webpack
git rm -r --cached .travis.yml _template package_template.json rollup.config.js
git add package.json
@@ -29,5 +29,5 @@ git commit -m 'Sapper template for webpack'
git symbolic-ref HEAD refs/heads/master
git reset --hard
# force push rollup and webpack branches
git push git@github.com:sveltejs/sapper-template.git rollup webpack -f
# force push rollup-v3 and webpack branches
git push git@github.com:sveltejs/sapper-template.git rollup-v3 webpack-v3 -f

View File

@@ -1,4 +1,4 @@
import * as sapper from '../__sapper__/client.js';
import * as sapper from '@sapper/app';
sapper.start({
target: document.querySelector('#sapper')

View File

@@ -1,7 +1,7 @@
import sirv from 'sirv';
import polka from 'polka';
import compression from 'compression';
import * as sapper from '../__sapper__/server.js';
import * as sapper from '@sapper/server';
const { PORT, NODE_ENV } = process.env;
const dev = NODE_ENV === 'development';

View File

@@ -1,4 +1,4 @@
import { timestamp, files, shell, routes } from '../__sapper__/service-worker.js';
import { timestamp, files, shell, routes } from '@sapper/service-worker';
const ASSETS = `cache${timestamp}`;