-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use broccoli-multi-builder to output amd, globals, cjs
* remove all explicit reference of node_modules * add `src` option to broccoli build trees * fix usage of doc and win for node, fix import paths * fix issue with exported window, remove js-test * change imports to not use node_modules or descendent paths
- Loading branch information
Showing
36 changed files
with
214 additions
and
3,286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,5 @@ bower_components | |
|
||
# Builds | ||
keys.txt | ||
export.sh | ||
export.sh | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* jshint node:true */ | ||
|
||
var multiBuilder = require('broccoli-multi-builder'); | ||
var mergeTrees = require('broccoli-merge-trees'); | ||
|
||
var jsSrc = './src/js'; | ||
var vendoredModules = ['content-kit-compiler', 'content-kit-utils']; | ||
var packageName = require('./package.json').name; | ||
|
||
var amdTree = multiBuilder.buildAMD({ | ||
isGlobal: false, | ||
src: jsSrc, | ||
vendoredModules: vendoredModules, | ||
packageName: packageName | ||
}); | ||
|
||
var globalTree = multiBuilder.buildAMD({ | ||
isGlobal: true, | ||
src: jsSrc, | ||
vendoredModules: vendoredModules, | ||
packageName: packageName | ||
}); | ||
|
||
var cjsTree = multiBuilder.buildCJS({ | ||
src: jsSrc, | ||
vendoredModules: vendoredModules, | ||
packageName: packageName | ||
}); | ||
|
||
module.exports = mergeTrees([ amdTree, globalTree, cjsTree ]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "content-kit-editor", | ||
"version": "0.0.0", | ||
"homepage": "https://github.com/bustlelabs/content-kit-editor", | ||
"moduleType": [ | ||
"amd", | ||
"es6", | ||
"globals" | ||
], | ||
"license": "MIT", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
], | ||
"dependencies": { | ||
"loader.js": "~3.2.1" | ||
} | ||
} |
Oops, something went wrong.