Skip to content

Commit

Permalink
feat: put packages in src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyhuy committed Sep 13, 2020
1 parent 46f70d8 commit d10a8bb
Show file tree
Hide file tree
Showing 12 changed files with 144 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/ggsmark/__tests__/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dedent from 'dedent'
import ggsmark from '../index'
import ggsmark from '../src'

describe('should have github-like markdown', () => {
test('strikethrough', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ggsmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
"build": "cross-env BABEL_ENV=production babel ./src/index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/remark-color-text/__tests__/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import remark from 'remark'
import html from 'remark-html'
import color from '..'
import color from '../src'
import dedent from 'dedent'

describe('block color text with inline style', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-color-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --out-dir ."
"build": "cross-env BABEL_ENV=production babel ./src/index.js --config-file ../../babel.config.js --out-dir ."
}
}
136 changes: 136 additions & 0 deletions packages/remark-color-text/src/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/remark-spoilers/__tests__/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import remark from 'remark'
import html from 'remark-html'
import spoiler from '..'
import spoiler from '../src'
import dedent from 'dedent'

describe('spoilers', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-spoilers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
"build": "cross-env BABEL_ENV=production babel ./src/index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/remark-text-alignment/__tests__/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import remark from 'remark'
import html from 'remark-html'
import alignment from '..'
import alignment from '../src'
import dedent from 'dedent'

describe('align text with inline style', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-text-alignment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
"build": "cross-env BABEL_ENV=production babel ./src/index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
}
}
File renamed without changes.

0 comments on commit d10a8bb

Please sign in to comment.