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

Commit

Permalink
#1 circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
marcog83 committed May 9, 2022
1 parent b1d807f commit abcb413
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 52 deletions.
23 changes: 23 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.circleci
.idea
.vscode
.yarn
coverage
docs
eslint
packages
# FILES
.editorconfig
.eslintrc.js
.gitattributes
.gitignore
.npmrc
.nvmrc
.pnp.cjs
.pnp.loader.mjs
.yarnrc.yml
babel.config.js
index.js
jest.config.js
junit.xml
webpack.config.js
44 changes: 22 additions & 22 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
module.exports = {

presets: [
[ '@babel/preset-env' ],
[ '@babel/preset-react', { runtime: 'automatic' }]
],
plugins: [
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
[ '@babel/plugin-proposal-decorators', { legacy: true }],
[ '@babel/plugin-proposal-class-properties', { loose: true }],
[ '@babel/plugin-proposal-private-methods', { loose: true }],
[ '@babel/plugin-proposal-private-property-in-object', { loose: true }],
'@babel/plugin-transform-regenerator'

],
env: {
test: {
plugins: []
},
production: {
plugins: []
}
presets: [
[ '@babel/preset-env' ],
[ '@babel/preset-react', { runtime: 'automatic' }]
],
plugins: [
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
[ '@babel/plugin-proposal-decorators', { legacy: true }],
[ '@babel/plugin-proposal-class-properties', { loose: true }],
[ '@babel/plugin-proposal-private-methods', { loose: true }],
[ '@babel/plugin-proposal-private-property-in-object', { loose: true }],
'@babel/plugin-transform-regenerator'

],
env: {
test: {
plugins: []
},
production: {
plugins: []
}
};
}
};
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export * from './packages/renderer/src/index';

export * from './packages/primitives/src/index';
export {registerClassNames} from './packages/stylesheet/src/index';
export * from './packages/components/src/index';

export { registerClassNames } from './packages/stylesheet/src/index';

// eslint-disable-next-line import/export
export * from './packages/components/src/index';
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "pptx-renderer",
"version": "0.0.6",
"version": "0.0.7",
"description": "React Renderer for creating Powerpoint File with React. It is a PPTXJS binding for react",
"main": "./build/app.bundle.js",
"files": [

],
"scripts": {
"start:demo": "yarn workspace demo start",
"test": "jest --ci",
Expand Down
Binary file added pptx-renderer-0.0.6.tgz
Binary file not shown.
55 changes: 28 additions & 27 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
var path = require('path');
const path = require('path');

module.exports = {
entry: {
index: './index.js'
},
mode: 'development',
output: {
library: 'PPTX',
libraryTarget: 'umd',
path: path.resolve(__dirname, 'build'),
filename: 'app.bundle.js'
},
externals: ["pptxgenjs","react"],
resolve: {
extensions: ['*', '.js', '.jsx'],
},
module: {
rules: [
{
test: /\.jsx?$/,
loader: require.resolve('babel-loader'),
entry: {
index: './index.js'
},
mode: 'development',
output: {
library: 'PPTX',
libraryTarget: 'umd',
path: path.resolve(__dirname, 'build'),
filename: 'app.bundle.js'
},
externals: [ 'pptxgenjs', 'react' ],
resolve: {
extensions: [ '*', '.js', '.jsx' ]
},
module: {
rules: [
{
test: /\.jsx?$/,
loader: require.resolve('babel-loader')

}
]
},
watchOptions: {
aggregateTimeout: 200,
ignored: [ '**/test', '**/node_modules' ]
}
]
},
watchOptions: {
aggregateTimeout: 200,
ignored: [ '**/test', '**/node_modules' ]
}

};
};

0 comments on commit abcb413

Please sign in to comment.