Skip to content

Commit

Permalink
🆕 Use scoped packages
Browse files Browse the repository at this point in the history
  • Loading branch information
steelbrain committed Sep 18, 2018
1 parent 97f9ca0 commit 5a294d9
Show file tree
Hide file tree
Showing 96 changed files with 199 additions and 199 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<p align="center">
<a href="http://badge.fury.io/js/pundle"><img alt="npm version" src="https://badge.fury.io/js/pundle.svg"></a>
<a href="https://npmjs.org/package/pundle-core"><img alt="Downloads" src="http://img.shields.io/npm/dm/pundle-core.svg"></a>
<a href="https://npmjs.org/package/@pundle/core"><img alt="Downloads" src="http://img.shields.io/npm/dm/@pundle/core.svg"></a>
<a href="https://circleci.com/gh/steelbrain/pundle/tree/master">
<img src="https://img.shields.io/circleci/project/steelbrain/pundle/master.svg" alt="CircleCI Build Status">
</a>
Expand Down
2 changes: 1 addition & 1 deletion packages/create-pundle-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"cool-trim": "^1.1.1",
"minimist": "^1.2.0",
"pundle-core-create-app": "3.0.0-beta9"
"@pundle/core-create-app": "3.0.0-beta9"
},
"author": "steelbrain",
"license": "MIT"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-pundle-app/src/create-pundle-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import path from 'path'
import minimist from 'minimist'
import coolTrim from 'cool-trim'
import { createApp } from 'pundle-core-create-app'
import { createApp } from '@pundle/core-create-app'
import manifest from '../package.json'

