Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Use sdk as a standalone package #724

Merged
merged 9 commits into from
May 28, 2020
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ jobs:
build:
working_directory: ~/app
docker:
- image: circleci/node:10.7.0-browsers
- image: circleci/node:12.16.3-browsers
steps:
- checkout
- run:
name: Install system dependencies
command: sudo apt-get install -y libpng-dev
- run:
name: Install dependencies
command: npm install
command: npm ci
- run:
name: Run typescript checker
command: npx tsc --noEmit & npx tsc --noEmit -p src/@sdk & npx tsc --noEmit -p src/@next
Expand All @@ -36,7 +36,7 @@ jobs:
- dist/*
cypress/run:
docker:
- image: cypress/base:10
- image: cypress/base:12.16.2
environment:
TERM: xterm
parallelism: 1
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable, unreleased changes to this project will be documented in this file.

- Add Cypress tags to all of the buttons (also speed up tests) - #718 by @krzysztofwolski
- Automatically choose variant attributes from url in ProductVariantPicker - #708 by @AlicjaSzu
- Use sdk as a standalone package - #724 by @dominik-zeglen

## 2.10.1

Expand Down
5 changes: 5 additions & 0 deletions config/webpack/config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
const webpack = require("webpack");
const path = require("path");

if (!process.env.API_URI) {
throw new Error("Environment variable API_URI not set");
Expand All @@ -12,6 +13,10 @@ if (!process.env.API_URI) {
module.exports = ({ sourceDir, distDir }) => ({
resolve: {
alias: {
// Explicitely set react's path here because npm-link doesn't do well
// when it comes to peer dependencies, and we need to somehow develop
// @saleor/sdk package
react: path.resolve("./node_modules/react"),
"react-dom": "@hot-loader/react-dom",
},
extensions: [".ts", ".tsx", ".js", ".jsx"],
Expand Down
158 changes: 135 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading