Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #20 from izaera/liferay-npm-bundler-presets
Browse files Browse the repository at this point in the history
Add liferay-npm-bundler presets
  • Loading branch information
Robert Frampton authored Aug 17, 2017
2 parents 2ef8eaa + a201e0a commit d25b2a6
Show file tree
Hide file tree
Showing 12 changed files with 127 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/liferay-npm-bundler-preset-amd/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"*": {
".babelrc": {
"presets": ["liferay-amd"]
}
}
}
9 changes: 9 additions & 0 deletions packages/liferay-npm-bundler-preset-amd/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "liferay-npm-bundler-preset-amd",
"version": "0.0.0",
"description": "AMD configuration for liferay-npm-bundler.",
"main": "config.json",
"dependencies": {
"babel-preset-liferay-amd": "^0.5.0"
}
}
14 changes: 14 additions & 0 deletions packages/liferay-npm-bundler-preset-angular/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"exclude": {
"mkdirp": ["bin/**/*"]
},
"*": {
"plugins": [
"replace-browser-modules",
"inject-angular-dependencies"
],
".babelrc": {
"presets": ["liferay-standard"]
}
}
}
11 changes: 11 additions & 0 deletions packages/liferay-npm-bundler-preset-angular/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "liferay-npm-bundler-preset-angular",
"version": "0.0.0",
"description": "Angular configuration for liferay-npm-bundler.",
"main": "config.json",
"dependencies": {
"babel-preset-liferay-standard": "^0.5.0",
"liferay-npm-bundler-plugin-inject-package-dependencies": "^0.5.0",
"liferay-npm-bundler-plugin-replace-browser-modules": "^0.5.0"
}
}
10 changes: 10 additions & 0 deletions packages/liferay-npm-bundler-preset-isomorphic/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"*": {
"plugins": [
"replace-browser-modules"
],
".babelrc": {
"presets": ["liferay-isomorphic"]
}
}
}
10 changes: 10 additions & 0 deletions packages/liferay-npm-bundler-preset-isomorphic/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "liferay-npm-bundler-preset-isomorphic",
"version": "0.0.0",
"description": "Isomorphic configuration for liferay-npm-bundler.",
"main": "config.json",
"dependencies": {
"babel-preset-liferay-isomorphic": "^0.5.0",
"liferay-npm-bundler-plugin-replace-browser-modules": "^0.5.0"
}
}
13 changes: 13 additions & 0 deletions packages/liferay-npm-bundler-preset-react/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"exclude": {
"fbjs": ["flow/**/*"]
},
"*": {
"plugins": [
"replace-browser-modules"
],
".babelrc": {
"presets": ["liferay-standard"]
}
}
}
10 changes: 10 additions & 0 deletions packages/liferay-npm-bundler-preset-react/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "liferay-npm-bundler-preset-react",
"version": "0.0.0",
"description": "React configuration for liferay-npm-bundler.",
"main": "config.json",
"dependencies": {
"babel-preset-liferay-standard": "^0.5.0",
"liferay-npm-bundler-plugin-replace-browser-modules": "^0.5.0"
}
}
10 changes: 10 additions & 0 deletions packages/liferay-npm-bundler-preset-standard/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"*": {
"plugins": [
"replace-browser-modules"
],
".babelrc": {
"presets": ["liferay-standard"]
}
}
}
10 changes: 10 additions & 0 deletions packages/liferay-npm-bundler-preset-standard/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "liferay-npm-bundler-preset-standard",
"version": "0.0.0",
"description": "Standard configuration for liferay-npm-bundler.",
"main": "config.json",
"dependencies": {
"babel-preset-liferay-standard": "^0.5.0",
"liferay-npm-bundler-plugin-replace-browser-modules": "^0.5.0"
}
}
13 changes: 13 additions & 0 deletions packages/liferay-npm-bundler-preset-vue/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"exclude": {
"vue": ["src/**/*.js"]
},
"*": {
"plugins": [
"replace-browser-modules"
],
".babelrc": {
"presets": ["liferay-standard"]
}
}
}
10 changes: 10 additions & 0 deletions packages/liferay-npm-bundler-preset-vue/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "liferay-npm-bundler-preset-vue",
"version": "0.0.0",
"description": "Vue.js configuration for liferay-npm-bundler.",
"main": "config.json",
"dependencies": {
"babel-preset-liferay-standard": "^0.5.0",
"liferay-npm-bundler-plugin-replace-browser-modules": "^0.5.0"
}
}

0 comments on commit d25b2a6

Please sign in to comment.