async function main() {
Expand Down
4 changes: 2 additions & 2 deletions packages/create-pundle-app/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.1.0",
"private": true,
"devDependencies": {
"pundle-cli": "3.0.0-beta9",
"pundle-preset-default": "3.0.0-beta9"
"@pundle/cli": "3.0.0-beta9",
"@pundle/preset-default": "3.0.0-beta9"
},
"scripts": {
"start": "pundle --dev.static ./static::/",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-pundle-app/template/pundle.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path')
const presetDefault = require('pundle-preset-default')
const presetDefault = require('@pundle/preset-default')

const pundleConfig = {
target: 'browser', // or 'node'
Expand Down
2 changes: 1 addition & 1 deletion packages/create-pundle-babel-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"cool-trim": "^1.1.1",
"minimist": "^1.2.0",
"pundle-core-create-app": "3.0.0-beta9"
"@pundle/core-create-app": "3.0.0-beta9"
},
"author": "steelbrain",
"license": "MIT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import path from 'path'
import minimist from 'minimist'
import coolTrim from 'cool-trim'
import { createApp } from 'pundle-core-create-app'
import { createApp } from '@pundle/core-create-app'
import manifest from '../package.json'

async function main() {
Expand Down
4 changes: 2 additions & 2 deletions packages/create-pundle-babel-app/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"babel-core": "^6.26.3",
"babel-preset-env": "^1.7.0",
"babel-preset-stage-1": "^6.24.1",
"pundle-cli": "3.0.0-beta9",
"pundle-preset-default": "3.0.0-beta9"
"@pundle/cli": "3.0.0-beta9",
"@pundle/preset-default": "3.0.0-beta9"
},
"scripts": {
"start": "pundle --dev.singlepage --dev.static ./static::/",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-pundle-babel-app/template/pundle.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path')
const presetDefault = require('pundle-preset-default')
const presetDefault = require('@pundle/preset-default')

const pundleConfig = {
target: 'browser', // or 'node'
Expand Down
2 changes: 1 addition & 1 deletion packages/create-pundle-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"cool-trim": "^1.1.1",
"minimist": "^1.2.0",
"pundle-core-create-app": "3.0.0-beta9"
"@pundle/core-create-app": "3.0.0-beta9"
},
"author": "steelbrain",
"license": "MIT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import path from 'path'
import minimist from 'minimist'
import coolTrim from 'cool-trim'
import { createApp } from 'pundle-core-create-app'
import { createApp } from '@pundle/core-create-app'
import manifest from '../package.json'

async function main() {
Expand Down
4 changes: 2 additions & 2 deletions packages/create-pundle-react-app/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"pundle-cli": "3.0.0-beta9",
"pundle-preset-default": "3.0.0-beta9",
"@pundle/cli": "3.0.0-beta9",
"@pundle/preset-default": "3.0.0-beta9",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-hot-loader": "^4.3.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-pundle-react-app/template/pundle.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path')
const presetDefault = require('pundle-preset-default')
const presetDefault = require('@pundle/preset-default')

const pundleConfig = {
target: 'browser', // or 'node'
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-api/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pundle-api",
"name": "@pundle/api",
"version": "3.0.0-beta9",
"description": "TODO",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-api/src/context/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import fs from 'sb-fs'
import pMap from 'p-map'
import mergeSourceMap from 'merge-source-map'
import type { Config } from 'pundle-core-load-config'
import type { Config } from '@pundle/core-load-config'

import Job from '../job'
import PundleError from '../pundle-error'
Expand Down
4 changes: 2 additions & 2 deletions packages/pundle-chunk-generator-css/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pundle-chunk-generator-css",
"name": "@pundle/chunk-generator-css",
"version": "3.0.0-beta9",
"description": "TODO",
"repository": {
Expand All @@ -10,7 +10,7 @@
"flow:main": "src/index.js",
"scripts": {},
"dependencies": {
"pundle-api": "^3.0.0-beta9"
"@pundle/api": "^3.0.0-beta9"
},
"author": "steelbrain",
"license": "MIT"
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-chunk-generator-css/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import path from 'path'
import invariant from 'assert'
import { createChunkGenerator, getFileKey, type ComponentChunkGeneratorResult } from 'pundle-api'
import { createChunkGenerator, getFileKey, type ComponentChunkGeneratorResult } from '@pundle/api'

import manifest from '../package.json'

Expand Down
4 changes: 2 additions & 2 deletions packages/pundle-chunk-generator-html/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pundle-chunk-generator-html",
"name": "@pundle/chunk-generator-html",
"version": "3.0.0-beta9",
"description": "TODO",
"repository": {
Expand All @@ -11,7 +11,7 @@
"scripts": {},
"dependencies": {
"globrex": "^0.1.1",
"pundle-api": "^3.0.0-beta9",
"@pundle/api": "^3.0.0-beta9",
"toposort": "^2.0.2"
},
"author": "steelbrain",
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-chunk-generator-html/src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import globrex from 'globrex'
import invariant from 'assert'
import toposort from 'toposort'
import { getFileKey, getChunkKey, type Job, type Chunk, type ImportResolved } from 'pundle-api'
import { getFileKey, getChunkKey, type Job, type Chunk, type ImportResolved } from '@pundle/api'

export function topologicallySortChunks(chunks: Array<Chunk>, job: Job): Array<Chunk> {
const graph = []
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-chunk-generator-html/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow

import invariant from 'assert'
import { createChunkGenerator, getFileKey } from 'pundle-api'
import { createChunkGenerator, getFileKey } from '@pundle/api'

import manifest from '../package.json'
import { getChunksMatchingFilter, topologicallySortChunks } from './helpers'
Expand Down
4 changes: 2 additions & 2 deletions packages/pundle-chunk-generator-js/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pundle-chunk-generator-js",
"name": "@pundle/chunk-generator-js",
"version": "3.0.0-beta9",
"description": "TODO",
"repository": {
Expand All @@ -10,7 +10,7 @@
"flow:main": "src/index.js",
"scripts": {},
"dependencies": {
"pundle-api": "^3.0.0-beta9",
"@pundle/api": "^3.0.0-beta9",
"sb-fs": "^3.0.0",
"source-map": "^0.7.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-chunk-generator-js/src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import invariant from 'assert'
import { SourceMapConsumer } from 'source-map'
import { NEWLINE_REGEXP, getFileKey, type Chunk, type Job, type ImportResolved, type ImportTransformed } from 'pundle-api'
import { NEWLINE_REGEXP, getFileKey, type Chunk, type Job, type ImportResolved, type ImportTransformed } from '@pundle/api'

export function getLinesCount(text: string): number {
return text.split(NEWLINE_REGEXP).length
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-chunk-generator-js/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import fs from 'sb-fs'
import path from 'path'
import { SourceMapGenerator } from 'source-map'
import { createChunkGenerator, getUniqueHash } from 'pundle-api'
import { createChunkGenerator, getUniqueHash } from '@pundle/api'

import * as Helpers from './helpers'
import manifest from '../package.json'
Expand Down
4 changes: 2 additions & 2 deletions packages/pundle-chunk-generator-static/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pundle-chunk-generator-static",
"name": "@pundle/chunk-generator-static",
"version": "3.0.0-beta9",
"description": "TODO",
"repository": {
Expand All @@ -10,7 +10,7 @@
"flow:main": "src/index.js",
"scripts": {},
"dependencies": {
"pundle-api": "^3.0.0-beta9"
"@pundle/api": "^3.0.0-beta9"
},
"author": "steelbrain",
"license": "MIT"
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-chunk-generator-static/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow

import invariant from 'assert'
import { createChunkGenerator, getFileKey } from 'pundle-api'
import { createChunkGenerator, getFileKey } from '@pundle/api'

import manifest from '../package.json'

Expand Down
4 changes: 2 additions & 2 deletions packages/pundle-chunk-transformer-cssnano/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pundle-chunk-transformer-cssnano",
"name": "@pundle/chunk-transformer-cssnano",
"version": "3.0.0-beta9",
"description": "TODO",
"repository": {
Expand All @@ -12,7 +12,7 @@
"dependencies": {
"cssnano": "^4.0.5",
"postcss": "^7.0.2",
"pundle-api": "^3.0.0-beta9"
"@pundle/api": "^3.0.0-beta9"
},
"author": "steelbrain",
"license": "MIT"
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-chunk-transformer-cssnano/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import path from 'path'
import cssnano from 'cssnano'
import postcss from 'postcss'
import { createChunkTransformer } from 'pundle-api'
import { createChunkTransformer } from '@pundle/api'

import manifest from '../package.json'

Expand Down
4 changes: 2 additions & 2 deletions packages/pundle-chunk-transformer-uglify/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pundle-chunk-transformer-uglify",
"name": "@pundle/chunk-transformer-uglify",
"version": "3.0.0-beta9",
"description": "TODO",
"repository": {
Expand All @@ -11,7 +11,7 @@
"scripts": {},
"dependencies": {
"merge-source-map": "^1.1.0",
"pundle-api": "^3.0.0-beta9",
"@pundle/api": "^3.0.0-beta9",
"terser": "^3.8.1",
"uglify-es": "^3.3.9"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-chunk-transformer-uglify/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from 'path'
import mergeSourceMap from 'merge-source-map'
import { minify as processUglify } from 'uglify-es'
import { minify as processTerser } from 'terser'
import { createChunkTransformer } from 'pundle-api'
import { createChunkTransformer } from '@pundle/api'

import manifest from '../package.json'

Expand Down
8 changes: 4 additions & 4 deletions packages/pundle-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pundle-cli",
"name": "@pundle/cli",
"version": "3.0.0-beta9",
"description": "TODO",
"repository": {
Expand All @@ -22,9 +22,9 @@
"mkdirp": "^0.5.1",
"p-map": "^1.2.0",
"pretty-bytes": "^5.1.0",
"pundle-api": "^3.0.0-beta9",
"pundle-core": "^3.0.0-beta9",
"pundle-dev-middleware": "^3.0.0-beta9",
"@pundle/api": "^3.0.0-beta9",
"@pundle/core": "^3.0.0-beta9",
"@pundle/dev-middleware": "^3.0.0-beta9",
"sb-fs": "^3.0.0",
"strip-ansi": "^4.0.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/pundle-cli/src/pundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import coolTrim from 'cool-trim'
import gzipSize from 'gzip-size'
import stripAnsi from 'strip-ansi'
import prettyBytes from 'pretty-bytes'
import { getPundle, getWatcher } from 'pundle-core'
import { getPundleDevMiddleware, getChunksAffectedByImports } from 'pundle-dev-middleware'
import type { Context, ChunksGenerated } from 'pundle-api'
import { getPundle, getWatcher } from '@pundle/core'
import { getPundleDevMiddleware, getChunksAffectedByImports } from '@pundle/dev-middleware'
import type { Context, ChunksGenerated } from '@pundle/api'

import manifest from '../package.json'
import { getNextPort, getStaticMappings } from './helpers'
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-core-create-app/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pundle-core-create-app",
"name": "@pundle/core-create-app",
"version": "3.0.0-beta9",
"description": "TODO",
"main": "./lib/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/pundle-core-load-config/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pundle-core-load-config",
"name": "@pundle/core-load-config",
"version": "3.0.0-beta9",
"description": "TODO",
"repository": {
Expand All @@ -11,7 +11,7 @@
"scripts": {},
"dependencies": {
"lodash": "^4.17.10",
"pundle-api": "^3.0.0-beta9",
"@pundle/api": "^3.0.0-beta9",
"sb-callsite": "^1.1.2",
"sb-fs": "^3.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-core-load-config/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os from 'os'
import path from 'path'

import { PundleError, type Context } from 'pundle-api'
import { PundleError, type Context } from '@pundle/api'
import type { Config, AcceptedConfig } from './types'
import readConfigFile from './readConfigFile'
import validateAndTransformConfig from './validateAndTransformConfig'
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-core-load-config/src/readConfigFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import fs from 'sb-fs'
import path from 'path'
// eslint-disable-next-line
import { fromStack } from 'sb-callsite'
import { PundleError, type Context } from 'pundle-api'
import { PundleError, type Context } from '@pundle/api'

export default async function readConfigFile(context: Context): Promise<{ config: Object, configFilePath: ?string }> {
const { directory, configFilePath, configLoadFile } = context
Expand Down
2 changes: 1 addition & 1 deletion packages/pundle-core-load-config/src/types.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow

import type { Component } from 'pundle-api'
import type { Component } from '@pundle/api'

export type AcceptedConfig = {|
cache?:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import fs from 'sb-fs'
import path from 'path'
import difference from 'lodash/difference'
import { PundleError, validateComponent, type Context } from 'pundle-api'
import { PundleError, validateComponent, type Context } from '@pundle/api'

import type { AcceptedConfig } from './types'

Expand Down
Loading

0 comments on commit 5a294d9

Please sign in to comment.