Skip to content

Commit

Permalink
Transpile modules individually from src
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcgregor committed Mar 16, 2017
1 parent dd711cc commit 1f0786f
Show file tree
Hide file tree
Showing 46 changed files with 55 additions and 19 deletions.
18 changes: 18 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"presets": [
[
"es2015", {
"loose": true
}
]
],
"plugins": [
["external-helpers"],
["transform-runtime", {
"helpers": true,
"polyfill": false,
"regenerator": false,
"moduleName": "babel-runtime"
}]
]
}
15 changes: 9 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,15 @@ dploy.yaml

# FOLDERS

!test/audio/*.ogg
!examples/audio/*.mp3
!examples/audio/*.ogg
examples/audio/other
examples/temp.html
!/test/audio/*.ogg
!/examples/audio/*.mp3
!/examples/audio/*.ogg
/examples/audio/other
/examples/temp.html
node_modules/
bower_components/
.sass-cache/
labs/
/labs/
/core/
/effects/
/utils/
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/docs/
/examples/
/labs/
/test/
/index.html
/index.js
/karma.conf.js
/rollup.config.js
3 changes: 3 additions & 0 deletions dist/sono.js

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

2 changes: 1 addition & 1 deletion dist/sono.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/sono.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sono from './core/sono';
import './effects';
import './utils';
import sono from './src/core/sono';
import './src/effects';
import './src/utils';

export default sono;
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
],
"main": "core/sono.js",
"scripts": {
"postinstall": "babel src --out-dir ./",
"test": "eslint 'src/**/*.js' && karma start --single-run --browsers Firefox && WA=no karma start --single-run --browsers Firefox",
"build": "NODE_ENV=production rollup -c && rollup -c",
"start": "rollup -c -w | karma start",
"lint": "eslint 'src/**/*.js'; exit 0",
"examples": "browser-sync start -s --files 'examples/**/*.js, examples/**/*.css' --no-notify",
"css": "postcss examples/css/index.css --use postcss-import postcss-custom-media postcss-custom-properties postcss-calc autoprefixer -o examples/css/styles.css"
"css": "postcss examples/css/index.css --use postcss-import postcss-custom-media postcss-custom-properties postcss-calc autoprefixer -o examples/css/styles.css",
"lib": "rimraf core effects utils && babel src --out-dir ./"
},
"repository": {
"type": "git",
Expand All @@ -27,14 +29,17 @@
"license": "MIT",
"readmeFilename": "README.md",
"dependencies": {
"babel-cli": "^6.24.0",
"babel-core": "^6.23.1",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.22.0",
"core-js": "^2.4.1",
"events": "^1.1.1"
},
"devDependencies": {
"autoprefixer": "^6.7.6",
"babel-core": "^6.23.1",
"babel-eslint": "^7.1.1",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-es2015": "^6.22.0",
"browser-sync": "^2.18.8",
"chai": "^3.5.0",
"karma": "^1.5.0",
Expand All @@ -48,15 +53,13 @@
"postcss-custom-media": "^5.0.1",
"postcss-custom-properties": "^5.0.2",
"postcss-import": "^9.1.0",
"rimraf": "^2.6.1",
"rollup": "^0.41.4",
"rollup-plugin-babel": "^2.7.1",
"rollup-plugin-commonjs": "^7.0.0",
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-strip": "^1.1.1",
"rollup-plugin-uglify": "^1.0.1",
"rollup-watch": "^3.2.2"
},
"browserify": {
"transform": [["babelify", { "presets": "es2015" }]]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions core/sono.js → src/core/sono.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'core-js/fn/object/assign';
import context from './context';
import browser from './utils/browser';
import file from './utils/file';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1f0786f

Please sign in to comment.