Skip to content

Commit

Permalink
adds babel-preset-env
Browse files Browse the repository at this point in the history
tweaks

adds hot-loader

npm version

adds kyt eslint

fix test
  • Loading branch information
delambo committed Aug 28, 2017
1 parent e3912bb commit 6e688af
Show file tree
Hide file tree
Showing 33 changed files with 3,576 additions and 41,220 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js
node_js:
- 6
before_install: npm install npm@5.3.0 -g
script: npm run bootstrap && npm run lint && npm test && npm run e2e
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/build-no-server/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"build": "kyt build"
"build": "../packages/kyt-core/cli/index.js build"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/lintScript-default/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint-script": "kyt lint-script"
"lint-script": "../packages/kyt-core/cli/index.js lint-script"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/lintScript-fail/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint-script": "kyt lint-script"
"lint-script": "../packages/kyt-core/cli/index.js lint-script"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/lintScript-json-fail/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint-script": "kyt lint-script"
"lint-script": "../packages/kyt-core/cli/index.js lint-script"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/lintScript-server-import/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint-script": "kyt lint-script"
"lint-script": "../packages/kyt-core/cli/index.js lint-script"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint-script": "kyt lint-script"
"lint-script": "../packages/kyt-core/cli/index.js lint-script"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/lintScript-user-rc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint-script": "kyt lint-script"
"lint-script": "../packages/kyt-core/cli/index.js lint-script"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/lintStyle-default/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint-style": "kyt lint-style"
"lint-style": "../packages/kyt-core/cli/index.js lint-style"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/lintStyle-fail/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint-style": "kyt lint-style"
"lint-style": "../packages/kyt-core/cli/index.js lint-style"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/lintStyle-scss/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint-style": "kyt lint-style"
"lint-style": "../packages/kyt-core/cli/index.js lint-style"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/lintStyle-user-rc-with-ext/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint-style": "kyt lint-style"
"lint-style": "../packages/kyt-core/cli/index.js lint-style"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/lintStyle-user-rc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint-style": "kyt lint-style"
"lint-style": "../packages/kyt-core/cli/index.js lint-style"
}
}
4 changes: 2 additions & 2 deletions e2e_tests/fixtures/test-custom-babel-env/.babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"presets": [["babel-preset-latest", { "modules": false }]],

"presets": [["babel-preset-env", { "modules": false }]],

"env": {
"custom": {
Expand Down
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/test-custom-babel-env/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"test": "kyt test"
"test": "../packages/kyt-core/cli/index.js test"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/test-default/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"test": "kyt test"
"test": "../packages/kyt-core/cli/index.js test"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/test-global-setup/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"test": "kyt test"
"test": "../packages/kyt-core/cli/index.js test"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/test-modify-config/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"test": "kyt test"
"test": "../packages/kyt-core/cli/index.js test"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/fixtures/test-options/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"test": "kyt test -- --testNamePattern \\.blah.js$"
"test": "../packages/kyt-core/cli/index.js test -- --testNamePattern \\.blah.js$"
}
}
2 changes: 1 addition & 1 deletion e2e_tests/tests/kyt-build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const stageName = 'stage-build';
describe('kyt build', () => {
it('should compile files into a build directory', () => {
util.setupStageWithFixture(stageName, 'build-default');
const output = shell.exec('kyt build');
const output = shell.exec('../packages/kyt-core/cli/index.js build');
expect(shell.test('-f', 'build/publicAssets.json')).toBe(true);
expect(shell.test('-d', 'build/server')).toBe(true);

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"commands": {
"bootstrap": {
"hoist": true,
"ignore": "kyt-starter-*"
"nohoist": ["webpack-hot-middleware", "babel-polyfill", "*-loader"]
}
},
"loglevel": "verbose",
Expand Down
Loading

0 comments on commit 6e688af

Please sign in to comment.